src/Controller.php
final private function __setBladeData()
    {
        // Get the data
        $debuggerData = $this->data;

        // Loop through each data method
        foreach ($this->dataMethods as $dataMethod) {
            // Convert the key to snake case to find in $debuggerData
            $key = Utils::convertToSnakeCase($dataMethod->name);

            // Save the returned value from the above key
            $returned = $debuggerData[$key];

            // Recreate the key with the method included
            $debuggerData[$key] = (object) [
                'method' => $dataMethod,
                'returned' => $returned
            ];
        }

        // Create the final debugger object
        $debugger = (object) [
            'class' => $this->class->getShortName(),
            'tree' => $this->tree,
            'methods' => $this->staticMethods,
            'data' => $debuggerData
        ];

        // Include current debugger data in existing debugger array
        $this->incomingData['__blade'][] =  $debugger;

        // Set the updated array to $this->data for @debug use
        $this->data['__blade'] = $this->incomingData['__blade'];
    }
final private function __setBladeData()
    {
        // Get the data
        $debuggerData = $this->data;

        // Loop through each data method
        foreach ($this->dataMethods as $dataMethod) {
            // Convert the key to snake case to find in $debuggerData
            $key = Utils::convertToSnakeCase($dataMethod->name);

            // Save the returned value from the above key
            $returned = $debuggerData[$key];

            // Recreate the key with the method included
            $debuggerData[$key] = (object) [
                'method' => $dataMethod,
                'returned' => $returned
            ];
        }

        // Create the final debugger object
        $debugger = (object) [
            'class' => $this->class->getShortName(),
            'tree' => $this->tree,
            'methods' => $this->staticMethods,
            'data' => $debuggerData
        ];

        // Include current debugger data in existing debugger array
        $this->incomingData['__blade'][] =  $debugger;

        // Set the updated array to $this->data for @debug use
        $this->data['__blade'] = $this->incomingData['__blade'];
    }
final private function __setBladeData ( ) { // Get the data $ debuggerData = $ this -> data ; // Loop through each data method foreach ( $ this -> dataMethods as $ dataMethod ) { // Convert the key to snake case to find in $debuggerData $ key = Utils :: convertToSnakeCase ( $ dataMethod -> name ) ; // Save the returned value from the above key $ returned = $ debuggerData [ $ key ] ; // Recreate the key with the method included $ debuggerData [ $ key ] = ( object ) [ 'method' => $ dataMethod , 'returned' => $ returned ] ; } // Create the final debugger object $ debugger = ( object ) [ 'class' => $ this -> class -> getShortName ( ) , 'tree' => $ this -> tree , 'methods' => $ this -> staticMethods , 'data' => $ debuggerData ] ; // Include current debugger data in existing debugger array $ this -> incomingData [ '__blade' ] [ ] = $ debugger ; // Set the updated array to $this->data for @debug use $ this -> data [ '__blade' ] = $ this -> incomingData [ '__blade' ] ; }
Set Blade Data

Update $this->data with __blade
Set Blade Data