Code Duplication    Length = 8-8 lines in 3 locations

src/BusClient.php 3 locations

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