Completed
Push — master ( 7519e7...9ee5fa )
by Risan Bagja
02:34
created
src/Collections/DepartureCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function type($type)
17 17
     {
18
-        return $this->filter(function ($departure) use ($type) {
18
+        return $this->filter(function($departure) use ($type) {
19 19
             return $departure->type() === $type;
20 20
         });
21 21
     }
Please login to merge, or discard this patch.
src/Mappers/DepartureMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
      */
168 168
     private function createDepartures(array $items, $type, $subType)
169 169
     {
170
-        return array_map(function ($departure) use ($type, $subType) {
170
+        return array_map(function($departure) use ($type, $subType) {
171 171
             return new Departure(
172 172
                 $departure['LineNumber'],
173 173
                 $type,
Please login to merge, or discard this patch.
src/Sl.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Sl;
4 4
 
5
-use Sl\Mappers\StationMapper;
6
-use Sl\Mappers\DepartureMapper;
7
-use Sl\Collections\StationCollection;
8 5
 use Sl\Collections\DepartureCollection;
9
-use Sl\Contracts\PublicTransportSystem;
6
+use Sl\Collections\StationCollection;
10 7
 use Sl\Contracts\Foundation\Station as StationContract;
8
+use Sl\Contracts\PublicTransportSystem;
9
+use Sl\Mappers\DepartureMapper;
10
+use Sl\Mappers\StationMapper;
11 11
 
12 12
 class Sl implements PublicTransportSystem
13 13
 {
Please login to merge, or discard this patch.