@@ -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 | } |
@@ -172,7 +172,7 @@ |
||
172 | 172 | |
173 | 173 | $datastore = $this->dataStore; |
174 | 174 | $instrumentIds = array_map( |
175 | - function ($name) use ($datastore) { |
|
175 | + function($name) use ($datastore) { |
|
176 | 176 | $instrument = $datastore->fetchInstrumentByName($name); |
177 | 177 | return $instrument ? $instrument->getId() : null; |
178 | 178 | }, |
@@ -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(); |
@@ -72,7 +72,7 @@ |
||
72 | 72 | protected function defaultViewParams() |
73 | 73 | { |
74 | 74 | $allPlatforms = $this->getDataStore()->fetchAllPlatforms(); |
75 | - $platformNames = array_map(function (Platform $platform) { |
|
75 | + $platformNames = array_map(function(Platform $platform) { |
|
76 | 76 | return $platform->getName(); |
77 | 77 | }, $allPlatforms); |
78 | 78 |