src/Carbon/CarbonPeriod.php
protected function createFilterTuple(array $parameters)
    {
        $method = array_shift($parameters);

        if (!$this->isCarbonPredicateMethod($method)) {
            return [$method, array_shift($parameters)];
        }

        return [function ($date) use ($method, $parameters) {
            return call_user_func_array([$date, $method], $parameters);
        }, $method];
    }
protected function createFilterTuple(array $parameters)
    {
        $method = array_shift($parameters);

        if (!$this->isCarbonPredicateMethod($method)) {
            return [$method, array_shift($parameters)];
        }

        return [function ($date) use ($method, $parameters) {
            return call_user_func_array([$date, $method], $parameters);
        }, $method];
    }
protected function createFilterTuple ( array $ parameters ) { $ method = array_shift ( $ parameters ) ; if ( ! $ this -> isCarbonPredicateMethod ( $ method ) ) { return [ $ method , array_shift ( $ parameters ) ] ; } return [ function ( $ date ) use ( $ method , $ parameters ) { return call_user_func_array ( [ $ date , $ method ] , $ parameters ) ; } , $ method ] ; }
Create a filter tuple from raw parameters.

Will create an automatic filter callback for one of Carbon's is* methods.

@param array $parameters

@return array
Create a filter tuple from raw parameters .