src/Analyse/Callback/Analyse/BacktraceStep.php
protected function lineToOutput()
    {
        $stepData = $this->parameters[static::PARAM_DATA];
        $output = '';
        $source = '';
        if (isset($stepData[static::TRACE_LINE]) === true) {
            // Adding the line info to the output
            $output .= $this->pool->render->renderSingleChild(
                $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Model')
                    ->setData($stepData[static::TRACE_LINE])
                    ->setName('Line no.')
                    ->setNormal($stepData[static::TRACE_LINE])
                    ->setType(static::TYPE_INTEGER)
            );

            // Trying the read the sourcecode where it was called.
            $lineNo = $stepData[static::TRACE_LINE] - 1;
            $source = trim(
                $this->pool->fileService->readSourcecode(
                    $stepData[static::TRACE_FILE],
                    $lineNo,
                    $lineNo -5,
                    $lineNo +5
                )
            );
        }

        // Check if we could load the code.
        if (empty($source) === true) {
            $source = $this->pool->messages->getHelp('noSourceAvailable');
        }

        // Add the prettified code to the analysis.
        return $output . $this->pool->render->renderSingleChild(
            $this->dispatchEventWithModel(
                __FUNCTION__ . static::EVENT_MARKER_END,
                $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Model')
                    ->setData($source)
                    ->setName('Sourcecode')
                    ->setNormal(static::UNKNOWN_VALUE)
                    ->setHasExtra(true)
                    ->setType(static::TYPE_PHP)
            )
        );
    }
protected function lineToOutput()
    {
        $stepData = $this->parameters[static::PARAM_DATA];
        $output = '';
        $source = '';
        if (isset($stepData[static::TRACE_LINE]) === true) {
            // Adding the line info to the output
            $output .= $this->pool->render->renderSingleChild(
                $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Model')
                    ->setData($stepData[static::TRACE_LINE])
                    ->setName('Line no.')
                    ->setNormal($stepData[static::TRACE_LINE])
                    ->setType(static::TYPE_INTEGER)
            );

            // Trying the read the sourcecode where it was called.
            $lineNo = $stepData[static::TRACE_LINE] - 1;
            $source = trim(
                $this->pool->fileService->readSourcecode(
                    $stepData[static::TRACE_FILE],
                    $lineNo,
                    $lineNo -5,
                    $lineNo +5
                )
            );
        }

        // Check if we could load the code.
        if (empty($source) === true) {
            $source = $this->pool->messages->getHelp('noSourceAvailable');
        }

        // Add the prettified code to the analysis.
        return $output . $this->pool->render->renderSingleChild(
            $this->dispatchEventWithModel(
                __FUNCTION__ . static::EVENT_MARKER_END,
                $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Model')
                    ->setData($source)
                    ->setName('Sourcecode')
                    ->setNormal(static::UNKNOWN_VALUE)
                    ->setHasExtra(true)
                    ->setType(static::TYPE_PHP)
            )
        );
    }
protected function lineToOutput ( ) { $ stepData = $ this -> parameters [ static :: PARAM_DATA ] ; $ output = '' ; $ source = '' ; if ( isset ( $ stepData [ static :: TRACE_LINE ] ) === true ) { // Adding the line info to the output $ output .= $ this -> pool -> render -> renderSingleChild ( $ this -> pool -> createClass ( 'Brainworxx\\Krexx\\Analyse\\Model' ) -> setData ( $ stepData [ static :: TRACE_LINE ] ) -> setName ( 'Line no.' ) -> setNormal ( $ stepData [ static :: TRACE_LINE ] ) -> setType ( static :: TYPE_INTEGER ) ) ; // Trying the read the sourcecode where it was called. $ lineNo = $ stepData [ static :: TRACE_LINE ] - 1 ; $ source = trim ( $ this -> pool -> fileService -> readSourcecode ( $ stepData [ static :: TRACE_FILE ] , $ lineNo , $ lineNo - 5 , $ lineNo + 5 ) ) ; } // Check if we could load the code. if ( empty ( $ source ) === true ) { $ source = $ this -> pool -> messages -> getHelp ( 'noSourceAvailable' ) ; } // Add the prettified code to the analysis. return $ output . $ this -> pool -> render -> renderSingleChild ( $ this -> dispatchEventWithModel ( __FUNCTION__ . static :: EVENT_MARKER_END , $ this -> pool -> createClass ( 'Brainworxx\\Krexx\\Analyse\\Model' ) -> setData ( $ source ) -> setName ( 'Sourcecode' ) -> setNormal ( static :: UNKNOWN_VALUE ) -> setHasExtra ( true ) -> setType ( static :: TYPE_PHP ) ) ) ; }
Analyse the 'line' key from the backtrace step.

@return string
The generated dom.
Analyse the line key from the backtrace step .