Code Duplication    Length = 4-4 lines in 2 locations

src/Fractal.php 2 locations

@@ 217-220 (lines=4) @@
214
     */
215
    public function __call($name, array $arguments)
216
    {
217
        if (starts_with($name, ['include'])) {
218
            $includeName = lcfirst(substr($name, strlen('include')));
219
            return $this->parseIncludes($includeName);
220
        }
221
222
        if (starts_with($name, ['exclude'])) {
223
            $excludeName = lcfirst(substr($name, strlen('exclude')));
@@ 222-225 (lines=4) @@
219
            return $this->parseIncludes($includeName);
220
        }
221
222
        if (starts_with($name, ['exclude'])) {
223
            $excludeName = lcfirst(substr($name, strlen('exclude')));
224
            return $this->parseExcludes($excludeName);
225
        }
226
227
        trigger_error('Call to undefined method '.__CLASS__.'::'.$name.'()', E_USER_ERROR);
228
    }