@@ -94,7 +94,7 @@ |
||
| 94 | 94 | |
| 95 | 95 | if (is_array($band) && !empty($band[$instrument])) { |
| 96 | 96 | $performers = array_map( |
| 97 | - function ($performer) { |
|
| 97 | + function($performer) { |
|
| 98 | 98 | return $performer['performerName']; |
| 99 | 99 | }, |
| 100 | 100 | $band[$instrument] |
@@ -5,8 +5,8 @@ |
||
| 5 | 5 | /** |
| 6 | 6 | * @var Composer\Autoload\ClassLoader |
| 7 | 7 | */ |
| 8 | -$loader = require __DIR__.'/../app/autoload.php'; |
|
| 9 | -include_once __DIR__.'/../var/bootstrap.php.cache'; |
|
| 8 | +$loader = require __DIR__ . '/../app/autoload.php'; |
|
| 9 | +include_once __DIR__ . '/../var/bootstrap.php.cache'; |
|
| 10 | 10 | |
| 11 | 11 | // Enable APC for autoloading to improve performance. |
| 12 | 12 | // You should change the ApcClassLoader first argument to a unique prefix |
@@ -15,13 +15,13 @@ |
||
| 15 | 15 | || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1']) || php_sapi_name() === 'cli-server') |
| 16 | 16 | ) { |
| 17 | 17 | header('HTTP/1.0 403 Forbidden'); |
| 18 | - exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
|
| 18 | + exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.'); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @var Composer\Autoload\ClassLoader $loader |
| 23 | 23 | */ |
| 24 | -$loader = require __DIR__.'/../app/autoload.php'; |
|
| 24 | +$loader = require __DIR__ . '/../app/autoload.php'; |
|
| 25 | 25 | Debug::enable(); |
| 26 | 26 | |
| 27 | 27 | $kernel = new AppKernel('dev', true); |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | protected function concatenateEscapedFields($fields) |
| 17 | 17 | { |
| 18 | - return 'CONCAT('.implode(', ', $fields).')'; |
|
| 18 | + return 'CONCAT(' . implode(', ', $fields) . ')'; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | /** |
| 7 | 7 | * @var ClassLoader $loader |
| 8 | 8 | */ |
| 9 | -$loader = require __DIR__.'/../vendor/autoload.php'; |
|
| 9 | +$loader = require __DIR__ . '/../vendor/autoload.php'; |
|
| 10 | 10 | |
| 11 | 11 | AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
| 12 | 12 | |
@@ -36,16 +36,16 @@ |
||
| 36 | 36 | |
| 37 | 37 | public function getCacheDir() |
| 38 | 38 | { |
| 39 | - return dirname(__DIR__).'/var/cache/'.$this->getEnvironment(); |
|
| 39 | + return dirname(__DIR__) . '/var/cache/' . $this->getEnvironment(); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | public function getLogDir() |
| 43 | 43 | { |
| 44 | - return dirname(__DIR__).'/var/logs'; |
|
| 44 | + return dirname(__DIR__) . '/var/logs'; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 48 | 48 | { |
| 49 | - $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); |
|
| 49 | + $loader->load($this->getRootDir() . '/config/config_' . $this->getEnvironment() . '.yml'); |
|
| 50 | 50 | } |
| 51 | 51 | } |
@@ -26,14 +26,14 @@ |
||
| 26 | 26 | public function announceAction($section) |
| 27 | 27 | { |
| 28 | 28 | /** @noinspection RealpathInSteamContextInspection */ |
| 29 | - $rootDir = realpath(__DIR__.'/../../../../'); // FIXME get from Kernel |
|
| 30 | - $announceDir = $rootDir.'/docs/announcements'; |
|
| 29 | + $rootDir = realpath(__DIR__ . '/../../../../'); // FIXME get from Kernel |
|
| 30 | + $announceDir = $rootDir . '/docs/announcements'; |
|
| 31 | 31 | |
| 32 | 32 | if (!preg_match('/^\w+$/', $section)) { |
| 33 | 33 | throw new NotFoundHttpException(); // don't give access to anything but plain names |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - $candidateFile = $announceDir.'/'.$section.'.md'; |
|
| 36 | + $candidateFile = $announceDir . '/' . $section . '.md'; |
|
| 37 | 37 | |
| 38 | 38 | if (!file_exists($candidateFile)) { |
| 39 | 39 | throw new NotFoundHttpException(); |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | $dataStore = $this; |
| 171 | 171 | $instruments = $dataStore->fetchInstrumentsForSongId($song['id']); |
| 172 | 172 | $instruments = array_map( |
| 173 | - function (Instrument $instrument) { |
|
| 173 | + function(Instrument $instrument) { |
|
| 174 | 174 | return $instrument->jsonSerialize(); |
| 175 | 175 | }, |
| 176 | 176 | $instruments |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | |
| 185 | 185 | $platforms = $dataStore->fetchPlatformsForSongId($song['id']); |
| 186 | 186 | $platforms = array_map( |
| 187 | - function (Platform $platform) { |
|
| 187 | + function(Platform $platform) { |
|
| 188 | 188 | return $platform->getName(); |
| 189 | 189 | }, |
| 190 | 190 | $platforms |
@@ -936,7 +936,7 @@ discard block |
||
| 936 | 936 | |
| 937 | 937 | $dbConn = $this; |
| 938 | 938 | $instruments = array_map( |
| 939 | - function ($row) use ($dbConn) { |
|
| 939 | + function($row) use ($dbConn) { |
|
| 940 | 940 | return $dbConn->buildInstrumentFromDbRow($row); |
| 941 | 941 | }, |
| 942 | 942 | $instrumentRows |
@@ -959,7 +959,7 @@ discard block |
||
| 959 | 959 | |
| 960 | 960 | $dbConn = $this; |
| 961 | 961 | $platforms = array_map( |
| 962 | - function ($row) use ($dbConn) { |
|
| 962 | + function($row) use ($dbConn) { |
|
| 963 | 963 | return $dbConn->buildPlatformFromDbRow($row); |
| 964 | 964 | }, |
| 965 | 965 | $platformRows |
@@ -73,12 +73,12 @@ |
||
| 73 | 73 | protected function defaultViewParams() |
| 74 | 74 | { |
| 75 | 75 | $allPlatforms = $this->getDataStore()->fetchAllPlatforms(); |
| 76 | - $platformNames = array_map(function (Platform $platform) { |
|
| 76 | + $platformNames = array_map(function(Platform $platform) { |
|
| 77 | 77 | return $platform->getName(); |
| 78 | 78 | }, $allPlatforms); |
| 79 | 79 | |
| 80 | 80 | $instruments = $this->getDataStore()->fetchAllInstruments(); |
| 81 | - $instrumentOrder = array_map(function (Instrument $instrument) { |
|
| 81 | + $instrumentOrder = array_map(function(Instrument $instrument) { |
|
| 82 | 82 | return $instrument->getAbbreviation(); |
| 83 | 83 | }, $instruments); |
| 84 | 84 | |