@@ -32,14 +32,14 @@ |
||
32 | 32 | */ |
33 | 33 | private static function transliteration($str) |
34 | 34 | { |
35 | - $a = ['зг', 'Зг', 'А', 'а', 'Б', 'б', 'В', 'в', 'Г', 'г', 'Ґ', 'ґ', 'Д', 'д', 'Е', |
|
35 | + $a = [ 'зг', 'Зг', 'А', 'а', 'Б', 'б', 'В', 'в', 'Г', 'г', 'Ґ', 'ґ', 'Д', 'д', 'Е', |
|
36 | 36 | 'е', 'Ё', 'ё', 'Є', 'є', 'Ж', 'ж', 'З', 'з', 'И', 'и', 'І', 'і', 'Ї', 'ї', 'Й', 'й', 'К', 'к', |
37 | 37 | 'Л', 'л', 'М', 'м', 'Н', 'н', 'О', 'о', 'П', 'п', 'Р', 'р', 'С', 'с', 'Т', 'т', 'У', 'у', 'Ф', |
38 | 38 | 'ф', 'Х', 'х', 'Ц', 'ц', 'Ч', 'ч', 'Ш', 'ш', 'Щ', 'щ', 'Ы', 'ы', 'Э', 'э', 'Ю', 'ю', 'Я', 'я', |
39 | 39 | 'Ь', 'ь', 'Ъ', 'ъ', |
40 | 40 | ]; |
41 | 41 | |
42 | - $b = ['zgh', 'Zgh', 'A', 'a', 'B', 'b', 'V', 'v', 'G', 'g', 'G', 'g', 'D', 'd', 'E', |
|
42 | + $b = [ 'zgh', 'Zgh', 'A', 'a', 'B', 'b', 'V', 'v', 'G', 'g', 'G', 'g', 'D', 'd', 'E', |
|
43 | 43 | 'e', 'E', 'e', 'Ye', 'ie', 'Zh', 'zh', 'Z', 'z', 'I', 'i', 'I', 'i', 'Yi', 'i', 'Y', 'y', 'K', 'k', |
44 | 44 | 'L', 'l', 'M', 'm', 'N', 'n', 'O', 'o', 'P', 'p', 'R', 'r', 'S', 's', 'T', 't', 'U', 'u', 'F', 'f', 'Kh', 'kh', |
45 | 45 | 'Ts', 'ts', 'Ch', 'ch', 'Sh', 'sh', 'Shch', 'shch', 'Y', 'y', 'E', 'e', 'Yu', 'iu', 'Ya', 'ya', |
@@ -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->setOperation($this); |
85 | 85 | } |
86 | 86 |
@@ -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(); |