Skip to content

Commit

Permalink
PSR-2 compatibility fixes even more
Browse files Browse the repository at this point in the history
  • Loading branch information
DerMika committed Sep 14, 2016
1 parent 3c6bfbf commit 2e7c46e
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@
*/
class MessageVersionUnsupportedException extends Client\Exception
{

}
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@
*/
class UnsupportedOptionException extends Client\Exception
{

}
2 changes: 1 addition & 1 deletion src/Amadeus/Client/RequestOptions/QueueListOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ class QueueListOptions extends Base
* @var Queue
*/
public $queue;
}
}
1 change: 0 additions & 1 deletion src/Amadeus/Client/Session/Handler/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ public function sendMessage($messageName, Client\Struct\BaseWsMessage $messageBo
$this->logRequestAndResponse($messageName);

$this->handlePostMessage($messageName, $this->getLastResponse($messageName), $messageOptions, $result);

} catch (\SoapFault $ex) {
$this->log(
LogLevel::ERROR,
Expand Down
1 change: 0 additions & 1 deletion src/Amadeus/Client/Session/Handler/SoapHeader4.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ protected function handlePostMessage($messageName, $lastResponse, $messageOption
$this->isAuthenticated = (!empty($this->sessionData['sessionId']) &&
!empty($this->sessionData['sequenceNumber']) &&
!empty($this->sessionData['securityToken']));

} else {
$this->isAuthenticated = false;
}
Expand Down
1 change: 0 additions & 1 deletion src/Amadeus/Client/Struct/Pnr/AddMultiElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ protected function addInfant($travellerInfo, $traveller)
$travellerInfo = $this->makePassengerIfNeeded($travellerInfo);
$travellerInfo->passengerData[0]->travellerInformation->passenger[0]->infantIndicator =
Passenger::INF_NOINFO;

} elseif ($traveller->infant instanceof Traveller) {
if (empty($traveller->infant->lastName)) {
$travellerInfo = $this->makePassengerIfNeeded($travellerInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

/**
* AirAuxItinerary
*
*
* @package Amadeus\Client\Struct\Pnr\AddMultiElements
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Passenger
/*
* self::PASST_*
*
* Passenger Types:
* Passenger Types:
* 766 Infant without seat
* 767 Infant with seat
* A00 Companion
Expand Down
6 changes: 3 additions & 3 deletions src/Amadeus/Client/Struct/Pnr/Retrieve.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Retrieve extends BaseWsMessage
{
/**
* Definition for retrieval type: by record locator
*
*
* see Amadeus Core Webservices documentation
* [Retrieval type, coded codesets (Ref: 109P 1A 00.1.1)]
* @var int
Expand All @@ -52,14 +52,14 @@ class Retrieve extends BaseWsMessage

/**
* Construct PNR_Retrieve message
*
*
* @param int $retrievalType
* @param string|null $recordLocator (OPTIONAL)
*/
public function __construct($retrievalType = self::RETR_TYPE_BY_RECLOC, $recordLocator = null)
{
$this->retrievalFacts = new Retrieve\RetrievalFacts(
$retrievalType,
$retrievalType,
$recordLocator
);
}
Expand Down
1 change: 0 additions & 1 deletion src/Amadeus/Client/Struct/PriceXplorer/ExtremeSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ protected function loadStayDuration($stayDuration, $flexibility)
protected function loadCheapestQualifiers($cheapestNonStop, $cheapestOverall)
{
if ($cheapestNonStop || $cheapestOverall) {

$tmpSelDet = new SelectionDetailsGroup();

$tmpSelDet->selectionDetailsInfo = new SelectionDetailsInfo();
Expand Down

0 comments on commit 2e7c46e

Please sign in to comment.