Skip to content

Commit

Permalink
Use PHP 5.4 short array syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
nubs committed Feb 25, 2016
1 parent 9d403fe commit ede3483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.php
Expand Up @@ -3,13 +3,13 @@
require 'vendor/autoload.php';

$phpcsCLI = new PHP_CodeSniffer_CLI();
$phpcsViolations = $phpcsCLI->process(array('standard' => array('PSR1'), 'files' => array('src', 'tests', 'build.php')));
$phpcsViolations = $phpcsCLI->process(['standard' => ['PSR1'], 'files' => ['src', 'tests', 'build.php']]);
if ($phpcsViolations > 0) {
exit(1);
}

$phpunitConfiguration = PHPUnit_Util_Configuration::getInstance(__DIR__ . '/phpunit.xml');
$phpunitArguments = array('coverageHtml' => __DIR__ . '/coverage', 'configuration' => $phpunitConfiguration);
$phpunitArguments = ['coverageHtml' => __DIR__ . '/coverage', 'configuration' => $phpunitConfiguration];
$testRunner = new PHPUnit_TextUI_TestRunner();
$result = $testRunner->doRun($phpunitConfiguration->getTestSuiteConfiguration(), $phpunitArguments);
if (!$result->wasSuccessful()) {
Expand Down

0 comments on commit ede3483

Please sign in to comment.