Skip to content

Commit

Permalink
modify user and password check in api arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaroca committed Aug 2, 2019
1 parent 4c158ad commit 06bd046
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Api/Seur.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public function dispatches(array $data)
$data['in9'],
$data['in10'],
$data['in11'],
$data['in12'] ?: getenv('SEUR_USER'),
$data['in13'] ?: getenv('SEUR_PASSWORD'),
$data['in12'] ?? getenv('SEUR_USER'),
$data['in13'] ?? getenv('SEUR_PASSWORD'),
$data['in14']
);

Expand All @@ -56,8 +56,8 @@ public function dispatch(array $data): Dispatch
$detailRequest = new DetailRequest(
$data['in0'],
$data['in1'],
$data['in2'] ?: getenv('SEUR_USER'),
$data['in3'] ?: getenv('SEUR_PASSWORD')
$data['in2'] ?? getenv('SEUR_USER'),
$data['in3'] ?? getenv('SEUR_PASSWORD')
);

$service = (new DetailService($endpoint))->make($detailRequest);
Expand Down

0 comments on commit 06bd046

Please sign in to comment.