From ede348364ea6defe098cce6e900bcbe54758f5c9 Mon Sep 17 00:00:00 2001 From: Spencer Rinehart Date: Thu, 25 Feb 2016 13:10:30 -0600 Subject: [PATCH] Use PHP 5.4 short array syntax. --- build.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.php b/build.php index 4206fb4..224c20f 100755 --- a/build.php +++ b/build.php @@ -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()) {