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:02
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/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.
Resolver/Config/FieldsConfigSolution.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -149,6 +149,9 @@
 block discarded – undo
149 149
         return $treatedOptions;
150 150
     }
151 151
 
152
+    /**
153
+     * @param callable $expression
154
+     */
152 155
     private function resolveAccessAndWrapResolveCallback($expression, callable $resolveCallback = null)
153 156
     {
154 157
         return function () use ($expression, $resolveCallback) {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -151,10 +151,10 @@  discard block
 block discarded – undo
151 151
 
152 152
     private function resolveAccessAndWrapResolveCallback($expression, callable $resolveCallback = null)
153 153
     {
154
-        return function () use ($expression, $resolveCallback) {
154
+        return function() use ($expression, $resolveCallback) {
155 155
             $args = func_get_args();
156 156
 
157
-            $result = null !== $resolveCallback  ? call_user_func_array($resolveCallback, $args) : null;
157
+            $result = null !== $resolveCallback ? call_user_func_array($resolveCallback, $args) : null;
158 158
 
159 159
             $values = call_user_func_array([$this, 'solveResolveCallbackArgs'], $args);
160 160
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             case is_array($result) || $result instanceof \ArrayAccess:
171 171
                 $result = array_filter(
172 172
                     array_map(
173
-                        function ($object) use ($checkAccess) {
173
+                        function($object) use ($checkAccess) {
174 174
                             return $checkAccess($object) ? $object : null;
175 175
                         },
176 176
                         $result
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
             case $result instanceof Connection:
182 182
                 $result->edges = array_map(
183
-                    function (Edge $edge) use ($checkAccess) {
183
+                    function(Edge $edge) use ($checkAccess) {
184 184
                         $edge->node = $checkAccess($edge->node) ? $edge->node : null;
185 185
 
186 186
                         return $edge;
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
     private function checkAccessCallback($expression, $values)
201 201
     {
202
-        return function ($object, $throwException = false) use ($expression, $values) {
202
+        return function($object, $throwException = false) use ($expression, $values) {
203 203
             try {
204 204
                 $access = $this->solveUsingExpressionLanguageIfNeeded(
205 205
                     $expression,
Please login to merge, or discard this patch.