Completed
Pull Request — master (#4)
by Alexis
02:37
created
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.
Validator/Constraints/RouteExistsValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
         $match = false;
21 21
         if (strpos($value, '/') === 0) {
22 22
             $context = $this->router->getContext();
23
-            $baseUrl = $context->getScheme().'://'.$context->getHost().$context->getBaseUrl();
24
-            $value = $baseUrl.$value;
23
+            $baseUrl = $context->getScheme() . '://' . $context->getHost() . $context->getBaseUrl();
24
+            $value = $baseUrl . $value;
25 25
         }
26 26
 
27 27
         $handle = curl_init($value);
Please login to merge, or discard this patch.
Controller/Admin/CRUD/ItemAdmin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     protected function configureRoutes(RouteCollection $collection)
27 27
     {
28
-        $collection->add('move', $this->getRouterIdParameter().'/move/{position}');
28
+        $collection->add('move', $this->getRouterIdParameter() . '/move/{position}');
29 29
     }
30 30
 
31 31
     public function getPersistentParameters()
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     {
44 44
         $id = $this->getRequest()->query->getInt('menu');
45 45
         $query = parent::createQuery($context);
46
-        $query->join($query->getRootAlias().'.menu', 'm')
46
+        $query->join($query->getRootAlias() . '.menu', 'm')
47 47
             ->where('m.id = :id')
48 48
             ->setParameters([
49 49
                 'id' => $id,
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                     'label'         => 'Menu',
64 64
                     'required'      => true,
65 65
                     'property'      => 'name',
66
-                    'query_builder' => function (EntityRepository $entityRepository) use ($id) {
66
+                    'query_builder' => function(EntityRepository $entityRepository) use ($id) {
67 67
                         $query = $entityRepository->createQuerybuilder('m');
68 68
                         if ($id == null) {
69 69
                             return $query;
Please login to merge, or discard this patch.