Skip to content

Commit

Permalink
Scrutinizr reported issues fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerMika committed Sep 16, 2016
1 parent cb98b75 commit 2e1421c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/Amadeus/Client/ResponseHandler/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -886,10 +886,9 @@ protected function loadDomDocument($response)

/**
* @param string $qualifier
* @param string|null $amadeusCodeList
* @return string Result::STATUS_*
*/
protected function makeStatusFromErrorQualifier($qualifier, $amadeusCodeList = null)
protected function makeStatusFromErrorQualifier($qualifier)
{
$status = null;

Expand Down
5 changes: 2 additions & 3 deletions src/Amadeus/Client/Session/Handler/SoapHeader4.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ protected function createSoapHeaders($sessionData, $params, $messageName, $messa
//We are authenticated and stateful: provide session header to continue or terminate session
$statusCode =
(isset($messageOptions['endSession']) && $messageOptions['endSession'] === true) ?
"End" :
"InSeries";
"End" : "InSeries";

array_push(
$headersToSet,
Expand Down Expand Up @@ -344,7 +343,7 @@ protected function getActionFromWsdl($wsdlFilePath, $messageName)
*/
protected function generateGuid()
{
mt_srand((double)microtime()*10000);
mt_srand((double) microtime() * 10000);
$charId = strtoupper(md5(uniqid(rand(), true)));
$hyphen = chr(45); // "-"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AirlineOrFlightOption
/**
* AirlineOrFlightOption constructor.
* @param string[] $airlines
* @param string $flightNumber
* @param string|null $flightNumber
* @param int|null $indicator
*/
public function __construct($airlines, $flightNumber = null, $indicator = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FlightIdentification
* FlightIdentification constructor.
*
* @param string $airline Airline code
* @param string $flightNumber
* @param string|null $flightNumber
*/
public function __construct($airline, $flightNumber = null)
{
Expand Down

0 comments on commit 2e1421c

Please sign in to comment.