Fix some indentation issues
This commit is contained in:
parent
327c30f359
commit
2839e6ad6e
@ -578,16 +578,16 @@ abstract class AbstractDriver
|
|||||||
// set the update condition
|
// set the update condition
|
||||||
$fields = array_unique(
|
$fields = array_unique(
|
||||||
array_reduce($data, function ($previous, $current) use (&$affectedRows, $where) {
|
array_reduce($data, function ($previous, $current) use (&$affectedRows, $where) {
|
||||||
$affectedRows++;
|
$affectedRows++;
|
||||||
$keys = array_diff(array_keys($current), [$where]);
|
$keys = array_diff(array_keys($current), [$where]);
|
||||||
|
|
||||||
if ($previous === NULL)
|
if ($previous === NULL)
|
||||||
{
|
{
|
||||||
return $keys;
|
return $keys;
|
||||||
}
|
}
|
||||||
|
|
||||||
return array_merge($previous, $keys);
|
return array_merge($previous, $keys);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
// Create the CASE blocks for each data set
|
// Create the CASE blocks for each data set
|
||||||
|
@ -6,13 +6,12 @@
|
|||||||
*
|
*
|
||||||
* PHP version 7.1
|
* PHP version 7.1
|
||||||
*
|
*
|
||||||
* @package Query
|
* @package Query
|
||||||
* @author Timothy J. Warren <tim@timshomepage.net>
|
* @author Timothy J. Warren <tim@timshomepage.net>
|
||||||
* @copyright 2012 - 2018 Timothy J. Warren
|
* @copyright 2012 - 2018 Timothy J. Warren
|
||||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||||
* @link https://git.timshomepage.net/aviat4ion/Query
|
* @link https://git.timshomepage.net/aviat4ion/Query
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Query;
|
namespace Query;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -6,16 +6,16 @@
|
|||||||
*
|
*
|
||||||
* PHP version 7
|
* PHP version 7
|
||||||
*
|
*
|
||||||
* @package Query
|
* @package Query
|
||||||
* @author Timothy J. Warren <tim@timshomepage.net>
|
* @author Timothy J. Warren <tim@timshomepage.net>
|
||||||
* @copyright 2012 - 2016 Timothy J. Warren
|
* @copyright 2012 - 2016 Timothy J. Warren
|
||||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||||
* @link https://git.timshomepage.net/aviat4ion/Query
|
* @link https://git.timshomepage.net/aviat4ion/Query
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Query\{
|
use Query\{
|
||||||
ConnectionManager,
|
ConnectionManager,
|
||||||
QueryBuilderInterface
|
QueryBuilderInterface
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||||
* @link https://git.timshomepage.net/aviat4ion/Query
|
* @link https://git.timshomepage.net/aviat4ion/Query
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Query\Tests;
|
namespace Query\Tests;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||||
* @link https://git.timshomepage.net/aviat4ion/Query
|
* @link https://git.timshomepage.net/aviat4ion/Query
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Query\Tests\Drivers\PgSQL;
|
namespace Query\Tests\Drivers\PgSQL;
|
||||||
|
|
||||||
use PDO;
|
use PDO;
|
||||||
|
Loading…
Reference in New Issue
Block a user