Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#7)
by Jérémiah
09:24
created
Resolver/Config/ResolveCallbackConfigSolution.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
             return $value;
20 20
         }
21 21
 
22
-        return function () use ($value) {
22
+        return function() use ($value) {
23 23
             $args = func_get_args();
24 24
             $result = $this->solveUsingExpressionLanguageIfNeeded(
25 25
                 $value,
Please login to merge, or discard this patch.
Resolver/Config/AbstractConfigSolution.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 
109 109
     protected function solveUsingExpressionLanguageIfNeeded($expression, array $values = [])
110 110
     {
111
-        if (is_string($expression) &&  0 === strpos($expression, '@=')) {
111
+        if (is_string($expression) && 0 === strpos($expression, '@=')) {
112 112
             return $this->expressionLanguage->evaluate(substr($expression, 2), $values);
113 113
         }
114 114
 
Please login to merge, or discard this patch.
Resolver/Config/FieldsConfigSolution.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -130,14 +130,14 @@  discard block
 block discarded – undo
130 130
 
131 131
     private function resolveAccessAndWrapResolveCallback($expression, callable $resolveCallback = null)
132 132
     {
133
-        return function () use ($expression, $resolveCallback) {
133
+        return function() use ($expression, $resolveCallback) {
134 134
             $args = func_get_args();
135 135
 
136
-            $result = null !== $resolveCallback  ? call_user_func_array($resolveCallback, $args) : null;
136
+            $result = null !== $resolveCallback ? call_user_func_array($resolveCallback, $args) : null;
137 137
 
138 138
             $values = call_user_func_array([$this, 'solveResolveCallbackArgs'], $args);
139 139
 
140
-            $checkAccess = function ($object, $throwException = false) use ($expression, $values) {
140
+            $checkAccess = function($object, $throwException = false) use ($expression, $values) {
141 141
                 try {
142 142
                     $access = $this->solveUsingExpressionLanguageIfNeeded(
143 143
                         $expression,
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
                 case is_array($result) || $result instanceof \ArrayAccess:
159 159
                     $result = array_filter(
160 160
                         array_map(
161
-                            function ($object) use ($checkAccess) {
161
+                            function($object) use ($checkAccess) {
162 162
                                 return $checkAccess($object) ? $object : null;
163 163
                             },
164 164
                             $result
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
                 case $result instanceof Connection:
170 170
                     $result->edges = array_map(
171
-                        function (Edge $edge) use ($checkAccess) {
171
+                        function(Edge $edge) use ($checkAccess) {
172 172
                             $edge->node = $checkAccess($edge->node) ? $edge->node : null;
173 173
 
174 174
                             return $edge;
Please login to merge, or discard this patch.
Resolver/Config/TypeConfigSolution.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     public function solveTypeCallback($values)
20 20
     {
21
-        return function () use ($values) {
21
+        return function() use ($values) {
22 22
             return $this->solveType($values);
23 23
         };
24 24
     }
Please login to merge, or discard this patch.
Tests/Definition/MergeFieldTraitTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 ['foo'],
47 47
             ],
48 48
             [
49
-                function () {
49
+                function() {
50 50
                     return ['test'];
51 51
                 },
52 52
                 ['bar'],
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     public function testGetFieldsWithDefaultsForceArray()
66 66
     {
67
-        $fields = $this->getFieldsWithDefaults(function () { return ['bar']; }, ['toto'], false);
67
+        $fields = $this->getFieldsWithDefaults(function() { return ['bar']; }, ['toto'], false);
68 68
         $this->assertInstanceOf('Closure', $fields);
69 69
         $this->assertEquals(['bar', 'toto'], $fields());
70 70
     }
Please login to merge, or discard this patch.
DependencyInjection/TypesConfiguration.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,9 +86,9 @@  discard block
 block discarded – undo
86 86
             ->variableNode('resolveNode')->end()
87 87
         ->end()
88 88
         ->validate()
89
-            ->always(function ($v) {
89
+            ->always(function($v) {
90 90
                 // remove all empty value
91
-                $array_filter_recursive = function ($input) use (&$array_filter_recursive) {
91
+                $array_filter_recursive = function($input) use (&$array_filter_recursive) {
92 92
                     foreach ($input as $key => &$value) {
93 93
                         if ('defaultValue' === $key) {
94 94
                             continue;
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             ->prototype('array')
131 131
                 ->beforeNormalization()
132 132
                     ->ifString()
133
-                    ->then(function ($v) { return ['builder' => $v]; })
133
+                    ->then(function($v) { return ['builder' => $v]; })
134 134
                 ->end()
135 135
                 ->children()
136 136
                     ->append($this->addTypeSelection())
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                         ->info('Use to build dynamic args. Can be combine with args.')
139 139
                         ->beforeNormalization()
140 140
                             ->ifString()
141
-                            ->then(function ($v) { return ['builder' => $v]; })
141
+                            ->then(function($v) { return ['builder' => $v]; })
142 142
                         ->end()
143 143
                         ->children()
144 144
                             ->scalarNode('builder')
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             ->end();
184 184
 
185 185
         $node->validate()
186
-            ->ifTrue(function ($fields) use ($enabledBuilder) {
186
+            ->ifTrue(function($fields) use ($enabledBuilder) {
187 187
                 foreach ($fields as $v) {
188 188
                     if (empty($v['type']) && $enabledBuilder && empty($v['builder'])) {
189 189
                         return true;
Please login to merge, or discard this patch.