src/Fractal.php
protected function normalizeIncludesOrExcludes($includesOrExcludes = '')
    {
        if (! is_string($includesOrExcludes)) {
            return $includesOrExcludes;
        }

        return array_map(function ($value) {
            return trim($value);
        }, explode(',', $includesOrExcludes));
    }
protected function normalizeIncludesOrExcludes($includesOrExcludes = '')
    {
        if (! is_string($includesOrExcludes)) {
            return $includesOrExcludes;
        }

        return array_map(function ($value) {
            return trim($value);
        }, explode(',', $includesOrExcludes));
    }
protected function normalizeIncludesOrExcludes ( $ includesOrExcludes = '' ) { if ( ! is_string ( $ includesOrExcludes ) ) { return $ includesOrExcludes ; } return array_map ( function ( $ value ) { return trim ( $ value ) ; } , explode ( ',' , $ includesOrExcludes ) ) ; }
Normalize the includes an excludes.

@param array|string $includesOrExcludes

@return array|string
Normalize the includes an excludes .