@@ -91,7 +91,7 @@ |
||
91 | 91 | |
92 | 92 | protected function getRootAttributes() |
93 | 93 | { |
94 | - return ['id' => $this->getId()]; |
|
94 | + return [ 'id' => $this->getId() ]; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | protected function buildPhysicalAddressNodes(array $lines) |
@@ -91,7 +91,7 @@ |
||
91 | 91 | |
92 | 92 | protected function getRootAttributes() |
93 | 93 | { |
94 | - return ['id' => $this->getId()]; |
|
94 | + return [ 'id' => $this->getId() ]; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | protected function buildPhysicalAddressNodes(array $lines) |
@@ -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 |
@@ -41,20 +41,20 @@ discard block |
||
41 | 41 | /** @var IPayload */ |
42 | 42 | protected $parentPayload; |
43 | 43 | /** @var array XPath expressions to extract required data from the serialized payload (XML) */ |
44 | - protected $extractionPaths = []; |
|
44 | + protected $extractionPaths = [ ]; |
|
45 | 45 | /** @var array */ |
46 | - protected $optionalExtractionPaths = []; |
|
46 | + protected $optionalExtractionPaths = [ ]; |
|
47 | 47 | /** @var array property/XPath pairs that take boolean values */ |
48 | - protected $booleanExtractionPaths = []; |
|
48 | + protected $booleanExtractionPaths = [ ]; |
|
49 | 49 | /** @var array pair address lines properties with xpaths for extraction */ |
50 | - protected $addressLinesExtractionMap = []; |
|
50 | + protected $addressLinesExtractionMap = [ ]; |
|
51 | 51 | /** @var array extracting node value and assigned the property as DateTime */ |
52 | - protected $datetimeExtractionPaths = []; |
|
52 | + protected $datetimeExtractionPaths = [ ]; |
|
53 | 53 | /** |
54 | 54 | * @var array property/XPath pairs. if property is a payload, first node matched |
55 | 55 | * will be deserialized by that payload |
56 | 56 | */ |
57 | - protected $subpayloadExtractionPaths = []; |
|
57 | + protected $subpayloadExtractionPaths = [ ]; |
|
58 | 58 | /** @var LoggerInterface enabled PSR-3 logging */ |
59 | 59 | protected $logger; |
60 | 60 | /** @var bool flag to determine to either serialize empty node not or to serialize empty node. */ |
@@ -156,9 +156,9 @@ discard block |
||
156 | 156 | protected function addressLinesFromXPath(\DOMXPath $domXPath) |
157 | 157 | { |
158 | 158 | foreach ($this->addressLinesExtractionMap as $address) { |
159 | - $lines = $domXPath->query($address['xPath']); |
|
160 | - $property = $address['property']; |
|
161 | - $this->$property = []; |
|
159 | + $lines = $domXPath->query($address[ 'xPath' ]); |
|
160 | + $property = $address[ 'property' ]; |
|
161 | + $this->$property = [ ]; |
|
162 | 162 | foreach ($lines as $line) { |
163 | 163 | array_push($this->$property, $line->nodeValue); |
164 | 164 | } |
@@ -290,8 +290,8 @@ discard block |
||
290 | 290 | protected function serializeRootAttributes() |
291 | 291 | { |
292 | 292 | $rootAttributes = $this->getRootAttributes(); |
293 | - $qualifyAttributes = function ($name) use ($rootAttributes) { |
|
294 | - return sprintf('%s="%s"', $name, $this->xmlEncode($rootAttributes[$name])); |
|
293 | + $qualifyAttributes = function($name) use ($rootAttributes) { |
|
294 | + return sprintf('%s="%s"', $name, $this->xmlEncode($rootAttributes[ $name ])); |
|
295 | 295 | }; |
296 | 296 | $qualifiedAttributes = array_map($qualifyAttributes, array_keys($rootAttributes)); |
297 | 297 | return implode(' ', $qualifiedAttributes); |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | */ |
312 | 312 | protected function getRootAttributes() |
313 | 313 | { |
314 | - return []; |
|
314 | + return [ ]; |
|
315 | 315 | } |
316 | 316 | |
317 | 317 | /** |
@@ -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 |