@@ 124-131 (lines=8) @@ | ||
121 | * |
|
122 | * @return string |
|
123 | */ |
|
124 | private function removeLastSlash($string) |
|
125 | { |
|
126 | if ('/' === substr($string, strlen($string) - 1)) { |
|
127 | $string = substr($string, 0, strlen($string) - 1); |
|
128 | } |
|
129 | ||
130 | return $string; |
|
131 | } |
|
132 | } |
|
133 |
@@ 90-97 (lines=8) @@ | ||
87 | * |
|
88 | * @return string |
|
89 | */ |
|
90 | private function removeLastSlash($string) |
|
91 | { |
|
92 | if ('/' === substr($string, strlen($string) - 1)) { |
|
93 | $string = substr($string, 0, strlen($string) - 1); |
|
94 | } |
|
95 | ||
96 | return $string; |
|
97 | } |
|
98 | } |
|
99 |