Skip to content

Commit eaf9409

Browse files
Pieter ColpaertStyleCIBot
Pieter Colpaert
authored andcommitted
Applied fixes from StyleCI
1 parent dd2ff47 commit eaf9409

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

app/Http/Controllers/ClassicRedirectController.php

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ public function redirectBoardSingleStation($station_provided_string)
3939
} else {
4040
return 'Liveboard for the following station: '.$station_provided_string.' was not found.';
4141
}
42-
43-
return;
4442
}
4543

4644
/**

app/Http/routes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'uses' => 'StationController@liveboard',
2222
]);
2323

24-
Route::get('/stations/NMBS/{id}/departures', 'StationController@liveboard');// should list the departures
24+
Route::get('/stations/NMBS/{id}/departures', 'StationController@liveboard'); // should list the departures
2525
Route::get('/stations/NMBS/{id}/departures/{trainHash}', 'StationController@specificTrain');
2626

2727
Route::get('/stations/nmbs', 'StationController@index'); // should list stations

app/hyperRail/FormatConvertor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Class iRailFormatConverter
99
* Converts the old JSON to objects.
1010
*/
11-
class FormatConverter
11+
class FormatConvertor
1212
{
1313
/**
1414
* Converts a list of Liveboard items to an array.

app/hyperRail/StationString.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public static function convertToId($string)
4848
// If there is no station id found for this string...
4949
// we return null. Cool thing about this method is that our strings
5050
// no not need to be complete. 'Pieters' will take me to 'Ghent-Sint-Pieters'!
51-
return;
5251
}
52+
5353
/**
5454
* Converts a station id to a station string. If the string cannot be converted,
5555
* null is returned.
@@ -87,7 +87,5 @@ public static function convertToString($string)
8787
return $station;
8888
}
8989
}
90-
91-
return;
9290
}
9391
}

0 commit comments

Comments
 (0)