protected static function getSourceCode($file, $line)
    {
        $first = ($line - 9 > 0) ? $line - 9 : 1;

        try {
            $contents = file($file);
            $source = [
                'first' => $first,
                'source' => array_slice($contents, $first - 1, 19),
            ];
        } catch (Exception $e) {
            $source = [];
        }

        return $source;
    }
protected static function getSourceCode($file, $line)
    {
        $first = ($line - 9 > 0) ? $line - 9 : 1;

        try {
            $contents = file($file);
            $source = [
                'first' => $first,
                'source' => array_slice($contents, $first - 1, 19),
            ];
        } catch (Exception $e) {
            $source = [];
        }

        return $source;
    }
protected static function getSourceCode ( $ file , $ line ) { $ first = ( $ line - 9 > 0 ) ? $ line - 9 : 1 ; try { $ contents = file ( $ file ) ; $ source = [ 'first' => $ first , 'source' => array_slice ( $ contents , $ first - 1 , 19 ) , ] ; } catch ( Exception $ e ) { $ source = [ ] ; } return $ source ; }
Get source code from file

@param  string $file
@param  int    $line
@return array
Get source code from file