Passed
Push — master ( 9ff996...7ddffb )
by Xavier
02:16
created
web/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     exit('This script is only accessible from localhost.');
23 23
 }
24 24
 
25
-require_once dirname(__FILE__).'/../var/SymfonyRequirements.php';
25
+require_once dirname(__FILE__) . '/../var/SymfonyRequirements.php';
26 26
 
27 27
 $symfonyRequirements = new SymfonyRequirements();
28 28
 
Please login to merge, or discard this patch.
web/app.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 use Symfony\Component\HttpFoundation\Request;
4 4
 
5
-require __DIR__.'/../vendor/autoload.php';
5
+require __DIR__ . '/../vendor/autoload.php';
6 6
 if (PHP_VERSION_ID < 70000) {
7
-    include_once __DIR__.'/../var/bootstrap.php.cache';
7
+    include_once __DIR__ . '/../var/bootstrap.php.cache';
8 8
 }
9 9
 
10 10
 $kernel = new AppKernel('prod', true);
Please login to merge, or discard this patch.
web/app_dev.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
     || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'], true) || PHP_SAPI === '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
-require __DIR__.'/../vendor/autoload.php';
21
+require __DIR__ . '/../vendor/autoload.php';
22 22
 Debug::enable();
23 23
 
24 24
 $kernel = new AppKernel('dev', true);
Please login to merge, or discard this patch.
src/AppBundle/Controller/HomeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function indexAction(Request $request)
28 28
     {
29 29
         return $this->render('home.twig', [
30
-            'base_dir' => realpath($this->getParameter('kernel.project_dir')).DIRECTORY_SEPARATOR,
30
+            'base_dir' => realpath($this->getParameter('kernel.project_dir')) . DIRECTORY_SEPARATOR,
31 31
         ]);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/AppBundle/TwigExtension/TranslatorExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $languages = [];
61 61
         foreach (glob(self::DICTIONARY_PATH . '*.json') as $file) {
62 62
             $language = json_decode(file_get_contents($file), GLOB_BRACE);
63
-            $languages += [ $language['self_name'] => substr(basename($file), 0, 2) ];
63
+            $languages += [$language['self_name'] => substr(basename($file), 0, 2)];
64 64
         }
65 65
 
66 66
         return $languages;
Please login to merge, or discard this patch.
src/AppBundle/EventListener/LocaleListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
 
59 59
     public static function getSubscribedEvents()
60 60
     {
61
-        return [ KernelEvents::REQUEST => [['onKernelRequest', 200]] ];
61
+        return [KernelEvents::REQUEST => [['onKernelRequest', 200]]];
62 62
     }
63 63
 }
64 64
\ No newline at end of file
Please login to merge, or discard this patch.
src/AppBundle/EventListener/Providers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
 
59 59
     public static function getSubscribedEvents()
60 60
     {
61
-        return [ KernelEvents::REQUEST => [['onKernelRequest', 200]] ];
61
+        return [KernelEvents::REQUEST => [['onKernelRequest', 200]]];
62 62
     }
63 63
 }
64 64
\ No newline at end of file
Please login to merge, or discard this patch.