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
235
            return $this->parseIncludes($includeName);
236
        }
237
238
        if (starts_with($name, ['exclude'])) {
@@ 238-241 (lines=4) @@
235
            return $this->parseIncludes($includeName);
236
        }
237
238
        if (starts_with($name, ['exclude'])) {
239
            $excludeName = lcfirst(substr($name, strlen('exclude')));
240
241
            return $this->parseExcludes($excludeName);
242
        }
243
244
        trigger_error('Call to undefined method '.__CLASS__.'::'.$name.'()', E_USER_ERROR);