Completed
Branch master (0eee8d)
by Evgeniy
07:21
created
Category
src/SmartGamma/Behat/PactExtension/Extension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             $reflex = new \ReflectionClassConstant('\App\Kernel', 'PACT_CONSUMER_VERSION');
54 54
             $config['common']['PACT_CONSUMER_VERSION'] = $reflex->getValue();
55 55
         } catch (\ReflectionException $e) {
56
-            if(false === isset($config['common']['PACT_CONSUMER_VERSION'])) {
56
+            if (false === isset($config['common']['PACT_CONSUMER_VERSION'])) {
57 57
                 new \Exception('You should define PACT_CONSUMER_VERSION');
58 58
             }
59 59
         }
Please login to merge, or discard this patch.
src/SmartGamma/Behat/PactExtension/Infrastructure/Pact.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
             $brokerHttpService->tag($config->getConsumer(), $consumerVersion, $this->tag);
225 225
             echo 'Pact file has been uploaded to the Broker successfully with version ' . $consumerVersion . ' by tag:' . $this->tag;
226 226
         } catch (ClientException $e) {
227
-            echo 'Error: '.$e->getMessage();
227
+            echo 'Error: ' . $e->getMessage();
228 228
         }
229 229
     }
230 230
 
Please login to merge, or discard this patch.
Behat/PactExtension/Infrastructure/Interaction/InteractionCompositor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,12 +82,12 @@
 block discarded – undo
82 82
     {
83 83
         return array_reduce(
84 84
             $responseDTO->getRawParameters(),
85
-            function (array $carry, array $bodyItem) use ($responseDTO){
85
+            function(array $carry, array $bodyItem) use ($responseDTO){
86 86
 
87 87
                 $matchType = $bodyItem['match'] ? $bodyItem['match'] : MatcherInterface::EXACT_TYPE;
88
-                $value = $matchType == MatcherInterface::EACH_LIKE_TYPE ? $responseDTO->getMatchingObjectStructure($bodyItem['value']): $bodyItem['value'];
88
+                $value = $matchType == MatcherInterface::EACH_LIKE_TYPE ? $responseDTO->getMatchingObjectStructure($bodyItem['value']) : $bodyItem['value'];
89 89
 
90
-                if ('null' !== $value ) {
90
+                if ('null' !== $value) {
91 91
                     $carry[$bodyItem['parameter']] = $this->matcher->$matchType($value);
92 92
                 }
93 93
 
Please login to merge, or discard this patch.