Failed Conditions
Push — master ( 9635a1...82855d )
by Florent
14:04
created
src/Bundle/Server/DependencyInjection/Source/TokenType/TokenTypeSource.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)
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function __construct()
34 34
     {
35
-        $this->tokenTypes =[
35
+        $this->tokenTypes = [
36 36
             new BearerTokenTypeSource(),
37 37
             new MacTokenTypeSource(),
38 38
         ];
Please login to merge, or discard this patch.
Server/DependencyInjection/Source/TokenType/BearerTokenTypeSource.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)
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         parent::continueConfiguration($node);
51 51
         $node
52 52
             ->validate()
53
-                ->ifTrue(function ($config) {
53
+                ->ifTrue(function($config) {
54 54
                     return true === $config['enabled'] && empty($config['realm']);
55 55
                 })
56 56
                 ->thenInvalid('The option "realm" must be set.')
Please login to merge, or discard this patch.
Bundle/Server/DependencyInjection/Source/TokenType/MacTokenTypeSource.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)
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
         parent::continueConfiguration($node);
51 51
         $node
52 52
             ->validate()
53
-                ->ifTrue(function ($config) {
53
+                ->ifTrue(function($config) {
54 54
                     return $config['min_length'] > $config['max_length'];
55 55
                 })
56 56
                 ->thenInvalid('The option "min_length" must not be greater than "max_length".')
57 57
             ->end()
58 58
             ->validate()
59
-                ->ifTrue(function ($config) {
59
+                ->ifTrue(function($config) {
60 60
                     return !in_array($config['algorithm'], ['hmac-sha-256', 'hmac-sha-1']);
61 61
                 })
62 62
                 ->thenInvalid('The algorithm is not supported. Please use one of the following one: "hmac-sha-1", "hmac-sha-256".')
Please login to merge, or discard this patch.
src/Bundle/Server/DependencyInjection/Source/ActionableSource.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/SourceInterface.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.
Bundle/Server/DependencyInjection/Source/ResourceServerRepositorySource.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)
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $node
46 46
             ->addDefaultsIfNotSet()
47 47
             ->validate()
48
-                ->ifTrue(function ($config) {
48
+                ->ifTrue(function($config) {
49 49
                     return true === $config['enabled'] && empty($config['repository']);
50 50
                 })
51 51
                 ->thenInvalid('The option "repository" must be set.')
Please login to merge, or discard this patch.
Bundle/Server/DependencyInjection/Source/UserAccountRepositorySource.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/ClientSource.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)
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected function continueLoading(string $path, ContainerBuilder $container, array $config)
35 35
     {
36
-        $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__ . '/../../Resources/config'));
36
+        $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config'));
37 37
         $loader->load('client.php');
38 38
     }
39 39
 
Please login to merge, or discard this patch.
src/Bundle/Server/DependencyInjection/Source/ServerNameSource.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.