diff --git a/examples/train_carriages.php b/examples/train_carriages.php index 6263806..ff96672 100644 --- a/examples/train_carriages.php +++ b/examples/train_carriages.php @@ -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'], diff --git a/examples/train_routes.php b/examples/train_routes.php index 3055c14..cc63975 100644 --- a/examples/train_routes.php +++ b/examples/train_routes.php @@ -11,7 +11,7 @@ 'tfl' => 3, 'checkSeats' => 1, 'code0' => '2004000', - 'code1' => '2060600', + 'code1' => '2000000', 'dt0' => $date0->format('d.m.Y'), ]; diff --git a/examples/train_routes_return.php b/examples/train_routes_return.php index ce20fe9..c3005ac 100644 --- a/examples/train_routes_return.php +++ b/examples/train_routes_return.php @@ -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'), ]; diff --git a/src/Api.php b/src/Api.php index 6fd4edb..8cf884b 100644 --- a/src/Api.php +++ b/src/Api.php @@ -100,7 +100,6 @@ public function stationCode(array $params) } } - return $stations; } } diff --git a/tests/TrainTest.php b/tests/TrainTest.php index 522a835..3fd7d7f 100644 --- a/tests/TrainTest.php +++ b/tests/TrainTest.php @@ -24,7 +24,7 @@ public function testTrainRoutes() 'tfl' => 3, 'checkSeats' => 1, 'code0' => '2004000', - 'code1' => '2060600', + 'code1' => '2000000', 'dt0' => $this->date0->format('d.m.Y'), ]; @@ -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'), ]; @@ -61,7 +61,7 @@ public function testTrainCarriages() 'tfl' => 3, 'checkSeats' => 1, 'code0' => '2004000', - 'code1' => '2060600', + 'code1' => '2000000', 'dt0' => $this->date0->format('d.m.Y'), ]; @@ -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'],