Completed
Push — master ( f2f784...429167 )
by Бабичев
01:47
created

src/Flow/Directives/IncludeDirective.php (1 issue)

1
<?php
2
3
namespace Bavix\Flow\Directives;
4
5
use Bavix\Flow\Directive;
6
7
class IncludeDirective extends Directive
8
{
9
10 1
    public function render(): string
11
    {
12
//        var_dump($this->data['options']['code']);
0 ignored issues
show
Unused Code Comprehensibility introduced by
73% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
13
//        die;
14 1
        return '<?php include $this->flow->path(' . $this->data['path']['code'] . ')?>';
15
    }
16
17
}
18