@@ -77,7 +77,7 @@ |
||
77 | 77 | * @noinspection RealpathInSteamContextInspection |
78 | 78 | */ |
79 | 79 | $allPlatforms = $this->dataSource->fetchAllPlatforms(); |
80 | - $platformNames = array_map(function (Platform $platform) { |
|
80 | + $platformNames = array_map(function(Platform $platform) { |
|
81 | 81 | return $platform->getName(); |
82 | 82 | }, $allPlatforms); |
83 | 83 |
@@ -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(); |