Code Duplication    Length = 8-8 lines in 3 locations

src/BusClient.php 3 locations

@@ 57-64 (lines=8) @@
54
     * @return \stdClass
55
     * @throws \RuntimeException
56
     */
57
    public function getListLines(array $lines, DateTime $date)
58
    {
59
        $params = [
60
            'Lines' => join('|', $lines),
61
            'SelectDate' => $date->format('d/m/Y'),
62
        ];
63
        return $this->callBusService('GetListLines.php', $params);
64
    }
65
66
    /**
67
     * Return details about all line groups.
@@ 85-92 (lines=8) @@
82
     * @return \stdClass
83
     * @throws \RuntimeException
84
     */
85
    public function getTimesLines(array $lines, DateTime $date)
86
    {
87
        $params = [
88
            'Lines' => join('|', $lines),
89
            'SelectDate' => $date->format('d/m/Y'),
90
        ];
91
        return $this->callBusService('GetTimesLines.php', $params);
92
    }
93
94
    /**
95
     * Return timetable details of one or more lines.
@@ 102-109 (lines=8) @@
99
     * @return \stdClass
100
     * @throws \RuntimeException
101
     */
102
    public function getTimeTableLines(array $lines, DateTime $date)
103
    {
104
        $params = [
105
            'Lines' => join('|', $lines),
106
            'SelectDate' => $date->format('d/m/Y'),
107
        ];
108
        return $this->callBusService('GetTimeTableLines.php', $params);
109
    }
110
111
    /**
112
     * Return details of one or more bus stops including name, served lines