Completed
Push — master ( 852698...9531ed )
by Valery
04:57
created
src/Entity/Locality.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     public function addProperty(Property $property): self
81 81
     {
82 82
         if (!$this->properties->contains($property)) {
83
-            $this->properties[] = $property;
83
+            $this->properties[ ] = $property;
84 84
             $property->setLocality($this);
85 85
         }
86 86
 
Please login to merge, or discard this patch.
src/Entity/Property.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -391,7 +391,7 @@
 block discarded – undo
391 391
     public function addPhoto(Photo $photo): self
392 392
     {
393 393
         if (!$this->photos->contains($photo)) {
394
-            $this->photos[] = $photo;
394
+            $this->photos[ ] = $photo;
395 395
             $photo->setProperty($this);
396 396
         }
397 397
 
Please login to merge, or discard this patch.
src/Entity/Category.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     public function addProperty(Property $property): self
81 81
     {
82 82
         if (!$this->properties->contains($property)) {
83
-            $this->properties[] = $property;
83
+            $this->properties[ ] = $property;
84 84
             $property->setCategory($this);
85 85
         }
86 86
 
Please login to merge, or discard this patch.
src/Entity/User.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @ORM\Column(type="json")
66 66
      */
67
-    private $roles = [];
67
+    private $roles = [ ];
68 68
 
69 69
     /**
70 70
      * @ORM\OneToMany(targetEntity="App\Entity\Property", mappedBy="author")
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $roles = $this->roles;
140 140
         // guarantees that a user always has at least one role for security
141 141
         if (empty($roles)) {
142
-            $roles[] = 'ROLE_USER';
142
+            $roles[ ] = 'ROLE_USER';
143 143
         }
144 144
 
145 145
         return array_unique($roles);
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     public function serialize(): string
181 181
     {
182 182
         // add $this->salt too if you don't use Bcrypt or Argon2i
183
-        return serialize([$this->id, $this->username, $this->password]);
183
+        return serialize([ $this->id, $this->username, $this->password ]);
184 184
     }
185 185
 
186 186
     /**
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     public function unserialize($serialized): void
190 190
     {
191 191
         // add $this->salt too if you don't use Bcrypt or Argon2i
192
-        [$this->id, $this->username, $this->password] = unserialize($serialized, ['allowed_classes' => false]);
192
+        [ $this->id, $this->username, $this->password ] = unserialize($serialized, [ 'allowed_classes' => false ]);
193 193
     }
194 194
 
195 195
     /**
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     public function addProperty(Property $property): self
204 204
     {
205 205
         if (!$this->properties->contains($property)) {
206
-            $this->properties[] = $property;
206
+            $this->properties[ ] = $property;
207 207
             $property->setAuthor($this);
208 208
         }
209 209
 
Please login to merge, or discard this patch.
src/Repository/UserRepository.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
         $cache = new FilesystemAdapter();
33 33
 
34
-        $count = $cache->get('users_count', function (ItemInterface $item) {
34
+        $count = $cache->get('users_count', function(ItemInterface $item) {
35 35
             $item->expiresAfter(3600);
36 36
 
37 37
             return $this->countAll();
Please login to merge, or discard this patch.
src/Repository/CategoryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         $cache = new FilesystemAdapter();
39 39
 
40
-        $count = $cache->get('categories_count', function (ItemInterface $item) {
40
+        $count = $cache->get('categories_count', function(ItemInterface $item) {
41 41
             $item->expiresAfter(3600);
42 42
 
43 43
             return $this->countAll();
Please login to merge, or discard this patch.
src/Repository/LocalityRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         $cache = new FilesystemAdapter();
39 39
 
40
-        $count = $cache->get('localities_count', function (ItemInterface $item) {
40
+        $count = $cache->get('localities_count', function(ItemInterface $item) {
41 41
             $item->expiresAfter(3600);
42 42
 
43 43
             return $this->countAll();
Please login to merge, or discard this patch.
src/Repository/OperationRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         $cache = new FilesystemAdapter();
39 39
 
40
-        $count = $cache->get('operations_count', function (ItemInterface $item) {
40
+        $count = $cache->get('operations_count', function(ItemInterface $item) {
41 41
             $item->expiresAfter(3600);
42 42
 
43 43
             return $this->countAll();
Please login to merge, or discard this patch.
src/Repository/MenuRepository.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
 
24 24
     public function findItems()
25 25
     {
26
-        return $this->findBy([], ['sort_order' => 'ASC']);
26
+        return $this->findBy([ ], [ 'sort_order' => 'ASC' ]);
27 27
     }
28 28
 
29 29
     public function reorderItems(array $items): void
Please login to merge, or discard this patch.