Completed
Push — master ( 852698...9531ed )
by Valery
04:57
created
src/Kernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         $contents = require $this->getProjectDir().'/config/bundles.php';
33 33
         foreach ($contents as $class => $envs) {
34
-            if ($envs[$this->environment] ?? $envs['all'] ?? false) {
34
+            if ($envs[ $this->environment ] ?? $envs[ 'all' ] ?? false) {
35 35
                 yield new $class();
36 36
             }
37 37
         }
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,21 +6,21 @@
 block discarded – undo
6 6
 
7 7
 require dirname(__DIR__).'/config/bootstrap.php';
8 8
 
9
-if ($_SERVER['APP_DEBUG']) {
9
+if ($_SERVER[ 'APP_DEBUG' ]) {
10 10
     umask(0000);
11 11
 
12 12
     Debug::enable();
13 13
 }
14 14
 
15
-if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
15
+if ($trustedProxies = $_SERVER[ 'TRUSTED_PROXIES' ] ?? $_ENV[ 'TRUSTED_PROXIES' ] ?? false) {
16 16
     Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
17 17
 }
18 18
 
19
-if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
20
-    Request::setTrustedHosts([$trustedHosts]);
19
+if ($trustedHosts = $_SERVER[ 'TRUSTED_HOSTS' ] ?? $_ENV[ 'TRUSTED_HOSTS' ] ?? false) {
20
+    Request::setTrustedHosts([ $trustedHosts ]);
21 21
 }
22 22
 
23
-$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
23
+$kernel = new Kernel($_SERVER[ 'APP_ENV' ], (bool) $_SERVER[ 'APP_DEBUG' ]);
24 24
 $request = Request::createFromGlobals();
25 25
 $response = $kernel->handle($request);
26 26
 $response->send();
Please login to merge, or discard this patch.
src/DataFixtures/LocalityFixtures.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->getLocalityData() as [$slug, $name]) {
15
+        foreach ($this->getLocalityData() as [ $slug, $name ]) {
16 16
             $locality = new Locality();
17 17
             $locality->setName($name);
18 18
             $locality->setSlug($slug);
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
     {
27 27
         return [
28 28
             // $localityData = [$slug, $name];
29
-            ['miami', 'Miami'],
30
-            ['palm-beach', 'Palm Beach'],
31
-            ['tampa', 'Tampa'],
29
+            [ 'miami', 'Miami' ],
30
+            [ 'palm-beach', 'Palm Beach' ],
31
+            [ 'tampa', 'Tampa' ],
32 32
         ];
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/DataFixtures/MenuFixtures.php 1 patch
Spacing   +3 added lines, -3 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,8 +26,8 @@  discard block
 block discarded – undo
26 26
     {
27 27
         return [
28 28
             // $menuData = [$title, $url];
29
-            ['Homepage', '/'],
30
-            ['About Us', '/info/about-us'],
29
+            [ 'Homepage', '/' ],
30
+            [ 'About Us', '/info/about-us' ],
31 31
         ];
32 32
     }
33 33
 }
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
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     public function load(ObjectManager $manager): void
15 15
     {
16
-        foreach ($this->getPropertyData() as [$operation, $category, $locality, $title,
16
+        foreach ($this->getPropertyData() as [ $operation, $category, $locality, $title,
17 17
                     $address, $latitude, $longitude, $price, $price_type, ]) {
18 18
             $property = new Property();
19 19
             $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
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 {
13 13
     public function load(ObjectManager $manager): void
14 14
     {
15
-        foreach ($this->getPhotoData() as [$property, $priority, $file]) {
15
+        foreach ($this->getPhotoData() as [ $property, $priority, $file ]) {
16 16
             $photo = new Photo();
17 17
             $photo->setProperty($property);
18 18
             $photo->setPriority($priority);
@@ -26,22 +26,22 @@  discard block
 block discarded – undo
26 26
     {
27 27
         return [
28 28
             // $photoData = [$property, $priority, $file];
29
-            [$this->getReference('bright-and-cheerful-alcove-studio'), 2, 'demo/1.jpeg'],
30
-            [$this->getReference('bright-and-cheerful-alcove-studio'), 1, 'demo/2.jpeg'],
31
-            [$this->getReference('modern-one-bedroom-apartment-in-miami'), 2, 'demo/3.jpeg'],
32
-            [$this->getReference('modern-one-bedroom-apartment-in-miami'), 1, 'demo/4.jpeg'],
33
-            [$this->getReference('stylish-two-level-penthouse-in-palm-beach'), 2, 'demo/5.jpeg'],
34
-            [$this->getReference('stylish-two-level-penthouse-in-palm-beach'), 1, 'demo/6.jpeg'],
35
-            [$this->getReference('bright-fully-furnished-1-bedroom-flat-on-the-2nd-floor'), 2, 'demo/7.jpeg'],
36
-            [$this->getReference('bright-fully-furnished-1-bedroom-flat-on-the-2nd-floor'), 1, 'demo/2.jpeg'],
37
-            [$this->getReference('beautiful-villa-for-sale-in-tampa'), 3, 'demo/8.jpeg'],
38
-            [$this->getReference('beautiful-villa-for-sale-in-tampa'), 2, 'demo/9.jpeg'],
39
-            [$this->getReference('beautiful-villa-for-sale-in-tampa'), 1, 'demo/4.jpeg'],
40
-            [$this->getReference('furnished-renovated-2-bedroom-2-bathroom-flat'), 2, 'demo/10.jpeg'],
41
-            [$this->getReference('furnished-renovated-2-bedroom-2-bathroom-flat'), 1, 'demo/6.jpeg'],
42
-            [$this->getReference('interesting-two-bedroom-apartment-for-sale'), 3, 'demo/11.jpeg'],
43
-            [$this->getReference('interesting-two-bedroom-apartment-for-sale'), 2, 'demo/12.jpeg'],
44
-            [$this->getReference('interesting-two-bedroom-apartment-for-sale'), 1, 'demo/13.jpeg'],
29
+            [ $this->getReference('bright-and-cheerful-alcove-studio'), 2, 'demo/1.jpeg' ],
30
+            [ $this->getReference('bright-and-cheerful-alcove-studio'), 1, 'demo/2.jpeg' ],
31
+            [ $this->getReference('modern-one-bedroom-apartment-in-miami'), 2, 'demo/3.jpeg' ],
32
+            [ $this->getReference('modern-one-bedroom-apartment-in-miami'), 1, 'demo/4.jpeg' ],
33
+            [ $this->getReference('stylish-two-level-penthouse-in-palm-beach'), 2, 'demo/5.jpeg' ],
34
+            [ $this->getReference('stylish-two-level-penthouse-in-palm-beach'), 1, 'demo/6.jpeg' ],
35
+            [ $this->getReference('bright-fully-furnished-1-bedroom-flat-on-the-2nd-floor'), 2, 'demo/7.jpeg' ],
36
+            [ $this->getReference('bright-fully-furnished-1-bedroom-flat-on-the-2nd-floor'), 1, 'demo/2.jpeg' ],
37
+            [ $this->getReference('beautiful-villa-for-sale-in-tampa'), 3, 'demo/8.jpeg' ],
38
+            [ $this->getReference('beautiful-villa-for-sale-in-tampa'), 2, 'demo/9.jpeg' ],
39
+            [ $this->getReference('beautiful-villa-for-sale-in-tampa'), 1, 'demo/4.jpeg' ],
40
+            [ $this->getReference('furnished-renovated-2-bedroom-2-bathroom-flat'), 2, 'demo/10.jpeg' ],
41
+            [ $this->getReference('furnished-renovated-2-bedroom-2-bathroom-flat'), 1, 'demo/6.jpeg' ],
42
+            [ $this->getReference('interesting-two-bedroom-apartment-for-sale'), 3, 'demo/11.jpeg' ],
43
+            [ $this->getReference('interesting-two-bedroom-apartment-for-sale'), 2, 'demo/12.jpeg' ],
44
+            [ $this->getReference('interesting-two-bedroom-apartment-for-sale'), 1, 'demo/13.jpeg' ],
45 45
         ];
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
src/DataFixtures/UserFixtures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         ));
34 34
         $user->setPhone('0(0)99766899');
35 35
         $user->setEmail('admin@admin');
36
-        $user->setRoles(['ROLE_ADMIN']);
36
+        $user->setRoles([ 'ROLE_ADMIN' ]);
37 37
         $manager->persist($user);
38 38
         $manager->flush();
39 39
         $this->addReference(self::ADMIN_USER_REFERENCE, $user);
Please login to merge, or discard this patch.
src/DataFixtures/OperationFixtures.php 1 patch
Spacing   +3 added lines, -3 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->getOperationData() as [$slug, $name]) {
15
+        foreach ($this->getOperationData() as [ $slug, $name ]) {
16 16
             $operation = new Operation();
17 17
             $operation->setName($name);
18 18
             $operation->setSlug($slug);
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
     {
27 27
         return [
28 28
             // $operationData = [$slug, $name];
29
-            ['rent', 'Rent'],
30
-            ['sale', 'Sale'],
29
+            [ 'rent', 'Rent' ],
30
+            [ 'sale', 'Sale' ],
31 31
         ];
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/DataFixtures/CategoryFixtures.php 1 patch
Spacing   +5 added lines, -5 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->getCategoryData() as [$slug, $name]) {
15
+        foreach ($this->getCategoryData() as [ $slug, $name ]) {
16 16
             $category = new Category();
17 17
             $category->setName($name);
18 18
             $category->setSlug($slug);
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
     {
27 27
         return [
28 28
             // $categoryData = [$slug, $name];
29
-            ['apartment', 'Apartment'],
30
-            ['duplex', 'Duplex'],
31
-            ['penthouse', 'Penthouse'],
32
-            ['villa', 'Villa'],
29
+            [ 'apartment', 'Apartment' ],
30
+            [ 'duplex', 'Duplex' ],
31
+            [ 'penthouse', 'Penthouse' ],
32
+            [ 'villa', 'Villa' ],
33 33
         ];
34 34
     }
35 35
 }
Please login to merge, or discard this patch.