Failed Conditions
Push — master ( 516359...a8b39a )
by Florent
04:00
created
src/Component/Server/Model/Event/Event.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @param \DateTimeImmutable|null $recordedOn
36 36
      * @param EventId|null            $eventId
37 37
      */
38
-    protected function __construct(?\DateTimeImmutable $recordedOn, ?EventId $eventId)
38
+    protected function __construct(? \DateTimeImmutable $recordedOn, ? EventId $eventId)
39 39
     {
40 40
         if (null === $recordedOn || null === $eventId) {
41 41
             $this->recordedOn = new \DateTimeImmutable();
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return Client
92 92
      */
93
-    public function create(ClientId $clientId, DataBag $parameters, ?UserAccountId $ownerId): Client
93
+    public function create(ClientId $clientId, DataBag $parameters, ? UserAccountId $ownerId) : Client
94 94
     {
95 95
         $clone = clone $this;
96 96
         $clone->clientId = $clientId;
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * @return UserAccountId|null
108 108
      */
109
-    public function getOwnerId(): ?UserAccountId
109
+    public function getOwnerId(): ? UserAccountId
110 110
     {
111 111
         return $this->ownerId;
112 112
     }
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/ClientRepositoryInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -29,5 +29,5 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @return null|Client return the client object or null if no client is found
31 31
      */
32
-    public function find(ClientId $clientId): ?Client;
32
+    public function find(ClientId $clientId): ? Client;
33 33
 }
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/AbstractInternationalizedRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @return array
26 26
      */
27
-    protected function getInternationalizedParameters(DataBag $requestedParameters, string $base, ?\Closure $closure): array
27
+    protected function getInternationalizedParameters(DataBag $requestedParameters, string $base, ? \Closure $closure) : array
28 28
     {
29 29
         $result = [];
30 30
         foreach ($requestedParameters->all() as $k => $v) {
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/SoftwareRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     /**
67 67
      * {@inheritdoc}
68 68
      */
69
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag
69
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
70 70
     {
71 71
         Assertion::false($this->isSoftwareStatementRequired() && !$commandParameters->has('software_statement'), 'The parameter \'software_statement\' is mandatory.');
72 72
         if ($commandParameters->has('software_statement')) {
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/RuleInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -26,5 +26,5 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @return DataBag
28 28
      */
29
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag;
29
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag;
30 30
 }
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/RedirectionUriRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * {@inheritdoc}
24 24
      */
25
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag
25
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
26 26
     {
27 27
         if ($commandParameters->has('redirect_uris')) {
28 28
             Assertion::isArray($commandParameters->get('redirect_uris'), 'The parameter \'redirect_uris\' must be a list of URI.');
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/SubjectTypeRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * {@inheritdoc}
40 40
      */
41
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag
41
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
42 42
     {
43 43
         if ($commandParameters->has('subject_type')) {
44 44
             Assertion::string($commandParameters->get('subject_type'), 'Invalid parameter \'subject_type\'. The value must be a string.');
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/GrantTypeFlowRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * {@inheritdoc}
48 48
      */
49
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag
49
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
50 50
     {
51 51
         if (!$commandParameters->has('grant_types')) {
52 52
             $commandParameters = $commandParameters->with('grant_types', []);
Please login to merge, or discard this patch.