Completed
Push — master ( 3ccb4d...f0ec0e )
by Vladimir
05:12
created
src/Check/php/Expression/Plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function checkRequirements()
38 38
     {
39 39
         if (!class_exists('Symfony\Component\ExpressionLanguage\ExpressionLanguage')) {
40
-            throw new FeatureRequired('The symfony/expression-language is required for ' . static::class . ' check.');
40
+            throw new FeatureRequired('The symfony/expression-language is required for '.static::class.' check.');
41 41
         }
42 42
     }
43 43
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                 ->arrayNode('check')
54 54
                     ->addDefaultsIfNotSet()
55 55
                     ->validate()
56
-                        ->ifTrue(static function ($value) {
56
+                        ->ifTrue(static function($value) {
57 57
                             return !$value['warningExpression'] && !$value['criticalExpression'];
58 58
                         })
59 59
                         ->thenInvalid('A warningExpression or a criticalExpression must be set.')
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,14 +78,14 @@  discard block
 block discarded – undo
78 78
 
79 79
         $checkPligins = $this->getCheckPligins();
80 80
 
81
-        $addChecks = function ($rootNode) use ($checkPligins, $builder) {
81
+        $addChecks = function($rootNode) use ($checkPligins, $builder) {
82 82
             foreach ($checkPligins as $checkPligin) {
83 83
                 $checkPligin = new $checkPligin();
84 84
 
85 85
 
86 86
                 $ref = new \ReflectionClass($checkPligin);
87 87
                 $methods = $ref->getMethods(\ReflectionMethod::IS_PUBLIC);
88
-                $methods = array_filter($methods, static function (\ReflectionMethod $ref) {
88
+                $methods = array_filter($methods, static function(\ReflectionMethod $ref) {
89 89
                     $retType = $ref->getReturnType();
90 90
 
91 91
                     return ($retType && NodeDefinition::class === $retType->getName()) ? true : false;
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $node = $builder
111 111
             ->root('checks', 'array')
112 112
             ->beforeNormalization()
113
-            ->always(static function ($value) {
113
+            ->always(static function($value) {
114 114
                 foreach ($value as $k => $v) {
115 115
                     $newK = str_replace('(s)', '_factory', $k);
116 116
                     if ($newK !== $k) {
Please login to merge, or discard this patch.