for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
class IncludeDirective extends Directive
public function render(): string
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.
return '<?php include $this->flow->path(' . $this->data['path']['code'] . ')?>';