Code Duplication    Length = 4-4 lines in 2 locations

src/Fractal.php 2 locations

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