Failed Conditions
Pull Request — master (#22)
by Florent
08:54
created
src/Bundle/Server/DependencyInjection/Source/Scope/ScopePolicyDefault.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.
src/Bundle/Server/DependencyInjection/Source/Scope/ScopePolicySource.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)
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         parent::continueConfiguration($node);
80 80
         $node
81 81
             ->validate()
82
-                ->ifTrue(function ($config) {
82
+                ->ifTrue(function($config) {
83 83
                     return true === $config['enabled'] && empty($config['by_default']);
84 84
                 })
85 85
                 ->thenInvalid('The option "repository" must be set.')
Please login to merge, or discard this patch.
src/Bundle/Server/DependencyInjection/Source/Scope/ScopeSource.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)
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         parent::continueConfiguration($node);
45 45
         $node
46 46
             ->validate()
47
-                ->ifTrue(function ($config) {
47
+                ->ifTrue(function($config) {
48 48
                     return true === $config['enabled'] && empty($config['repository']);
49 49
                 })
50 50
                 ->thenInvalid('The option "repository" must be set.')
Please login to merge, or discard this patch.
src/Bundle/Server/Resources/config/scope/policy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.
src/Bundle/Server/Resources/config/scope/scope.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.
src/Bundle/Server/Resources/config/scope/policy_default.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.
src/Bundle/Server/Resources/config/scope/policy_error.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.
src/Component/Server/Model/Scope/ScopePolicyManager.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)
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     /**
72 72
      * @return ScopePolicyInterface|null
73 73
      */
74
-    public function default(): ?ScopePolicyInterface
74
+    public function default(): ? ScopePolicyInterface
75 75
     {
76 76
         if (null === $this->defaultScopePolicy) {
77 77
             return null;
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      *
105 105
      * @return ScopePolicyInterface|null
106 106
      */
107
-    private function getForClient(Client $client): ?ScopePolicyInterface
107
+    private function getForClient(Client $client): ? ScopePolicyInterface
108 108
     {
109 109
         if ($client->has('scope_policy') && $this->has($client->get('scope_policy'))) {
110 110
             $policyName = $client->get('scope_policy');
Please login to merge, or discard this patch.
src/Component/Server/Model/Scope/ScopeRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.