Code Duplication    Length = 11-11 lines in 2 locations

src/Api.php 2 locations

@@ 153-163 (lines=11) @@
150
     *
151
     * @throws \Github\Exception\InvalidArgumentException
152
     */
153
    final public function exists($path)
154
    {
155
        $path = $this->normalizePathName($path);
156
157
        return $this->getContentApi()->exists(
158
            $this->settings->getVendor(),
159
            $this->settings->getPackage(),
160
            $path,
161
            $this->settings->getReference()
162
        );
163
    }
164
165
    /**
166
     * @param $path
@@ 173-183 (lines=11) @@
170
     *
171
     * @throws \Github\Exception\ErrorException
172
     */
173
    final public function getFileContents($path)
174
    {
175
        $path = $this->normalizePathName($path);
176
177
        return $this->getContentApi()->download(
178
            $this->settings->getVendor(),
179
            $this->settings->getPackage(),
180
            $path,
181
            $this->settings->getReference()
182
        );
183
    }
184
185
    /**
186
     * @param string $path