@@ -53,7 +53,7 @@ |
||
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 | } |
@@ -224,7 +224,7 @@ |
||
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 |
@@ -82,12 +82,12 @@ |
||
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 |