We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @return string |
81 | 81 | */ |
82 | - private function getToken(Request $request): ?string |
|
82 | + private function getToken(Request $request): ? string |
|
83 | 83 | { |
84 | 84 | return $request->headers->get('X-API-TOKEN', $request->query->get('token')); |
85 | 85 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @return \DateTime |
32 | 32 | */ |
33 | - public function getDeletedAt(): ?\DateTime |
|
33 | + public function getDeletedAt(): ? \DateTime |
|
34 | 34 | { |
35 | 35 | return $this->deletedAt; |
36 | 36 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @throws UsernameNotFoundException |
32 | 32 | */ |
33 | - public function getUsernameForToken(string $token): ?string |
|
33 | + public function getUsernameForToken(string $token): ? string |
|
34 | 34 | { |
35 | 35 | $q = $this |
36 | 36 | ->createQueryBuilder('t') |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | |
216 | 216 | $migration = $this->getContainer()->get('csbill.installer.database.migration'); |
217 | 217 | |
218 | - $callback = function ($message) use ($output): void { |
|
218 | + $callback = function($message) use ($output): void { |
|
219 | 219 | if ($output->getVerbosity() >= OutputInterface::VERBOSITY_DEBUG) { |
220 | 220 | $output->writeln($message); |
221 | 221 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @return string |
42 | 42 | */ |
43 | - public function getUsernameForToken(string $token): ?string |
|
43 | + public function getUsernameForToken(string $token): ? string |
|
44 | 44 | { |
45 | 45 | return $this->registry->getRepository('CSBillUserBundle:ApiToken')->getUsernameForToken($token); |
46 | 46 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * |
107 | 107 | * @return int |
108 | 108 | */ |
109 | - public function getId(): ?int |
|
109 | + public function getId(): ? int |
|
110 | 110 | { |
111 | 111 | return $this->id; |
112 | 112 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * |
117 | 117 | * @return string |
118 | 118 | */ |
119 | - public function getFirstName(): ?string |
|
119 | + public function getFirstName(): ? string |
|
120 | 120 | { |
121 | 121 | return $this->firstName; |
122 | 122 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * |
141 | 141 | * @return string |
142 | 142 | */ |
143 | - public function getLastName(): ?string |
|
143 | + public function getLastName(): ? string |
|
144 | 144 | { |
145 | 145 | return $this->lastName; |
146 | 146 | } |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * |
153 | 153 | * @return Contact |
154 | 154 | */ |
155 | - public function setLastName(?string $lastName): self |
|
155 | + public function setLastName(? string $lastName) : self |
|
156 | 156 | { |
157 | 157 | $this->lastName = $lastName; |
158 | 158 | |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * |
165 | 165 | * @return Client |
166 | 166 | */ |
167 | - public function getClient(): ?Client |
|
167 | + public function getClient(): ? Client |
|
168 | 168 | { |
169 | 169 | return $this->client; |
170 | 170 | } |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | * |
228 | 228 | * @return null|AdditionalContactDetail |
229 | 229 | */ |
230 | - public function getAdditionalContactDetail(string $type): ?AdditionalContactDetail |
|
230 | + public function getAdditionalContactDetail(string $type): ? AdditionalContactDetail |
|
231 | 231 | { |
232 | 232 | $type = strtolower($type); |
233 | 233 | if (count($this->additionalContactDetails)) { |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | /** |
269 | 269 | * @return string |
270 | 270 | */ |
271 | - public function getEmail(): ?string |
|
271 | + public function getEmail(): ? string |
|
272 | 272 | { |
273 | 273 | return $this->email; |
274 | 274 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | return array_pop($collection)->getEntity(); |
114 | 114 | } |
115 | 115 | |
116 | - private function prepareRequest(string &$url, PyStringNode &$body = null): void |
|
116 | + private function prepareRequest(string & $url, PyStringNode & $body = null): void |
|
117 | 117 | { |
118 | 118 | $this->restContext->iAddHeaderEqualTo("Content-Type", "application/ld+json"); |
119 | 119 | $this->restContext->iAddHeaderEqualTo("Accept", "application/ld+json"); |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | } |
127 | 127 | |
128 | - private function &replaceEntity(string &$string) |
|
128 | + private function &replaceEntity(string & $string) |
|
129 | 129 | { |
130 | 130 | if (preg_match_all('/{([a-zA-Z\.]+)}/', $string, $matches)) { |
131 | 131 | $collections = []; |
@@ -185,7 +185,8 @@ |
||
185 | 185 | |
186 | 186 | $result = (array) (new Json($string->getRaw()))->getContent(); |
187 | 187 | |
188 | - $validator = new class() { |
|
188 | + $validator = new class() |
|
189 | + { |
|
189 | 190 | private $propertyAccess; |
190 | 191 | |
191 | 192 | public function __construct() |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @return \DateTime |
49 | 49 | */ |
50 | - public function getCreated(): ?\DateTime |
|
50 | + public function getCreated(): ? \DateTime |
|
51 | 51 | { |
52 | 52 | return $this->created; |
53 | 53 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @return \DateTime |
73 | 73 | */ |
74 | - public function getUpdated(): ?\DateTime |
|
74 | + public function getUpdated(): ? \DateTime |
|
75 | 75 | { |
76 | 76 | return $this->updated; |
77 | 77 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * |
182 | 182 | * @return int |
183 | 183 | */ |
184 | - public function getId(): ?int |
|
184 | + public function getId(): ? int |
|
185 | 185 | { |
186 | 186 | return $this->id; |
187 | 187 | } |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * |
192 | 192 | * @return string |
193 | 193 | */ |
194 | - public function getName(): ?string |
|
194 | + public function getName(): ? string |
|
195 | 195 | { |
196 | 196 | return $this->name; |
197 | 197 | } |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | * |
216 | 216 | * @return string |
217 | 217 | */ |
218 | - public function getStatus(): ?string |
|
218 | + public function getStatus(): ? string |
|
219 | 219 | { |
220 | 220 | return $this->status; |
221 | 221 | } |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | * |
240 | 240 | * @return string |
241 | 241 | */ |
242 | - public function getWebsite(): ?string |
|
242 | + public function getWebsite(): ? string |
|
243 | 243 | { |
244 | 244 | return $this->website; |
245 | 245 | } |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | * |
422 | 422 | * @return Client |
423 | 423 | */ |
424 | - public function addAddress(?Address $address): self |
|
424 | + public function addAddress(? Address $address) : self |
|
425 | 425 | { |
426 | 426 | if (null !== $address) { |
427 | 427 | $this->addresses[] = $address; |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | /** |
459 | 459 | * @return Credit |
460 | 460 | */ |
461 | - public function getCredit(): ?Credit |
|
461 | + public function getCredit(): ? Credit |
|
462 | 462 | { |
463 | 463 | return $this->credit; |
464 | 464 | } |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | /** |
502 | 502 | * @return Currency|null |
503 | 503 | */ |
504 | - public function getCurrency(): ?Currency |
|
504 | + public function getCurrency(): ? Currency |
|
505 | 505 | { |
506 | 506 | return $this->currency ? new Currency($this->currency) : null; |
507 | 507 | } |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | * |
512 | 512 | * @return Client |
513 | 513 | */ |
514 | - public function setCurrency(?string $currency): self |
|
514 | + public function setCurrency(? string $currency) : self |
|
515 | 515 | { |
516 | 516 | $this->currency = $currency; |
517 | 517 | |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | /** |
522 | 522 | * @return string |
523 | 523 | */ |
524 | - public function getVatNumber(): ?string |
|
524 | + public function getVatNumber(): ? string |
|
525 | 525 | { |
526 | 526 | return $this->vatNumber; |
527 | 527 | } |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | * |
532 | 532 | * @return $this |
533 | 533 | */ |
534 | - public function setVatNumber(?string $vatNumber): self |
|
534 | + public function setVatNumber(? string $vatNumber) : self |
|
535 | 535 | { |
536 | 536 | $this->vatNumber = $vatNumber; |
537 | 537 |