Completed
Push — master ( 8bc180...8527e5 )
by Benjamin
03:52 queued 01:36
created
Tests/app/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 
20 20
     public function registerContainerConfiguration(LoaderInterface $loader)
21 21
     {
22
-        $loader->load(__DIR__.'/../config/config.yml');
22
+        $loader->load(__DIR__ . '/../config/config.yml');
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
Tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 $_SERVER['env'] = 'test';
4 4
 use Doctrine\Common\Annotations\AnnotationRegistry;
5
-if (!is_file($loaderFile = __DIR__.'/../vendor/autoload.php')) {
5
+if (!is_file($loaderFile = __DIR__ . '/../vendor/autoload.php')) {
6 6
     throw new \LogicException('Could not find autoload.php in vendor/. Did you run "composer install --dev"?');
7 7
 }
8 8
 $loader = require $loaderFile;
Please login to merge, or discard this patch.
Tests/Builder/MenuBuilderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     {
112 112
         $item = new Item();
113 113
         $item->setMenu($menu);
114
-        $item->setName('Item '.$i);
114
+        $item->setName('Item ' . $i);
115 115
         $item->setPosition($i);
116 116
         $item->setUri('http://alpixel.fr');
117 117
 
Please login to merge, or discard this patch.
DependencyInjection/AlpixelMenuExtension.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
         $configuration = new Configuration();
28 28
         $this->processConfiguration($configuration, $configs);
29 29
 
30
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
30
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
31 31
         $loader->load('services.yml');
32 32
 
33 33
         $menuBuilder = $container->getDefinition('alpixel_menu.builder');
Please login to merge, or discard this patch.
Controller/Admin/CRUD/MenuAdmin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     public function createQuery($context = 'list')
13 13
     {
14 14
         $query = parent::createQuery($context);
15
-        $query->addOrderBy($query->getRootAlias().'.locale', 'ASC');
15
+        $query->addOrderBy($query->getRootAlias() . '.locale', 'ASC');
16 16
 
17 17
         return $query;
18 18
     }
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     protected function configureRoutes(RouteCollection $collection)
21 21
     {
22 22
         $collection->clearExcept(['list']);
23
-        $collection->add('item', $this->getRouterIdParameter().'/item');
23
+        $collection->add('item', $this->getRouterIdParameter() . '/item');
24 24
     }
25 25
 
26 26
     protected function configureFormFields(FormMapper $formMapper)
Please login to merge, or discard this patch.
Builder/MenuBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -175,10 +175,10 @@
 block discarded – undo
175 175
 
176 176
         if (($uri = $item->getUri()) !== null) {
177 177
             if ($uri[0] == '/') {
178
-                $baseUri = $this->request->getBasePath().
179
-                           $this->request->getBaseURL().
178
+                $baseUri = $this->request->getBasePath() .
179
+                           $this->request->getBaseURL() .
180 180
                            $uri;
181
-                $uri = $this->request->getSchemeAndHttpHost().$baseUri;
181
+                $uri = $this->request->getSchemeAndHttpHost() . $baseUri;
182 182
 
183 183
                 if ($baseUri === $this->currentUri) {
184 184
                     $menuItem->setCurrent(true);
Please login to merge, or discard this patch.
Twig/DisplayLinkExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
         if ($env === 'dev' && strpos($link, 'http') === false) {
28 28
             $dev = ($link[0] === '/') ? 'app_dev.php' : 'app_dev.php/';
29
-            $link = $dev.$link;
29
+            $link = $dev . $link;
30 30
         }
31 31
 
32 32
         return $link;
Please login to merge, or discard this patch.
Utils/URLChecker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
     {
26 26
         if (strpos($url, '/') === 0) {
27 27
             $context = $this->router->getContext();
28
-            $baseUrl = $context->getScheme().'://'.$context->getHost().$context->getBaseUrl();
29
-            $url = $baseUrl.$url;
28
+            $baseUrl = $context->getScheme() . '://' . $context->getHost() . $context->getBaseUrl();
29
+            $url = $baseUrl . $url;
30 30
         }
31 31
 
32 32
         $handle = curl_init($url);
Please login to merge, or discard this patch.
Controller/Admin/CRUD/ItemAdmin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 
28 28
     protected function configureRoutes(RouteCollection $collection)
29 29
     {
30
-        $collection->add('move', $this->getRouterIdParameter().'/move/{position}');
31
-        $collection->add('item', $this->getRouterIdParameter().'/item');
30
+        $collection->add('move', $this->getRouterIdParameter() . '/move/{position}');
31
+        $collection->add('item', $this->getRouterIdParameter() . '/item');
32 32
     }
33 33
 
34 34
     public function getPersistentParameters()
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
             if ($requestQuery->has('menu')) {
57 57
                 $menuId = $requestQuery->getInt('menu');
58 58
                 $query
59
-                    ->join($query->getRootAlias().'.menu', 'm')
60
-                    ->leftJoin($query->getRootAlias().'.parent', 'p')
59
+                    ->join($query->getRootAlias() . '.menu', 'm')
60
+                    ->leftJoin($query->getRootAlias() . '.parent', 'p')
61 61
                     ->where('m.id = :menuId')
62 62
                     ->andwhere('p.id IS NULL')
63 63
                     ->setParameters([
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                     'label'         => 'Menu',
90 90
                     'required'      => true,
91 91
                     'property'      => 'name',
92
-                    'query_builder' => function (EntityRepository $entityRepository) use ($id) {
92
+                    'query_builder' => function(EntityRepository $entityRepository) use ($id) {
93 93
                         $query = $entityRepository->createQuerybuilder('m');
94 94
                         if ($id === null) {
95 95
                             return $query;
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                 'label'         => 'Menu',
108 108
                 'required'      => true,
109 109
                 'property'      => 'name',
110
-                'query_builder' => function (EntityRepository $entityRepository) use ($id) {
110
+                'query_builder' => function(EntityRepository $entityRepository) use ($id) {
111 111
                     $query = $entityRepository->createQuerybuilder('m');
112 112
                     if ($id === null) {
113 113
                         return $query;
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             $url        = $object->getUri();
172 172
             if ($checker->check($url) === URLChecker::URL_PROBLEM) {
173 173
                 $session = $container->get('session');
174
-                $session->getFlashBag()->add('warning', 'Cependant une erreur semble être apparue quand nous avons tenté d\'analyser la page "'.$url.'". Vous devriez vérifier que le lien spécifié n\'affiche aucune erreur.');
174
+                $session->getFlashBag()->add('warning', 'Cependant une erreur semble être apparue quand nous avons tenté d\'analyser la page "' . $url . '". Vous devriez vérifier que le lien spécifié n\'affiche aucune erreur.');
175 175
             }
176 176
         }
177 177
     }
Please login to merge, or discard this patch.