Completed
Branch master (6c8f85)
by Neomerx
10:50
created
src/Contracts/Entities/RedirectUriInterface.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * @return int|null
29 29
      */
30
-    public function getIdentifier(): ?int;
30
+    public function getIdentifier(): ? int;
31 31
 
32 32
     /**
33 33
      * @param int $identifier
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * @return string|null
41 41
      */
42
-    public function getClientIdentifier(): ?string;
42
+    public function getClientIdentifier(): ? string;
43 43
 
44 44
     /**
45 45
      * @param string $identifier
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * @return string|null
58 58
      */
59
-    public function getValue(): ?string;
59
+    public function getValue(): ? string;
60 60
 
61 61
     /**
62 62
      * @param string $uri
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @return DateTimeInterface|null
70 70
      */
71
-    public function getCreatedAt(): ?DateTimeInterface;
71
+    public function getCreatedAt(): ? DateTimeInterface;
72 72
 
73 73
     /**
74 74
      * @param DateTimeInterface $createdAt
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * @return DateTimeInterface|null
82 82
      */
83
-    public function getUpdatedAt(): ?DateTimeInterface;
83
+    public function getUpdatedAt(): ? DateTimeInterface;
84 84
 
85 85
     /**
86 86
      * @param DateTimeInterface $createdAt
Please login to merge, or discard this patch.
src/Contracts/Entities/DatabaseSchemeInterface.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -316,17 +316,17 @@  discard block
 block discarded – undo
316 316
     /**
317 317
      * @return string|null
318 318
      */
319
-    public function getUsersView(): ?string;
319
+    public function getUsersView(): ? string;
320 320
 
321 321
     /**
322 322
      * @return string|null
323 323
      */
324
-    public function getUsersTable(): ?string;
324
+    public function getUsersTable(): ? string;
325 325
 
326 326
     /**
327 327
      * @return string|null
328 328
      */
329
-    public function getUsersIdentityColumn(): ?string;
329
+    public function getUsersIdentityColumn(): ? string;
330 330
 
331 331
     /**************************************************************************
332 332
      * Passport view.
@@ -335,5 +335,5 @@  discard block
 block discarded – undo
335 335
     /**
336 336
      * @return string|null
337 337
      */
338
-    public function getPassportView(): ?string;
338
+    public function getPassportView(): ? string;
339 339
 }
Please login to merge, or discard this patch.
src/Contracts/Entities/ScopeInterface.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * @return string|null
28 28
      */
29
-    public function getIdentifier(): ?string;
29
+    public function getIdentifier(): ? string;
30 30
 
31 31
     /**
32 32
      * @param string $identifier
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * @return string|null
40 40
      */
41
-    public function getDescription(): ?string;
41
+    public function getDescription(): ? string;
42 42
 
43 43
     /**
44 44
      * @param string|null $description
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * @return DateTimeInterface|null
52 52
      */
53
-    public function getCreatedAt(): ?DateTimeInterface;
53
+    public function getCreatedAt(): ? DateTimeInterface;
54 54
 
55 55
     /**
56 56
      * @param DateTimeInterface $createdAt
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * @return DateTimeInterface|null
64 64
      */
65
-    public function getUpdatedAt(): ?DateTimeInterface;
65
+    public function getUpdatedAt(): ? DateTimeInterface;
66 66
 
67 67
     /**
68 68
      * @param DateTimeInterface $createdAt
Please login to merge, or discard this patch.
src/Contracts/Repositories/ClientRepositoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      *
73 73
      * @return ClientInterface|null
74 74
      */
75
-    public function read(string $identifier): ?ClientInterface;
75
+    public function read(string $identifier): ? ClientInterface;
76 76
 
77 77
     /**
78 78
      * @param string $identifier
Please login to merge, or discard this patch.
src/Contracts/Repositories/TokenRepositoryInterface.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      *
83 83
      * @return TokenInterface|null
84 84
      */
85
-    public function read(int $identifier): ?TokenInterface;
85
+    public function read(int $identifier): ? TokenInterface;
86 86
 
87 87
     /**
88 88
      * @param string $code
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return TokenInterface|null
92 92
      */
93
-    public function readByCode(string $code, int $expirationInSeconds): ?TokenInterface;
93
+    public function readByCode(string $code, int $expirationInSeconds): ? TokenInterface;
94 94
 
95 95
     /**
96 96
      * @param string $tokenValue
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @return TokenInterface|null
100 100
      */
101
-    public function readByValue(string $tokenValue, int $expirationInSeconds): ?TokenInterface;
101
+    public function readByValue(string $tokenValue, int $expirationInSeconds): ? TokenInterface;
102 102
 
103 103
     /**
104 104
      * @param string $refreshValue
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      *
107 107
      * @return TokenInterface|null
108 108
      */
109
-    public function readByRefresh(string $refreshValue, int $expirationInSeconds): ?TokenInterface;
109
+    public function readByRefresh(string $refreshValue, int $expirationInSeconds): ? TokenInterface;
110 110
 
111 111
     /**
112 112
      * @param int      $userId
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      *
131 131
      * @return array|null
132 132
      */
133
-    public function readPassport(string $tokenValue, int $expirationInSeconds): ?array;
133
+    public function readPassport(string $tokenValue, int $expirationInSeconds): ? array;
134 134
 
135 135
     /**
136 136
      * @param TokenInterface $token
Please login to merge, or discard this patch.
src/Contracts/PassportServerIntegrationInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      *
69 69
      * @return array|null
70 70
      */
71
-    public function verifyAllowedUserScope(int $userIdentity, array $scope = null): ?array;
71
+    public function verifyAllowedUserScope(int $userIdentity, array $scope = null): ? array;
72 72
 
73 73
     /**
74 74
      * @param TokenInterface $token
Please login to merge, or discard this patch.
src/Contracts/Authentication/PassportAccountManagerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,5 +33,5 @@
 block discarded – undo
33 33
     /**
34 34
      * @return PassportAccountInterface|null
35 35
      */
36
-    public function getPassport(): ?PassportAccountInterface;
36
+    public function getPassport(): ? PassportAccountInterface;
37 37
 }
Please login to merge, or discard this patch.
src/Package/PassportContainerConfigurator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
     {
39 39
         static::baseConfigureContainer($container);
40 40
 
41
-        $container[PassportServerIntegrationInterface::class] = function (
41
+        $container[PassportServerIntegrationInterface::class] = function(
42 42
             PsrContainerInterface $container
43 43
         ): PassportServerIntegrationInterface {
44 44
             return new PassportServerIntegration($container);
45 45
         };
46 46
 
47
-        $container[TokenRepositoryInterface::class] = function (
47
+        $container[TokenRepositoryInterface::class] = function(
48 48
             PsrContainerInterface $container
49 49
         ): TokenRepositoryInterface {
50 50
             $connection = $container->get(Connection::class);
Please login to merge, or discard this patch.
src/Entities/Token.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -154,9 +154,9 @@  discard block
 block discarded – undo
154 154
     {
155 155
         if ($this->hasDynamicProperty(static::FIELD_ID) === true) {
156 156
             $this
157
-                ->setIdentifier((int)$this->{static::FIELD_ID})
157
+                ->setIdentifier((int) $this->{static::FIELD_ID})
158 158
                 ->setClientIdentifier($this->{static::FIELD_ID_CLIENT})
159
-                ->setUserIdentifier((int)$this->{static::FIELD_ID_USER})
159
+                ->setUserIdentifier((int) $this->{static::FIELD_ID_USER})
160 160
                 ->setRedirectUriString($this->{static::FIELD_REDIRECT_URI})
161 161
                 ->setCode($this->{static::FIELD_CODE})
162 162
                 ->setType($this->{static::FIELD_TYPE})
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     /**
172 172
      * @inheritdoc
173 173
      */
174
-    public function getIdentifier(): ?int
174
+    public function getIdentifier(): ? int
175 175
     {
176 176
         return $this->identifierField;
177 177
     }
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * @inheritdoc
261 261
      */
262
-    public function getRedirectUriString(): ?string
262
+    public function getRedirectUriString(): ? string
263 263
     {
264 264
         return $this->redirectUriString;
265 265
     }
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     /**
268 268
      * @inheritdoc
269 269
      */
270
-    public function setRedirectUriString(?string $uri): TokenInterface
270
+    public function setRedirectUriString(? string $uri) : TokenInterface
271 271
     {
272 272
         $this->redirectUriString = $uri;
273 273
 
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
     /**
342 342
      * @inheritdoc
343 343
      */
344
-    public function setCode(?string $code): TokenInterface
344
+    public function setCode(? string $code) : TokenInterface
345 345
     {
346 346
         $this->codeField = $code;
347 347
 
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
     /**
352 352
      * @inheritdoc
353 353
      */
354
-    public function getValue(): ?string
354
+    public function getValue(): ? string
355 355
     {
356 356
         return $this->valueField;
357 357
     }
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
     /**
360 360
      * @inheritdoc
361 361
      */
362
-    public function setValue(?string $value): TokenInterface
362
+    public function setValue(? string $value) : TokenInterface
363 363
     {
364 364
         $this->valueField = $value;
365 365
 
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
     /**
370 370
      * @inheritdoc
371 371
      */
372
-    public function getType(): ?string
372
+    public function getType(): ? string
373 373
     {
374 374
         return $this->typeField;
375 375
     }
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
     /**
378 378
      * @inheritdoc
379 379
      */
380
-    public function setType(?string $type): TokenInterface
380
+    public function setType(? string $type) : TokenInterface
381 381
     {
382 382
         $this->typeField = $type;
383 383
 
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
     /**
388 388
      * @inheritdoc
389 389
      */
390
-    public function getRefreshValue(): ?string
390
+    public function getRefreshValue(): ? string
391 391
     {
392 392
         return $this->refreshValueField;
393 393
     }
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
     /**
396 396
      * @inheritdoc
397 397
      */
398
-    public function setRefreshValue(?string $refreshValue): TokenInterface
398
+    public function setRefreshValue(? string $refreshValue) : TokenInterface
399 399
     {
400 400
         $this->refreshValueField = $refreshValue;
401 401
 
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
     /**
406 406
      * @inheritdoc
407 407
      */
408
-    public function getCodeCreatedAt(): ?DateTimeInterface
408
+    public function getCodeCreatedAt(): ? DateTimeInterface
409 409
     {
410 410
         if ($this->codeCreatedAtField === null && ($codeCreatedAt = $this->{static::FIELD_CODE_CREATED_AT}) !== null) {
411 411
             $this->codeCreatedAtField = $this->parseDateTime($codeCreatedAt);
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
     /**
428 428
      * @inheritdoc
429 429
      */
430
-    public function getValueCreatedAt(): ?DateTimeInterface
430
+    public function getValueCreatedAt(): ? DateTimeInterface
431 431
     {
432 432
         if ($this->valueCreatedAtField === null &&
433 433
             ($tokenCreatedAt = $this->{static::FIELD_VALUE_CREATED_AT}) !== null
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
     /**
452 452
      * @inheritdoc
453 453
      */
454
-    public function getRefreshCreatedAt(): ?DateTimeInterface
454
+    public function getRefreshCreatedAt(): ? DateTimeInterface
455 455
     {
456 456
         if ($this->refreshCreatedAtField === null &&
457 457
             ($tokenCreatedAt = $this->{static::FIELD_VALUE_CREATED_AT}) !== null
Please login to merge, or discard this patch.