Completed
Push — master ( 1c759b...a2e648 )
by Indra
07:15
created
ValueFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.
Exception/BadResponseException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.
Exception/BadRequestException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.
Exception/InvalidSpecificationException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.
Exception/ValidatorException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.
Exception/CommandException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.
Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.
Builder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function commandToRequestTransformer()
53 53
     {
54
-        return function (CommandInterface $command) {
54
+        return function(CommandInterface $command) {
55 55
             if (!$this->service->hasOperation($command->getName())) {
56 56
                 throw new CommandException(
57 57
                     sprintf(
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function responseToResultTransformer()
119 119
     {
120
-        return function (
120
+        return function(
121 121
             ResponseInterface $response,
122 122
             RequestInterface $request,
123 123
             CommandInterface $command
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
     public function badResponseExceptionParser()
152 152
     {
153
-        return function (CommandInterface $command, GuzzleBadResponseException $e) {
153
+        return function(CommandInterface $command, GuzzleBadResponseException $e) {
154 154
             $operation = $this->service->getOperation($command->getName());
155 155
 
156 156
             $this->processResponseError(
Please login to merge, or discard this patch.
Validator/SpecificationConfiguration.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         $rootNode
33 33
             ->validate()
34
-                ->always(function ($v) {
34
+                ->always(function($v) {
35 35
                     foreach ($v['operations'] as $name => $operation) {
36 36
                         if (!$operation['requestProtocol']) {
37 37
                             $v['operations'][$name]['requestProtocol'] = $v['protocol'];
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                     ->isRequired()
132 132
                     ->beforeNormalization()
133 133
                         ->ifString()
134
-                        ->then(function ($v) {
134
+                        ->then(function($v) {
135 135
                             return strtoupper($v);
136 136
                         })
137 137
                     ->end()
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                     ->cannotBeEmpty()
146 146
                     ->validate()
147 147
                         ->ifString()
148
-                        ->then(function ($v) {
148
+                        ->then(function($v) {
149 149
                             return '/'.ltrim($v, '/');
150 150
                         })
151 151
                     ->end()
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
         $rootNode
245 245
             ->beforeNormalization()
246
-                ->always(function ($v) use ($fromOperation) {
246
+                ->always(function($v) use ($fromOperation) {
247 247
                     if (!$fromOperation) {
248 248
                         if (isset($v['shape'])) {
249 249
                             throw new InvalidConfigurationException('Unrecognized option "shape"');
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
                 ->arrayNode('members')
278 278
                     ->beforeNormalization()
279 279
                         ->ifArray()
280
-                        ->then(function ($v) {
280
+                        ->then(function($v) {
281 281
                             foreach ($v as $name => $member) {
282 282
                                 if (!isset($member['locationName'])) {
283 283
                                     $v[$name]['locationName'] = $name;
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
         $availableOperators = ['===', '!==', '==', '!=', '<', '<=', '>=', '>'];
363 363
         $rootNode
364 364
             ->beforeNormalization()
365
-                ->always(function ($v) use ($fromOperation) {
365
+                ->always(function($v) use ($fromOperation) {
366 366
                     if (!$fromOperation) {
367 367
                         if (isset($v['errorShape'])) {
368 368
                             throw new InvalidConfigurationException('Unrecognized option "errorShape"');
Please login to merge, or discard this patch.