Verified Commit 0a6ff263 authored by Dave Long's avatar Dave Long
Browse files

Issue #3261574 by quietone, kkalashnikov, alexpott, smustgrave: Add .engine to...

Issue #3261574 by quietone, kkalashnikov, alexpott, smustgrave: Add .engine to files scanned by PHPCS
parent 224543f1
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@
 */

use Drupal\Component\Utility\Html;
use Drupal\Core\Extension\Extension;

/**
 * Implements hook_theme().
@@ -24,14 +23,6 @@ function nyan_cat_extension() {

/**
 * Implements hook_render_template().
 *
 * @param string $template_file
 *   The filename of the template to render.
 * @param mixed[] $variables
 *   A keyed array of variables that will appear in the output.
 *
 * @return string
 *   The output generated by the template.
 */
function nyan_cat_render_template($template_file, $variables) {
  $output = str_replace('div', 'nyancat', file_get_contents(\Drupal::root() . '/' . $template_file));
+1 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="drupal_core">
  <arg name="extensions" value="inc,install,module,php,profile,test,theme,yml"/>
  <arg name="extensions" value="engine,inc,install,module,php,profile,test,theme,yml"/>
  <description>Default PHP CodeSniffer configuration for Drupal core.</description>

  <!--Exclude folders used by common frontend tools. These folders match the file_scan_ignore_directories setting in default.settings.php-->
+0 −14
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@

use Drupal\Component\Utility\Html;
use Drupal\Core\Render\Markup;
use Drupal\Core\Extension\Extension;
use Twig\Error\RuntimeError;

/**
@@ -26,19 +25,6 @@ function twig_extension() {

/**
 * Implements hook_render_template().
 *
 * Renders a Twig template.
 *
 * If the Twig debug setting is enabled, HTML comments including the theme hook
 * and template file name suggestions will surround the template markup.
 *
 * @param string $template_file
 *   The file name of the template to render.
 * @param array $variables
 *   A keyed array of variables that will appear in the output.
 *
 * @return string|\Drupal\Component\Render\MarkupInterface
 *   The output generated by the template, plus any debug information.
 */
function twig_render_template($template_file, array $variables) {
  /** @var \Twig\Environment $twig_service */