src/Utils/Debug_Hook.php
private function generate_hook_info($type, $reflector, $args)
    {
        $output = [
            'type' => $type,
            'file_name' => $reflector->getFileName(),
            'line_number' => $reflector->getStartLine(),
            'class' => null,
            'name' => null,
            'is_internal' => false,
        ];

        if ($reflector instanceof ReflectionMethod) {
            $output['class'] = $reflector->getDeclaringClass()->getName();
        }

        if ('Closure' !== $type) {
            $output['name'] = $reflector->getName();
            $output['is_internal'] = $reflector->isInternal();
        }

        $output['accepted_args'] = $args;

        return $output;
    }
private function generate_hook_info($type, $reflector, $args)
    {
        $output = [
            'type' => $type,
            'file_name' => $reflector->getFileName(),
            'line_number' => $reflector->getStartLine(),
            'class' => null,
            'name' => null,
            'is_internal' => false,
        ];

        if ($reflector instanceof ReflectionMethod) {
            $output['class'] = $reflector->getDeclaringClass()->getName();
        }

        if ('Closure' !== $type) {
            $output['name'] = $reflector->getName();
            $output['is_internal'] = $reflector->isInternal();
        }

        $output['accepted_args'] = $args;

        return $output;
    }
private function generate_hook_info ( $ type , $ reflector , $ args ) { $ output = [ 'type' => $ type , 'file_name' => $ reflector -> getFileName ( ) , 'line_number' => $ reflector -> getStartLine ( ) , 'class' => null , 'name' => null , 'is_internal' => false , ] ; if ( $ reflector instanceof ReflectionMethod ) { $ output [ 'class' ] = $ reflector -> getDeclaringClass ( ) -> getName ( ) ; } if ( 'Closure' !== $ type ) { $ output [ 'name' ] = $ reflector -> getName ( ) ; $ output [ 'is_internal' ] = $ reflector -> isInternal ( ) ; } $ output [ 'accepted_args' ] = $ args ; return $ output ; }
Generate output for a hook callback.

@since  1.0.0

@param  string $type      The callback type.
@param  object $reflector The reflection object handling this callback.
@param  int    $args      The number of args defined when this callback was added.
@return array
Generate output for a hook callback .