Code Duplication    Length = 4-4 lines in 2 locations

src/Fractal.php 2 locations

@@ 232-235 (lines=4) @@
229
     */
230
    public function __call($name, array $arguments)
231
    {
232
        if (starts_with($name, ['include'])) {
233
            $includeName = lcfirst(substr($name, strlen('include')));
234
            return $this->parseIncludes($includeName);
235
        }
236
237
        if (starts_with($name, ['exclude'])) {
238
            $excludeName = lcfirst(substr($name, strlen('exclude')));
@@ 237-240 (lines=4) @@
234
            return $this->parseIncludes($includeName);
235
        }
236
237
        if (starts_with($name, ['exclude'])) {
238
            $excludeName = lcfirst(substr($name, strlen('exclude')));
239
            return $this->parseExcludes($excludeName);
240
        }
241
242
        trigger_error('Call to undefined method '.__CLASS__.'::'.$name.'()', E_USER_ERROR);
243
    }