@@ -16,7 +16,7 @@ |
||
| 16 | 16 | public static function create() : array |
| 17 | 17 | { |
| 18 | 18 | /** @var Closure */ |
| 19 | - $stringClosure = function (string $data) : string { |
|
| 19 | + $stringClosure = function(string $data) : string { |
|
| 20 | 20 | return $data; |
| 21 | 21 | }; |
| 22 | 22 | |
@@ -16,17 +16,17 @@ |
||
| 16 | 16 | public static function create() : array |
| 17 | 17 | { |
| 18 | 18 | /** @var Closure */ |
| 19 | - $intClosure = function (string $data) : int { |
|
| 19 | + $intClosure = function(string $data) : int { |
|
| 20 | 20 | return (int) $data; |
| 21 | 21 | }; |
| 22 | 22 | |
| 23 | 23 | /** @var Closure */ |
| 24 | - $stringClosure = function (string $data) : string { |
|
| 24 | + $stringClosure = function(string $data) : string { |
|
| 25 | 25 | return $data; |
| 26 | 26 | }; |
| 27 | 27 | |
| 28 | 28 | /** @var Closure */ |
| 29 | - $boolClosure = function (?bool $data) : bool { |
|
| 29 | + $boolClosure = function(? bool $data) : bool { |
|
| 30 | 30 | return $data; |
| 31 | 31 | }; |
| 32 | 32 | |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | * |
| 84 | 84 | * @throws RuntimeException |
| 85 | 85 | */ |
| 86 | - private function getResponseContent(Response $response) : ?array |
|
| 86 | + private function getResponseContent(Response $response) : ? array |
|
| 87 | 87 | { |
| 88 | 88 | $content = $response->getBody()->getContents(); |
| 89 | 89 | |
@@ -136,22 +136,22 @@ discard block |
||
| 136 | 136 | return $this->key; |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - public function assigneeName() : ?string |
|
| 139 | + public function assigneeName() : ? string |
|
| 140 | 140 | { |
| 141 | 141 | return $this->assigneeName; |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - public function assigneeDisplayName() : ?string |
|
| 144 | + public function assigneeDisplayName() : ? string |
|
| 145 | 145 | { |
| 146 | 146 | return $this->assigneeDisplayName; |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | - public function assigneeEmail() : ?string |
|
| 149 | + public function assigneeEmail() : ? string |
|
| 150 | 150 | { |
| 151 | 151 | return $this->assigneeEmail; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - public function isAssigneeActive() : ?bool |
|
| 154 | + public function isAssigneeActive() : ? bool |
|
| 155 | 155 | { |
| 156 | 156 | return $this->isAssigneeActive; |
| 157 | 157 | } |
@@ -161,17 +161,17 @@ discard block |
||
| 161 | 161 | return $this->ticketStatus; |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | - public function ticketStatusCategory() : ?string |
|
| 164 | + public function ticketStatusCategory() : ? string |
|
| 165 | 165 | { |
| 166 | 166 | return $this->ticketStatusCategory; |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | - public function components() : ?string |
|
| 169 | + public function components() : ? string |
|
| 170 | 170 | { |
| 171 | 171 | return $this->components; |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | - public function type() : ?string |
|
| 174 | + public function type() : ? string |
|
| 175 | 175 | { |
| 176 | 176 | return $this->type; |
| 177 | 177 | } |
@@ -181,17 +181,17 @@ discard block |
||
| 181 | 181 | return $this->project; |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | - public function fixVersion() : ?string |
|
| 184 | + public function fixVersion() : ? string |
|
| 185 | 185 | { |
| 186 | 186 | return $this->fixVersion; |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | - public function summary() : ?string |
|
| 189 | + public function summary() : ? string |
|
| 190 | 190 | { |
| 191 | 191 | return $this->summary; |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | - public function branch() : ?string |
|
| 194 | + public function branch() : ? string |
|
| 195 | 195 | { |
| 196 | 196 | return $this->branch; |
| 197 | 197 | } |
@@ -201,17 +201,17 @@ discard block |
||
| 201 | 201 | return $this->lastUpdate; |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | - public function url() : ?string |
|
| 204 | + public function url() : ? string |
|
| 205 | 205 | { |
| 206 | 206 | return $this->url; |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | - public function pullRquestStatus() : ?string |
|
| 209 | + public function pullRquestStatus() : ? string |
|
| 210 | 210 | { |
| 211 | 211 | return $this->pullRequestStatus; |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | - public function repository() : ?string |
|
| 214 | + public function repository() : ? string |
|
| 215 | 215 | { |
| 216 | 216 | return $this->repository; |
| 217 | 217 | } |
@@ -221,12 +221,12 @@ discard block |
||
| 221 | 221 | return $this->hasDirectory; |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | - public function directory() : ?string |
|
| 224 | + public function directory() : ? string |
|
| 225 | 225 | { |
| 226 | 226 | return $this->directory; |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | - public function pullRequestName() : ?string |
|
| 229 | + public function pullRequestName() : ? string |
|
| 230 | 230 | { |
| 231 | 231 | return $this->pullRequestName; |
| 232 | 232 | } |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | return $this->hasBranch; |
| 242 | 242 | } |
| 243 | 243 | |
| 244 | - public function setRepository(?string $repository) : void |
|
| 244 | + public function setRepository(? string $repository) : void |
|
| 245 | 245 | { |
| 246 | 246 | $this->repository = $repository; |
| 247 | 247 | } |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | } |
| 255 | 255 | } |
| 256 | 256 | |
| 257 | - public function setHasBranch(?string $branch) : void |
|
| 257 | + public function setHasBranch(? string $branch) : void |
|
| 258 | 258 | { |
| 259 | 259 | $this->hasBranch = true; |
| 260 | 260 | if (null === $branch) { |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | /** |
| 266 | 266 | * @throws NullArgumentException |
| 267 | 267 | */ |
| 268 | - private function setId(?int $id) : void |
|
| 268 | + private function setId(? int $id) : void |
|
| 269 | 269 | { |
| 270 | 270 | if (null === $id) { |
| 271 | 271 | throw new NullArgumentException('Ticket ID property cannot be null'); |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | /** |
| 277 | 277 | * @throws NullArgumentException |
| 278 | 278 | */ |
| 279 | - private function setKey(?string $key) : void |
|
| 279 | + private function setKey(? string $key) : void |
|
| 280 | 280 | { |
| 281 | 281 | if (null === $key) { |
| 282 | 282 | throw new NullArgumentException('Ticket key cannot be null'); |
@@ -284,22 +284,22 @@ discard block |
||
| 284 | 284 | $this->key = $key; |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | - private function setAssigneeName(?string $assigneeName) : void |
|
| 287 | + private function setAssigneeName(? string $assigneeName) : void |
|
| 288 | 288 | { |
| 289 | 289 | $this->assigneeName = $assigneeName; |
| 290 | 290 | } |
| 291 | 291 | |
| 292 | - private function setAssigneeDisplayName(?string $assigneeDisplayName) : void |
|
| 292 | + private function setAssigneeDisplayName(? string $assigneeDisplayName) : void |
|
| 293 | 293 | { |
| 294 | 294 | $this->assigneeDisplayName = $assigneeDisplayName; |
| 295 | 295 | } |
| 296 | 296 | |
| 297 | - private function setAssigneeEmail(?string $assigneeEmail) : void |
|
| 297 | + private function setAssigneeEmail(? string $assigneeEmail) : void |
|
| 298 | 298 | { |
| 299 | 299 | $this->assigneeEmail = $assigneeEmail; |
| 300 | 300 | } |
| 301 | 301 | |
| 302 | - private function setIsAssigneeActive(?bool $isAssigneeActive) : void |
|
| 302 | + private function setIsAssigneeActive(? bool $isAssigneeActive) : void |
|
| 303 | 303 | { |
| 304 | 304 | $this->isAssigneeActive = $isAssigneeActive; |
| 305 | 305 | } |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | /** |
| 308 | 308 | * @throws NullArgumentException |
| 309 | 309 | */ |
| 310 | - private function setTicketStatus(?string $ticketStatus) : void |
|
| 310 | + private function setTicketStatus(? string $ticketStatus) : void |
|
| 311 | 311 | { |
| 312 | 312 | if (null === $ticketStatus) { |
| 313 | 313 | throw new NullArgumentException('Ticket status cannot be null'); |
@@ -315,17 +315,17 @@ discard block |
||
| 315 | 315 | $this->ticketStatus = JiraTicketStatus::createFromString($ticketStatus)->status(); |
| 316 | 316 | } |
| 317 | 317 | |
| 318 | - private function setTicketStatusCategory(?string $ticketStatusCategory) : void |
|
| 318 | + private function setTicketStatusCategory(? string $ticketStatusCategory) : void |
|
| 319 | 319 | { |
| 320 | 320 | $this->ticketStatusCategory = $ticketStatusCategory; |
| 321 | 321 | } |
| 322 | 322 | |
| 323 | - private function setComponents(?string $components) : void |
|
| 323 | + private function setComponents(? string $components) : void |
|
| 324 | 324 | { |
| 325 | 325 | $this->components = $components; |
| 326 | 326 | } |
| 327 | 327 | |
| 328 | - private function setType(?string $type) : void |
|
| 328 | + private function setType(? string $type) : void |
|
| 329 | 329 | { |
| 330 | 330 | $this->type = $type; |
| 331 | 331 | } |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | /** |
| 334 | 334 | * @throws NullArgumentException |
| 335 | 335 | */ |
| 336 | - private function setProject(?string $project) : void |
|
| 336 | + private function setProject(? string $project) : void |
|
| 337 | 337 | { |
| 338 | 338 | if (null === $project) { |
| 339 | 339 | throw new NullArgumentException('Ticket project cannot be null'); |
@@ -341,37 +341,37 @@ discard block |
||
| 341 | 341 | $this->project = $project; |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | - private function setFixVersion(?string $fixVersion) : void |
|
| 344 | + private function setFixVersion(? string $fixVersion) : void |
|
| 345 | 345 | { |
| 346 | 346 | $this->fixVersion = $fixVersion; |
| 347 | 347 | } |
| 348 | 348 | |
| 349 | - private function setSummary(?string $summary) : void |
|
| 349 | + private function setSummary(? string $summary) : void |
|
| 350 | 350 | { |
| 351 | 351 | $this->summary = $summary; |
| 352 | 352 | } |
| 353 | 353 | |
| 354 | - private function setBranch(?string $branch) : void |
|
| 354 | + private function setBranch(? string $branch) : void |
|
| 355 | 355 | { |
| 356 | 356 | $this->branch = $branch; |
| 357 | 357 | } |
| 358 | 358 | |
| 359 | - private function setLastUpdate(?string $lastUpdate) : void |
|
| 359 | + private function setLastUpdate(? string $lastUpdate) : void |
|
| 360 | 360 | { |
| 361 | 361 | $this->lastUpdate = $lastUpdate; |
| 362 | 362 | } |
| 363 | 363 | |
| 364 | - private function setUrl(?string $url) : void |
|
| 364 | + private function setUrl(? string $url) : void |
|
| 365 | 365 | { |
| 366 | 366 | $this->url = $url; |
| 367 | 367 | } |
| 368 | 368 | |
| 369 | - private function setPullRequestStatus(?string $pullRequestStatus) : void |
|
| 369 | + private function setPullRequestStatus(? string $pullRequestStatus) : void |
|
| 370 | 370 | { |
| 371 | 371 | $this->pullRequestStatus = $pullRequestStatus; |
| 372 | 372 | } |
| 373 | 373 | |
| 374 | - private function setHasDirectory(?bool $hasDirectory) : void |
|
| 374 | + private function setHasDirectory(? bool $hasDirectory) : void |
|
| 375 | 375 | { |
| 376 | 376 | if (null === $hasDirectory) { |
| 377 | 377 | throw new NullArgumentException('Ticket "hasDirectory" cannot be null'); |
@@ -379,12 +379,12 @@ discard block |
||
| 379 | 379 | $this->hasDirectory = $hasDirectory; |
| 380 | 380 | } |
| 381 | 381 | |
| 382 | - private function setDirectory(?string $directory) : void |
|
| 382 | + private function setDirectory(? string $directory) : void |
|
| 383 | 383 | { |
| 384 | 384 | $this->directory = $directory; |
| 385 | 385 | } |
| 386 | 386 | |
| 387 | - private function setPullRequestName(?string $pullRequestName) : void |
|
| 387 | + private function setPullRequestName(? string $pullRequestName) : void |
|
| 388 | 388 | { |
| 389 | 389 | $this->pullRequestName = $pullRequestName; |
| 390 | 390 | } |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | * |
| 84 | 84 | * @throws RuntimeException |
| 85 | 85 | */ |
| 86 | - private function getResponseContent(Response $response) : ?array |
|
| 86 | + private function getResponseContent(Response $response) : ? array |
|
| 87 | 87 | { |
| 88 | 88 | $content = $response->getBody()->getContents(); |
| 89 | 89 | |