Skip to content

Commit

Permalink
Изменил код станции в примерах
Browse files Browse the repository at this point in the history
  • Loading branch information
visavi committed Jun 9, 2017
1 parent 60d16c1 commit 923dfa0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
5 changes: 2 additions & 3 deletions examples/train_carriages.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@
'tfl' => 3,
'checkSeats' => 1,
'code0' => '2004000',
'code1' => '2060600',
'code1' => '2000000',
'dt0' => $date0->format('d.m.Y'),
];

$route = $api->trainRoutes($params);

if ($route) {
$params = [
'dir' => 0,
'code0' => '2004000',
'code1' => '2060600',
'code1' => '2000000',
'dt0' => $date0->format('d.m.Y'),
'time0' => $route[0]['trTime0'],
'tnum0' => $route[0]['number'],
Expand Down
2 changes: 1 addition & 1 deletion examples/train_routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'tfl' => 3,
'checkSeats' => 1,
'code0' => '2004000',
'code1' => '2060600',
'code1' => '2000000',
'dt0' => $date0->format('d.m.Y'),
];

Expand Down
2 changes: 1 addition & 1 deletion examples/train_routes_return.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'tfl' => 3,
'checkSeats' => 1,
'code0' => '2004000',
'code1' => '2060600',
'code1' => '2000000',
'dt0' => $date0->format('d.m.Y'),
'dt1' => $date1->format('d.m.Y'),
];
Expand Down
1 change: 0 additions & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ public function stationCode(array $params)
}

}

return $stations;
}
}
8 changes: 4 additions & 4 deletions tests/TrainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function testTrainRoutes()
'tfl' => 3,
'checkSeats' => 1,
'code0' => '2004000',
'code1' => '2060600',
'code1' => '2000000',
'dt0' => $this->date0->format('d.m.Y'),
];

Expand All @@ -42,7 +42,7 @@ public function testTrainRoutesReturn()
'tfl' => 3,
'checkSeats' => 1,
'code0' => '2004000',
'code1' => '2060600',
'code1' => '2000000',
'dt0' => $this->date0->format('d.m.Y'),
'dt1' => $this->date1->format('d.m.Y'),
];
Expand All @@ -61,7 +61,7 @@ public function testTrainCarriages()
'tfl' => 3,
'checkSeats' => 1,
'code0' => '2004000',
'code1' => '2060600',
'code1' => '2000000',
'dt0' => $this->date0->format('d.m.Y'),
];

Expand All @@ -71,7 +71,7 @@ public function testTrainCarriages()
$params = [
'dir' => 0,
'code0' => '2004000',
'code1' => '2060600',
'code1' => '2000000',
'dt0' => $this->date0->format('d.m.Y'),
'time0' => $route[0]['trTime0'],
'tnum0' => $route[0]['number'],
Expand Down

0 comments on commit 923dfa0

Please sign in to comment.