@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | $this->optionalExtractionPaths = array_merge( |
| 46 | 46 | $this->optionalExtractionPaths, |
| 47 | - ['unitPrice' => 'x:UnitPrice'] |
|
| 47 | + [ 'unitPrice' => 'x:UnitPrice' ] |
|
| 48 | 48 | ); |
| 49 | 49 | } |
| 50 | 50 | |
@@ -161,7 +161,7 @@ |
||
| 161 | 161 | foreach ($itemPrices as $property => $extractionPath) { |
| 162 | 162 | $priceNode = $xpath->query($extractionPath)->item(0); |
| 163 | 163 | if ($priceNode) { |
| 164 | - $getter = $priceGroupGetters[$property]; |
|
| 164 | + $getter = $priceGroupGetters[ $property ]; |
|
| 165 | 165 | $this->$property = $this->$getter()->deserialize($priceNode->C14N()); |
| 166 | 166 | } |
| 167 | 167 | } |
@@ -225,7 +225,7 @@ |
||
| 225 | 225 | |
| 226 | 226 | protected function serializeVatInclusivePricing() |
| 227 | 227 | { |
| 228 | - $flag =$this->getVatInclusivePricingFlag(); |
|
| 228 | + $flag = $this->getVatInclusivePricingFlag(); |
|
| 229 | 229 | if ($flag === true || $flag === false) { |
| 230 | 230 | $flag = $this->convertBooleanToString($flag); |
| 231 | 231 | return "<VATInclusivePricing>$flag</VATInclusivePricing>"; |
@@ -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 | |
@@ -51,10 +51,10 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function validate(Payload\IPayload $payload) |
| 53 | 53 | { |
| 54 | - $invalidDataAccessors = []; |
|
| 54 | + $invalidDataAccessors = [ ]; |
|
| 55 | 55 | foreach ($this->requiredDataAccessors as $method) { |
| 56 | 56 | if (is_null($payload->$method())) { |
| 57 | - $invalidDataAccessors[] = $method; |
|
| 57 | + $invalidDataAccessors[ ] = $method; |
|
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |
@@ -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) { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * @param string[] Accessor methods to get subpayloads of the payload being validated |
| 29 | 29 | */ |
| 30 | - public function __construct(array $subpayloadAccessors = []) |
|
| 30 | + public function __construct(array $subpayloadAccessors = [ ]) |
|
| 31 | 31 | { |
| 32 | 32 | $this->subpayloadAccessors = $subpayloadAccessors; |
| 33 | 33 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | libxml_use_internal_errors(false); |
| 39 | 39 | if ($errors) { |
| 40 | 40 | $messages = implode(', ', array_filter(array_map( |
| 41 | - function ($libxmlError) { |
|
| 41 | + function($libxmlError) { |
|
| 42 | 42 | return trim($libxmlError->message); |
| 43 | 43 | }, |
| 44 | 44 | $errors |