@@ -113,6 +113,6 @@ |
||
| 113 | 113 | */ |
| 114 | 114 | protected function getRootAttributes() |
| 115 | 115 | { |
| 116 | - return []; |
|
| 116 | + return [ ]; |
|
| 117 | 117 | } |
| 118 | 118 | } |
@@ -113,6 +113,6 @@ |
||
| 113 | 113 | */ |
| 114 | 114 | protected function getRootAttributes() |
| 115 | 115 | { |
| 116 | - return []; |
|
| 116 | + return [ ]; |
|
| 117 | 117 | } |
| 118 | 118 | } |
@@ -113,6 +113,6 @@ |
||
| 113 | 113 | */ |
| 114 | 114 | protected function getRootAttributes() |
| 115 | 115 | { |
| 116 | - return []; |
|
| 116 | + return [ ]; |
|
| 117 | 117 | } |
| 118 | 118 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | protected $responseCode; |
| 36 | 36 | /** @var array response codes that are considered a success */ |
| 37 | - protected $successResponseCodes = ['Success']; |
|
| 37 | + protected $successResponseCodes = [ 'Success' ]; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * @param IValidatorIterator |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | protected $responseCode; |
| 36 | 36 | /** @var array response codes that are considered a success */ |
| 37 | - protected $successResponseCodes = ['Success']; |
|
| 37 | + protected $successResponseCodes = [ 'Success' ]; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * @param IValidatorIterator |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | $this->optionalExtractionPaths = array_merge( |
| 52 | 52 | $this->optionalExtractionPaths, |
| 53 | - ['calculationError' => 'x:CalculationError'] |
|
| 53 | + [ 'calculationError' => 'x:CalculationError' ] |
|
| 54 | 54 | ); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | $this->optionalExtractionPaths = array_merge( |
| 47 | 47 | $this->optionalExtractionPaths, |
| 48 | - ['unitPrice' => 'x:UnitPrice'] |
|
| 48 | + [ 'unitPrice' => 'x:UnitPrice' ] |
|
| 49 | 49 | ); |
| 50 | 50 | } |
| 51 | 51 | |
@@ -45,10 +45,10 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | public function validate(Payload\IPayload $payload) |
| 47 | 47 | { |
| 48 | - $invalidDataAccessors = []; |
|
| 48 | + $invalidDataAccessors = [ ]; |
|
| 49 | 49 | foreach ($this->requiredDataAccessors as $method) { |
| 50 | 50 | if (is_null($payload->$method())) { |
| 51 | - $invalidDataAccessors[] = $method; |
|
| 51 | + $invalidDataAccessors[ ] = $method; |
|
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | if ($invalidDataAccessors) { |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function hasPayloadConfig($type) |
| 33 | 33 | { |
| 34 | - return isset($this->getConfig()[$type]); |
|
| 34 | + return isset($this->getConfig()[ $type ]); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | public function getPayloadConfig($type) |
| 45 | 45 | { |
| 46 | 46 | if ($this->hasPayloadConfig($type)) { |
| 47 | - return $this->getConfig()[$type]; |
|
| 47 | + return $this->getConfig()[ $type ]; |
|
| 48 | 48 | } |
| 49 | 49 | throw new UnsupportedPayload("No configuration found for $type."); |
| 50 | 50 | } |