Code style fixes

This commit is contained in:
Dmitry Khomutov 2016-04-20 16:30:26 +06:00
commit 5b9c1d32f1
16 changed files with 1219 additions and 1360 deletions

View file

@ -8,17 +8,17 @@
* @link https://www.phptesting.org/
*/
return array(
return [
/** Loggers attached to every command */
"_" => function() {
return array(
return [
new \Monolog\Handler\StreamHandler(__DIR__ . DIRECTORY_SEPARATOR . 'errors.log', \Monolog\Logger::ERROR),
);
];
},
/** Loggers for the RunCommand */
'RunCommand' => function() {
return array(
return [
new \Monolog\Handler\RotatingFileHandler(__DIR__ . DIRECTORY_SEPARATOR . 'everything', 3, \Monolog\Logger::DEBUG),
);
];
},
);
];

View file

@ -13,25 +13,24 @@ require_once(dirname(__FILE__) . '../bootstrap.php');
$writeServers = $config->get('b8.database.servers.write');
if (!is_array($writeServers)) {
$writeServers = array($writeServers);
$writeServers = [$writeServers];
}
$conf = array(
'paths' => array(
$conf = [
'paths' => [
'migrations' => 'PHPCI/Migrations',
),
'environments' => array(
],
'environments' => [
'default_migration_table' => 'migration',
'default_database' => 'phpci',
'phpci' => array(
'default_database' => 'phpci',
'phpci' => [
'adapter' => 'mysql',
'host' => end($writeServers),
'name' => $config->get('b8.database.name'),
'user' => $config->get('b8.database.username'),
'pass' => $config->get('b8.database.password'),
),
),
);
'host' => end($writeServers),
'name' => $config->get('b8.database.name'),
'user' => $config->get('b8.database.username'),
'pass' => $config->get('b8.database.password'),
],
],
];
return $conf;

View file

@ -4,10 +4,10 @@ return function (PHPCI\Plugin\Util\Factory $factory) {
$factory->registerResource(
// This function will be called when the resource is needed.
function() {
return array(
return [
'Foo' => "Stuff",
'Bar' => "More Stuff"
);
];
},
// In addition to the function for building the resource the system