diff --git a/src/Drivers/AbstractDriver.php b/src/Drivers/AbstractDriver.php index 3b8683e..609170e 100644 --- a/src/Drivers/AbstractDriver.php +++ b/src/Drivers/AbstractDriver.php @@ -578,16 +578,16 @@ abstract class AbstractDriver // set the update condition $fields = array_unique( array_reduce($data, function ($previous, $current) use (&$affectedRows, $where) { - $affectedRows++; + $affectedRows++; $keys = array_diff(array_keys($current), [$where]); - if ($previous === NULL) - { - return $keys; - } + if ($previous === NULL) + { + return $keys; + } - return array_merge($previous, $keys); - }) + return array_merge($previous, $keys); + }) ); // Create the CASE blocks for each data set diff --git a/src/State.php b/src/State.php index c9e4565..912c89e 100644 --- a/src/State.php +++ b/src/State.php @@ -6,13 +6,12 @@ * * PHP version 7.1 * - * @package Query - * @author Timothy J. Warren + * @package Query + * @author Timothy J. Warren * @copyright 2012 - 2018 Timothy J. Warren - * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @link https://git.timshomepage.net/aviat4ion/Query + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @link https://git.timshomepage.net/aviat4ion/Query */ - namespace Query; /** diff --git a/src/common.php b/src/common.php index 61a2f2d..1dcb5f5 100644 --- a/src/common.php +++ b/src/common.php @@ -6,16 +6,16 @@ * * PHP version 7 * - * @package Query - * @author Timothy J. Warren + * @package Query + * @author Timothy J. Warren * @copyright 2012 - 2016 Timothy J. Warren - * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @link https://git.timshomepage.net/aviat4ion/Query + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @link https://git.timshomepage.net/aviat4ion/Query */ use Query\{ - ConnectionManager, - QueryBuilderInterface + ConnectionManager, + QueryBuilderInterface }; /** diff --git a/tests/BaseDriverTest.php b/tests/BaseDriverTest.php index 6748e14..3ec6328 100644 --- a/tests/BaseDriverTest.php +++ b/tests/BaseDriverTest.php @@ -12,7 +12,6 @@ * @license http://www.opensource.org/licenses/mit-license.html MIT License * @link https://git.timshomepage.net/aviat4ion/Query */ - namespace Query\Tests; /** diff --git a/tests/Drivers/PgSQL/PgSQLDriverTest.php b/tests/Drivers/PgSQL/PgSQLDriverTest.php index 4eb7e38..ea70b5a 100644 --- a/tests/Drivers/PgSQL/PgSQLDriverTest.php +++ b/tests/Drivers/PgSQL/PgSQLDriverTest.php @@ -12,7 +12,6 @@ * @license http://www.opensource.org/licenses/mit-license.html MIT License * @link https://git.timshomepage.net/aviat4ion/Query */ - namespace Query\Tests\Drivers\PgSQL; use PDO;