@@ -30,8 +30,8 @@ |
||
30 | 30 | */ |
31 | 31 | class QuantityInfo |
32 | 32 | { |
33 | - /** |
|
34 | - * @var QuantityDetailsType[] |
|
35 | - */ |
|
36 | - public $quantityDetails = []; |
|
33 | + /** |
|
34 | + * @var QuantityDetailsType[] |
|
35 | + */ |
|
36 | + public $quantityDetails = []; |
|
37 | 37 | } |
@@ -30,41 +30,41 @@ |
||
30 | 30 | */ |
31 | 31 | class AttributeDetails |
32 | 32 | { |
33 | - const TYPE_DEPARTURE_DAY = "DAY"; |
|
33 | + const TYPE_DEPARTURE_DAY = "DAY"; |
|
34 | 34 | |
35 | - const TYPE_DESTINATION = "DES"; |
|
35 | + const TYPE_DESTINATION = "DES"; |
|
36 | 36 | |
37 | - const TYPE_MONTH = "MTH"; |
|
37 | + const TYPE_MONTH = "MTH"; |
|
38 | 38 | |
39 | - const TYPE_PASSENGER_TYPE_PROFILE = "PRO"; |
|
39 | + const TYPE_PASSENGER_TYPE_PROFILE = "PRO"; |
|
40 | 40 | |
41 | - const TYPE_STAY_DURATION = "SD"; |
|
41 | + const TYPE_STAY_DURATION = "SD"; |
|
42 | 42 | |
43 | - const TYPE_WEEK = "WEEK"; |
|
43 | + const TYPE_WEEK = "WEEK"; |
|
44 | 44 | |
45 | - const TYPE_COUNTRY = "CTRY"; |
|
45 | + const TYPE_COUNTRY = "CTRY"; |
|
46 | 46 | |
47 | - /** |
|
48 | - * DAY Per departure day |
|
49 | - * DES Per destination |
|
50 | - * MTH Per month |
|
51 | - * PRO Passenger type profile |
|
52 | - * SD Per stay duration |
|
53 | - * WEEK Per week |
|
54 | - * |
|
55 | - * @var string self::TYPE_* |
|
56 | - */ |
|
57 | - public $attributeType; |
|
58 | - /** |
|
59 | - * @var string |
|
60 | - */ |
|
61 | - public $attributeDescription; |
|
47 | + /** |
|
48 | + * DAY Per departure day |
|
49 | + * DES Per destination |
|
50 | + * MTH Per month |
|
51 | + * PRO Passenger type profile |
|
52 | + * SD Per stay duration |
|
53 | + * WEEK Per week |
|
54 | + * |
|
55 | + * @var string self::TYPE_* |
|
56 | + */ |
|
57 | + public $attributeType; |
|
58 | + /** |
|
59 | + * @var string |
|
60 | + */ |
|
61 | + public $attributeDescription; |
|
62 | 62 | |
63 | - /** |
|
64 | - * @param string $type self::TYPE_* |
|
65 | - */ |
|
66 | - public function __construct($type) |
|
67 | - { |
|
68 | - $this->attributeType = $type; |
|
69 | - } |
|
63 | + /** |
|
64 | + * @param string $type self::TYPE_* |
|
65 | + */ |
|
66 | + public function __construct($type) |
|
67 | + { |
|
68 | + $this->attributeType = $type; |
|
69 | + } |
|
70 | 70 | } |
@@ -30,8 +30,8 @@ |
||
30 | 30 | */ |
31 | 31 | class SelectionDetailsInfo |
32 | 32 | { |
33 | - /** |
|
34 | - * @var SelectionDetails[] |
|
35 | - */ |
|
36 | - public $selectionDetails = []; |
|
33 | + /** |
|
34 | + * @var SelectionDetails[] |
|
35 | + */ |
|
36 | + public $selectionDetails = []; |
|
37 | 37 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | if (!empty($params->originatorId)) { |
107 | 107 | $this->makeRoomStayData(); |
108 | - if(!($this->roomStayData[0]->globalBookingInfo instanceof GlobalBookingInfo)) { |
|
108 | + if (!($this->roomStayData[0]->globalBookingInfo instanceof GlobalBookingInfo)) { |
|
109 | 109 | $this->roomStayData[0]->globalBookingInfo = new GlobalBookingInfo(); |
110 | 110 | } |
111 | 111 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $params->paymentDetails->ccExpiry |
131 | 131 | ); |
132 | 132 | } else { |
133 | - throw new InvalidArgumentException('Hotel Offer Confirm Form of Payment ' . $params->formOfPayment . ' is not yet supported'); |
|
133 | + throw new InvalidArgumentException('Hotel Offer Confirm Form of Payment '.$params->formOfPayment.' is not yet supported'); |
|
134 | 134 | } |
135 | 135 | } |
136 | 136 | } |
@@ -96,7 +96,7 @@ |
||
96 | 96 | OverrideDate::OPT_ALTERNATE_DATE_VALIDATION, |
97 | 97 | $options->alternateDateValidation |
98 | 98 | ); |
99 | - } elseif($options->overridePastDateTst === true) { |
|
99 | + } elseif ($options->overridePastDateTst === true) { |
|
100 | 100 | $this->overrideDate = new OverrideDate(OverrideDate::OPT_OVERRIDE_PAST_DATE_TST); |
101 | 101 | } |
102 | 102 |
@@ -103,12 +103,10 @@ |
||
103 | 103 | |
104 | 104 | if (!is_null($params->restrictCountry) || !is_null($params->restrictState)) { |
105 | 105 | $params->restrictState = (!is_null($params->restrictState)) ? |
106 | - strtoupper($params->restrictState) : |
|
107 | - $params->restrictState; |
|
106 | + strtoupper($params->restrictState) : $params->restrictState; |
|
108 | 107 | |
109 | 108 | $params->restrictCountry = (!is_null($params->restrictCountry)) ? |
110 | - strtoupper($params->restrictCountry) : |
|
111 | - $params->restrictCountry; |
|
109 | + strtoupper($params->restrictCountry) : $params->restrictCountry; |
|
112 | 110 | |
113 | 111 | $this->countryStateRestriction = new CountryStateRestriction( |
114 | 112 | $params->restrictCountry, |
@@ -95,12 +95,12 @@ discard block |
||
95 | 95 | { |
96 | 96 | $this->checkMessageIsInWsdl($messageName); |
97 | 97 | |
98 | - $methodName = 'create' . str_replace("_", "", $messageName); |
|
98 | + $methodName = 'create'.str_replace("_", "", $messageName); |
|
99 | 99 | |
100 | 100 | if (method_exists($this, $methodName)) { |
101 | 101 | return $this->$methodName($params); |
102 | 102 | } else { |
103 | - throw new \RuntimeException('Message ' . $methodName . ' is not implemented in ' . __CLASS__); |
|
103 | + throw new \RuntimeException('Message '.$methodName.' is not implemented in '.__CLASS__); |
|
104 | 104 | } |
105 | 105 | } |
106 | 106 | |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | protected function checkMessageIsInWsdl($messageName) |
428 | 428 | { |
429 | 429 | if (!array_key_exists($messageName, $this->messagesAndVersions)) { |
430 | - throw new InvalidMessageException('Message "' . $messageName . '" is not in WDSL'); |
|
430 | + throw new InvalidMessageException('Message "'.$messageName.'" is not in WDSL'); |
|
431 | 431 | } |
432 | 432 | } |
433 | 433 |
@@ -59,6 +59,6 @@ |
||
59 | 59 | */ |
60 | 60 | protected static function makeReceivedFrom($original, $libIdentifier) |
61 | 61 | { |
62 | - return $original . " " . $libIdentifier; |
|
62 | + return $original." ".$libIdentifier; |
|
63 | 63 | } |
64 | 64 | } |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function __doRequest($request, $location, $action, $version, $oneWay = null) |
75 | 75 | { |
76 | - if (!extension_loaded ('xsl')) { |
|
76 | + if (!extension_loaded('xsl')) { |
|
77 | 77 | throw new Exception('PHP XSL extension is not enabled.'); |
78 | 78 | } |
79 | 79 | |
80 | - $newRequest = $this->transformIncomingRequest( $request); |
|
80 | + $newRequest = $this->transformIncomingRequest($request); |
|
81 | 81 | |
82 | 82 | return parent::__doRequest($newRequest, $location, $action, $version, $oneWay); |
83 | 83 | } |
@@ -91,9 +91,9 @@ discard block |
||
91 | 91 | { |
92 | 92 | $newRequest = null; |
93 | 93 | |
94 | - $xsltFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . self::REMOVE_EMPTY_XSLT_LOCATION; |
|
94 | + $xsltFile = dirname(__FILE__).DIRECTORY_SEPARATOR.self::REMOVE_EMPTY_XSLT_LOCATION; |
|
95 | 95 | if (!is_readable($xsltFile)) { |
96 | - throw new Exception('XSLT file "' . $xsltFile . '" is not readable!'); |
|
96 | + throw new Exception('XSLT file "'.$xsltFile.'" is not readable!'); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | if ($transform === false) { |
109 | 109 | $this->logger->log( |
110 | 110 | Log\LogLevel::ERROR, |
111 | - __METHOD__ . "__doRequest(): XSLTProcessor::transformToXml " |
|
111 | + __METHOD__."__doRequest(): XSLTProcessor::transformToXml " |
|
112 | 112 | . "returned FALSE: could not perform transformation!!" |
113 | 113 | ); |
114 | 114 | $newRequest = $request; |