Test Setup Failed
Branch master (354693)
by Valery
09:34
created
src/Entity/Locality.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public function addProperty(Property $property): self
88 88
     {
89 89
         if (!$this->properties->contains($property)) {
90
-            $this->properties[] = $property;
90
+            $this->properties[ ] = $property;
91 91
             $property->setLocality($this);
92 92
         }
93 93
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     public function addArea(Area $area): self
119 119
     {
120 120
         if (!$this->areas->contains($area)) {
121
-            $this->areas[] = $area;
121
+            $this->areas[ ] = $area;
122 122
             $area->setLocality($this);
123 123
         }
124 124
 
Please login to merge, or discard this patch.
src/Controller/PageController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
                 $eventDispatcher->dispatch(new ContactFormSubmittedEvent($contact));
32 32
                 $this->addFlash('success', 'message.was_sent');
33 33
 
34
-                return $this->redirectToRoute('page', ['slug' => $page->getSlug()]);
34
+                return $this->redirectToRoute('page', [ 'slug' => $page->getSlug() ]);
35 35
             }
36 36
         }
37 37
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             [
40 40
                 'site' => $this->site(),
41 41
                 'page' => $page,
42
-                'form' => (!empty($form) ? $form->createView() : []),
42
+                'form' => (!empty($form) ? $form->createView() : [ ]),
43 43
             ]
44 44
         );
45 45
     }
Please login to merge, or discard this patch.
src/Controller/Admin/MenuController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         $items = $request->request->get('items');
93 93
         $repository->reorderItems($items);
94 94
 
95
-        return new JsonResponse(['status' => 'ok']);
95
+        return new JsonResponse([ 'status' => 'ok' ]);
96 96
     }
97 97
 
98 98
     /**
Please login to merge, or discard this patch.
src/Controller/Admin/PropertyController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             $this->propertyService->create($property, $user);
55 55
             $this->addFlash('success', 'message.created');
56 56
 
57
-            return $this->redirectToRoute('admin_photo_edit', ['id' => $property->getId()]);
57
+            return $this->redirectToRoute('admin_photo_edit', [ 'id' => $property->getId() ]);
58 58
         }
59 59
 
60 60
         return $this->render('admin/property/new.html.twig', [
Please login to merge, or discard this patch.
src/Controller/Admin/SettingController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function edit(Request $request, SettingRepository $repository): Response
22 22
     {
23
-        $settings = $repository->findAll()[0];
23
+        $settings = $repository->findAll()[ 0 ];
24 24
 
25 25
         $form = $this->createForm(SettingType::class, $settings);
26 26
         $form->handleRequest($request);
Please login to merge, or discard this patch.
src/Mailer/Sender/Adapter/SwiftMailerAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@
 block discarded – undo
22 22
     {
23 23
         // Create a message
24 24
         $message = (new Swift_Message($subject))
25
-            ->setFrom([$fromEmail => $fromName])
26
-            ->setTo([$toEmail])
27
-            ->setReplyTo([$fromEmail])
25
+            ->setFrom([ $fromEmail => $fromName ])
26
+            ->setTo([ $toEmail ])
27
+            ->setReplyTo([ $fromEmail ])
28 28
             ->setBody($body);
29 29
 
30 30
         // Send the message
Please login to merge, or discard this patch.
src/DataFixtures/CurrencyFixtures.php 1 patch
Spacing   +7 added lines, -7 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->getCurrencyData() as [$currencyTitle, $code, $symbolLeft, $symbolRight]) {
15
+        foreach ($this->getCurrencyData() as [ $currencyTitle, $code, $symbolLeft, $symbolRight ]) {
16 16
             $category = new Currency();
17 17
             $category->setCurrencyTitle($currencyTitle);
18 18
             $category->setCode($code);
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
     {
30 30
         return [
31 31
             // $currencyData = [$currencyTitle, $code, $symbolLeft, $symbolRight];
32
-            ['US Dollar', 'USD', '$', ''],
33
-            ['Euro', 'EUR', '', '€'],
34
-            ['Pound Sterling', 'GBP', '£', ''],
35
-            ['Hong Kong Dollar', 'HKD', 'HK$', ''],
36
-            ['Russian Ruble', 'RUB', '₽', ''],
37
-            ['Belarusian ruble', 'BYN', '', 'Br'],
32
+            [ 'US Dollar', 'USD', '$', '' ],
33
+            [ 'Euro', 'EUR', '', '€' ],
34
+            [ 'Pound Sterling', 'GBP', '£', '' ],
35
+            [ 'Hong Kong Dollar', 'HKD', 'HK$', '' ],
36
+            [ 'Russian Ruble', 'RUB', '₽', '' ],
37
+            [ 'Belarusian ruble', 'BYN', '', 'Br' ],
38 38
         ];
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/DataFixtures/AreaFixtures.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
     {
29 29
         return [
30 30
             // $areaData = [$locality, $name, $slug];
31
-           [$this->getReference('Miami'), 'South Beach', 'south-beach'],
32
-           [$this->getReference('Miami'), 'Downtown', 'downtown'],
33
-           [$this->getReference('Tampa'), 'Ballast Point', 'ballast-point'],
34
-           [$this->getReference('Tampa'), 'Culbreath Isles', 'culbreath-isles'],
31
+            [$this->getReference('Miami'), 'South Beach', 'south-beach'],
32
+            [$this->getReference('Miami'), 'Downtown', 'downtown'],
33
+            [$this->getReference('Tampa'), 'Ballast Point', 'ballast-point'],
34
+            [$this->getReference('Tampa'), 'Culbreath Isles', 'culbreath-isles'],
35 35
         ];
36 36
     }
37 37
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 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->getAreaData() as [$locality, $name, $slug]) {
16
+        foreach ($this->getAreaData() as [ $locality, $name, $slug ]) {
17 17
             $area = new Area();
18 18
             $area->setLocality($locality);
19 19
             $area->setName($name);
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
     {
29 29
         return [
30 30
             // $areaData = [$locality, $name, $slug];
31
-           [$this->getReference('Miami'), 'South Beach', 'south-beach'],
32
-           [$this->getReference('Miami'), 'Downtown', 'downtown'],
33
-           [$this->getReference('Tampa'), 'Ballast Point', 'ballast-point'],
34
-           [$this->getReference('Tampa'), 'Culbreath Isles', 'culbreath-isles'],
31
+           [ $this->getReference('Miami'), 'South Beach', 'south-beach' ],
32
+           [ $this->getReference('Miami'), 'Downtown', 'downtown' ],
33
+           [ $this->getReference('Tampa'), 'Ballast Point', 'ballast-point' ],
34
+           [ $this->getReference('Tampa'), 'Culbreath Isles', 'culbreath-isles' ],
35 35
         ];
36 36
     }
37 37
 
Please login to merge, or discard this patch.
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.