src/Rocketeer/Services/Builders/Modules/TasksBuilder.php
public function isCallable($task)
    {
        // Check for container bindings
        if (is_array($task)) {
            return count($task) === 2 && ($this->container->has($task[0]) || is_callable($task));
        }

        return is_callable($task) && !$task instanceof Closure && !$task instanceof SerializableClosure;
    }
public function isCallable($task)
    {
        // Check for container bindings
        if (is_array($task)) {
            return count($task) === 2 && ($this->container->has($task[0]) || is_callable($task));
        }

        return is_callable($task) && !$task instanceof Closure && !$task instanceof SerializableClosure;
    }
public function isCallable ( $ task ) { // Check for container bindings if ( is_array ( $ task ) ) { return count ( $ task ) === 2 && ( $ this -> container -> has ( $ task [ 0 ] ) || is_callable ( $ task ) ) ; } return is_callable ( $ task ) && ! $ task instanceof Closure && ! $ task instanceof SerializableClosure ; }
Check if a task is a callable.

@param array|string|Closure $task

@return bool
Check if a task is a callable .