@@ -80,7 +80,7 @@ |
||
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 |
@@ -391,7 +391,7 @@ |
||
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 |
@@ -80,7 +80,7 @@ |
||
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 |
@@ -64,7 +64,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -31,7 +31,7 @@ |
||
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(); |
@@ -37,7 +37,7 @@ |
||
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(); |
@@ -37,7 +37,7 @@ |
||
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(); |
@@ -37,7 +37,7 @@ |
||
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(); |
@@ -23,7 +23,7 @@ |
||
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 |