Test Failed
Branch master (354693)
by Valery
09:47
created
src/DataFixtures/MenuFixtures.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 {
13 13
     public function load(ObjectManager $manager): void
14 14
     {
15
-        foreach ($this->getMenuData() as [$title, $url]) {
15
+        foreach ($this->getMenuData() as [ $title, $url ]) {
16 16
             $menu = new Menu();
17 17
             $menu->setTitle($title);
18 18
             $menu->setUrl($url);
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
     {
27 27
         return [
28 28
             // $menuData = [$title, $url];
29
-            ['Homepage', '/'],
30
-            ['About Us', '/info/about-us'],
31
-            ['Contact', '/info/contact'],
29
+            [ 'Homepage', '/' ],
30
+            [ 'About Us', '/info/about-us' ],
31
+            [ 'Contact', '/info/contact' ],
32 32
         ];
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/Twig/AppExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public function getFilters()
24 24
     {
25 25
         return [
26
-            new TwigFilter('page', [$this, 'showPageNumber']),
26
+            new TwigFilter('page', [ $this, 'showPageNumber' ]),
27 27
         ];
28 28
     }
29 29
 
Please login to merge, or discard this patch.
src/Service/PageService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $cache = new FilesystemAdapter();
42 42
 
43
-        $count = $cache->get('pages_count', function () {
43
+        $count = $cache->get('pages_count', function() {
44 44
             return $this->em->getRepository(Page::class)->countAll();
45 45
         });
46 46
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $this->clearCache();
67 67
 
68 68
         // Delete a menu item
69
-        $menu = $this->em->getRepository(Menu::class)->findOneBy(['url' => '/info/'.$page->getSlug()]);
69
+        $menu = $this->em->getRepository(Menu::class)->findOneBy([ 'url' => '/info/'.$page->getSlug() ]);
70 70
         if ($menu) {
71 71
             $this->remove($menu);
72 72
         }
Please login to merge, or discard this patch.
src/Service/PropertyService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     {
54 54
         $cache = new FilesystemAdapter();
55 55
 
56
-        $count = $cache->get('properties_count', function () {
56
+        $count = $cache->get('properties_count', function() {
57 57
             return $this->em->getRepository(Property::class)->countAll();
58 58
         });
59 59
 
Please login to merge, or discard this patch.
src/Form/EventSubscriber/UpdateAreaFieldSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     public static function getSubscribedEvents()
15 15
     {
16
-        return [FormEvents::POST_SUBMIT => 'onLocalityChanged'];
16
+        return [ FormEvents::POST_SUBMIT => 'onLocalityChanged' ];
17 17
     }
18 18
 
19 19
     public function onLocalityChanged(FormEvent $event)
Please login to merge, or discard this patch.
src/Form/EventSubscriber/AddAreaFieldSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     public static function getSubscribedEvents()
15 15
     {
16
-        return [FormEvents::POST_SET_DATA => 'onLocalitySelected'];
16
+        return [ FormEvents::POST_SET_DATA => 'onLocalitySelected' ];
17 17
     }
18 18
 
19 19
     public function onLocalitySelected(FormEvent $event)
Please login to merge, or discard this patch.
src/Form/Type/PropertyType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                     'class' => 'form-control',
49 49
                 ],
50 50
                 'label' => 'label.area',
51
-                'choices' => [],
51
+                'choices' => [ ],
52 52
             ])
53 53
             ->add('operation', EntityType::class, [
54 54
                 'class' => Operation::class,
Please login to merge, or discard this patch.