Completed
Push — master ( 7a107a...5cd32c )
by Rafael
04:36
created
src/Behat/Transformer/TransformPystringToYamlstring.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         //parse
64 64
         array_walk_recursive(
65 65
             $parsedValue,
66
-            function (&$value) use ($definitionCall, $argumentIndex) {
66
+            function(&$value) use ($definitionCall, $argumentIndex) {
67 67
                 foreach ($this->transformers as $transformer) {
68 68
                     if ($transformer->supportsDefinitionAndArgument($definitionCall, $argumentIndex, $value)) {
69 69
                         $value = $transformer->transformArgument($definitionCall, $argumentIndex, $value);
Please login to merge, or discard this patch.
src/Behat/Transformer/ExpressionLanguage/JMESPathSearchProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
         if (preg_match('/search\(/', $expression)) {
31 31
             $el->register(
32 32
                 'search',
33
-                function ($expression, $data) {
33
+                function($expression, $data) {
34 34
                     return sprintf('$search(%s, %s)', $expression, $data);
35 35
                 },
36
-                function (array $variables, $expression, $data) {
36
+                function(array $variables, $expression, $data) {
37 37
                     return $variables['search']($expression, $data);
38 38
                 }
39 39
             );
40 40
 
41
-            $values['search'] = function ($expression, $data) {
41
+            $values['search'] = function($expression, $data) {
42 42
                 return search($expression, $data);
43 43
             };
44 44
         }
Please login to merge, or discard this patch.
src/Behat/Client/GraphQLClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
     public function request($method, $uri, array $parameters = [], array $files = [], array $server = [], $content = null, $changeHistory = true)
225 225
     {
226 226
         set_error_handler(
227
-            function ($level, $message, $errFile, $errLine) {
227
+            function($level, $message, $errFile, $errLine) {
228 228
                 if ($this->deprecationAdviser) {
229 229
                     $this->deprecationAdviser->addWarning($message, $errFile, $errLine);
230 230
                 }
Please login to merge, or discard this patch.
src/Behat/Deprecation/DeprecationAdviser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         if (!empty($this->warnings)) {
56 56
             uasort(
57 57
                 $this->warnings,
58
-                function ($a, $b) {
58
+                function($a, $b) {
59 59
                     if (count($a) === count($b)) {
60 60
                         return 0;
61 61
                     }
Please login to merge, or discard this patch.
src/Definition/Plugin/RolesDefinitionPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             }
69 69
             $this->definitionVisited[$key] = true;
70 70
 
71
-            $type = $endpoint->hasType($definition->getType()) ? $endpoint->getType($definition->getType()): null;
71
+            $type = $endpoint->hasType($definition->getType()) ? $endpoint->getType($definition->getType()) : null;
72 72
 
73 73
             if (($roles = $definition->getRoles()) && !$this->authorizationChecker->isGranted($roles)) {
74 74
                 if ($parent) {
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
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                           ->useAttributeAsKey('name')
46 46
                           ->validate()
47 47
                           ->ifTrue(
48
-                              function ($v) {
48
+                              function($v) {
49 49
                                   return array_key_exists('default', $v);
50 50
                               }
51 51
                           )->thenInvalid('"default" can\'t be used as endpoint name, the system internally use this endpoint name to store the entire schema.')
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                   ->beforeNormalization()
58 58
                   ->ifString()
59 59
                   ->then(
60
-                      function ($v) {
60
+                      function($v) {
61 61
                           return preg_split('/\s*,\s*/', $v);
62 62
                       }
63 63
                   )
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
              ->beforeNormalization()
75 75
              ->ifString()
76 76
              ->then(
77
-                 function ($v) {
77
+                 function($v) {
78 78
                      return preg_split('/\s*,\s*/', $v);
79 79
                  }
80 80
              )
Please login to merge, or discard this patch.
src/Behat/GraphQLApiExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function __construct(ServiceProcessor $processor = null)
44 44
     {
45
-        $this->processor = $processor ? : new ServiceProcessor();
45
+        $this->processor = $processor ?: new ServiceProcessor();
46 46
     }
47 47
 
48 48
     public function getConfigKey()
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                   ->beforeNormalization()
80 80
                   ->ifString()
81 81
                   ->then(
82
-                      function ($v) {
82
+                      function($v) {
83 83
                           return preg_split('/\s*,\s*/', $v);
84 84
                       }
85 85
                   )
Please login to merge, or discard this patch.
src/Type/Definition/ObjectDefinitionType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
             [
39 39
                 'name' => $definition->getName(),
40 40
                 'description' => $definition->getDescription(),
41
-                'fields' => function () {
41
+                'fields' => function() {
42 42
                     return $this->resolveFields();
43 43
                 },
44
-                'interfaces' => function () {
44
+                'interfaces' => function() {
45 45
                     return $this->resolveInterfaces();
46 46
                 },
47
-                'resolveField' => function ($root, array $args, $context, ResolveInfo $resolveInfo) {
47
+                'resolveField' => function($root, array $args, $context, ResolveInfo $resolveInfo) {
48 48
                     $resolver = new ObjectFieldResolver(
49 49
                         $this->container,
50 50
                         $this->endpoint,
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
                     return $resolver($root, $args, $context, $resolveInfo);
57 57
                 },
58
-                'isTypeOf' => function ($value, $context, ResolveInfo $info) {
58
+                'isTypeOf' => function($value, $context, ResolveInfo $info) {
59 59
                     //TODO: implement this
60 60
                 },
61 61
             ]
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
         $fields = [];
68 68
         foreach ($this->definition->getFields() as $fieldDefinition) {
69 69
             try {
70
-                if (!$fieldDefinition->getType()){
71
-                    print_r($fieldDefinition);exit;
70
+                if (!$fieldDefinition->getType()) {
71
+                    print_r($fieldDefinition); exit;
72 72
                 }
73 73
                 $type = TypeRegistry::get($fieldDefinition->getType());
74 74
             } catch (\UnexpectedValueException $exception) {
Please login to merge, or discard this patch.
src/Mutation/AbstractMutationResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         if ($formBuilder) {
44 44
             $formBuilder->addEventListener(
45 45
                 FormEvents::SUBMIT,
46
-                function (FormEvent $event) use (&$mutationEvent) {
46
+                function(FormEvent $event) use (&$mutationEvent) {
47 47
                     if ($this->eventDispatcher) {
48 48
                         $mutationEvent = new GraphQLMutationEvent($this->context, $event);
49 49
                         $this->eventDispatcher->dispatch(GraphQLEvents::MUTATION_SUBMITTED, $mutationEvent);
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
 
54 54
             $formBuilder->addEventSubscriber($this);
55 55
 
56
-            $extensionExecutor = function ($method) {
57
-                return function (FormEvent $event) use ($method) {
56
+            $extensionExecutor = function($method) {
57
+                return function(FormEvent $event) use ($method) {
58 58
                     foreach ($this->extensions as $extension) {
59 59
                         return call_user_func_array([$extension, $method], [$event]);
60 60
                     }
Please login to merge, or discard this patch.