Test Failed
Branch master (354693)
by Valery
12:29
created
src/DataFixtures/PropertyFixtures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 {
15 15
     public function load(ObjectManager $manager): void
16 16
     {
17
-        foreach ($this->getPropertyData() as [$operation, $category, $locality, $area, $title,
17
+        foreach ($this->getPropertyData() as [ $operation, $category, $locality, $area, $title,
18 18
                     $address, $latitude, $longitude, $price, $price_type, ]) {
19 19
             $property = new Property();
20 20
             $property->setAuthor($this->getReference(UserFixtures::ADMIN_USER_REFERENCE));
Please login to merge, or discard this patch.
src/DataFixtures/PhotoFixtures.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 {
14 14
     public function load(ObjectManager $manager): void
15 15
     {
16
-        foreach ($this->getPhotoData() as [$property, $priority, $file]) {
16
+        foreach ($this->getPhotoData() as [ $property, $priority, $file ]) {
17 17
             $photo = new Photo();
18 18
             $photo->setProperty($property);
19 19
             $photo->setSortOrder($priority);
@@ -27,22 +27,22 @@  discard block
 block discarded – undo
27 27
     {
28 28
         return [
29 29
             // $photoData = [$property, $priority, $file];
30
-            [$this->getReference('bright-and-cheerful-alcove-studio'), 1, 'demo/1.jpeg'],
31
-            [$this->getReference('bright-and-cheerful-alcove-studio'), 2, 'demo/2.jpeg'],
32
-            [$this->getReference('modern-one-bedroom-apartment-in-miami'), 1, 'demo/3.jpeg'],
33
-            [$this->getReference('modern-one-bedroom-apartment-in-miami'), 2, 'demo/4.jpeg'],
34
-            [$this->getReference('stylish-two-level-penthouse-in-palm-beach'), 1, 'demo/5.jpeg'],
35
-            [$this->getReference('stylish-two-level-penthouse-in-palm-beach'), 2, 'demo/6.jpeg'],
36
-            [$this->getReference('bright-fully-furnished-1-bedroom-flat-on-the-2nd-floor'), 1, 'demo/7.jpeg'],
37
-            [$this->getReference('bright-fully-furnished-1-bedroom-flat-on-the-2nd-floor'), 2, 'demo/2.jpeg'],
38
-            [$this->getReference('beautiful-villa-for-sale-in-tampa'), 1, 'demo/8.jpeg'],
39
-            [$this->getReference('beautiful-villa-for-sale-in-tampa'), 2, 'demo/9.jpeg'],
40
-            [$this->getReference('beautiful-villa-for-sale-in-tampa'), 3, 'demo/4.jpeg'],
41
-            [$this->getReference('furnished-renovated-2-bedroom-2-bathroom-flat'), 1, 'demo/10.jpeg'],
42
-            [$this->getReference('furnished-renovated-2-bedroom-2-bathroom-flat'), 2, 'demo/6.jpeg'],
43
-            [$this->getReference('interesting-two-bedroom-apartment-for-sale'), 1, 'demo/11.jpeg'],
44
-            [$this->getReference('interesting-two-bedroom-apartment-for-sale'), 2, 'demo/12.jpeg'],
45
-            [$this->getReference('interesting-two-bedroom-apartment-for-sale'), 3, 'demo/13.jpeg'],
30
+            [ $this->getReference('bright-and-cheerful-alcove-studio'), 1, 'demo/1.jpeg' ],
31
+            [ $this->getReference('bright-and-cheerful-alcove-studio'), 2, 'demo/2.jpeg' ],
32
+            [ $this->getReference('modern-one-bedroom-apartment-in-miami'), 1, 'demo/3.jpeg' ],
33
+            [ $this->getReference('modern-one-bedroom-apartment-in-miami'), 2, 'demo/4.jpeg' ],
34
+            [ $this->getReference('stylish-two-level-penthouse-in-palm-beach'), 1, 'demo/5.jpeg' ],
35
+            [ $this->getReference('stylish-two-level-penthouse-in-palm-beach'), 2, 'demo/6.jpeg' ],
36
+            [ $this->getReference('bright-fully-furnished-1-bedroom-flat-on-the-2nd-floor'), 1, 'demo/7.jpeg' ],
37
+            [ $this->getReference('bright-fully-furnished-1-bedroom-flat-on-the-2nd-floor'), 2, 'demo/2.jpeg' ],
38
+            [ $this->getReference('beautiful-villa-for-sale-in-tampa'), 1, 'demo/8.jpeg' ],
39
+            [ $this->getReference('beautiful-villa-for-sale-in-tampa'), 2, 'demo/9.jpeg' ],
40
+            [ $this->getReference('beautiful-villa-for-sale-in-tampa'), 3, 'demo/4.jpeg' ],
41
+            [ $this->getReference('furnished-renovated-2-bedroom-2-bathroom-flat'), 1, 'demo/10.jpeg' ],
42
+            [ $this->getReference('furnished-renovated-2-bedroom-2-bathroom-flat'), 2, 'demo/6.jpeg' ],
43
+            [ $this->getReference('interesting-two-bedroom-apartment-for-sale'), 1, 'demo/11.jpeg' ],
44
+            [ $this->getReference('interesting-two-bedroom-apartment-for-sale'), 2, 'demo/12.jpeg' ],
45
+            [ $this->getReference('interesting-two-bedroom-apartment-for-sale'), 3, 'demo/13.jpeg' ],
46 46
         ];
47 47
     }
48 48
 
Please login to merge, or discard this patch.
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.