Include statements should not be used

More information: https://insight.symfony.com/what-we-analyse/symfony.include_statement_used

  1. * @return string
  2. */
  3. protected function render($tpl, array $variables) {
  4. ob_start();
  5. extract($variables, EXTR_SKIP);
  6. require $tpl;

    Using include() or require() bypasses lazy-loading of third-party classes. Prefer using autoloading.

    Time to fix: about 3 hours
    Permalink
    Last edited by Michał Kowalik
  7. $result = ob_get_contents();
  8. ob_end_clean();
  9. return self::removeTrailingSpaces($result);
  10. }
  • majkel

    Ignored on Tue, 26 Jan 2016 22:49:55 GMT