src/Plugin/Pointcut.php
public static function before($method, $self, &$args)
    {
        if (!Suite::registered()) {
            return false;
        }

        list($class, $name) = explode('::', $method);

        $lsb = is_object($self) ? get_class($self) : $self;

        if (!Suite::registered($lsb) && !Suite::registered($class)) {
            return false;
        }

        if ($name === '__call' || $name === '__callStatic') {
            $name = array_shift($args);
            $args = array_shift($args);
        }

        return static::_stubbedMethod($lsb, $self, $class, $name, $args);
    }
public static function before($method, $self, &$args)
    {
        if (!Suite::registered()) {
            return false;
        }

        list($class, $name) = explode('::', $method);

        $lsb = is_object($self) ? get_class($self) : $self;

        if (!Suite::registered($lsb) && !Suite::registered($class)) {
            return false;
        }

        if ($name === '__call' || $name === '__callStatic') {
            $name = array_shift($args);
            $args = array_shift($args);
        }

        return static::_stubbedMethod($lsb, $self, $class, $name, $args);
    }
public static function before ( $ method , $ self , & $ args ) { if ( ! Suite :: registered ( ) ) { return false ; } list ( $ class , $ name ) = explode ( '::' , $ method ) ; $ lsb = is_object ( $ self ) ? get_class ( $ self ) : $ self ; if ( ! Suite :: registered ( $ lsb ) && ! Suite :: registered ( $ class ) ) { return false ; } if ( $ name === '__call' || $ name === '__callStatic' ) { $ name = array_shift ( $ args ) ; $ args = array_shift ( $ args ) ; } return static :: _stubbedMethod ( $ lsb , $ self , $ class , $ name , $ args ) ; }
Point cut called before method execution.

@param string   $method The method name
@param Pointcut $self   The Pointcut instance
@param array    $args   The arguments

@return bool If `true` is returned, the normal execution of the method is aborted.
Point cut called before method execution .