Skip to content

Commit a67b4ce

Browse files
committed
Fix code style issues
1 parent 408d458 commit a67b4ce

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

phpcs.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
2020
<exclude name="Drupal.Commenting.VariableComment.Missing"/>
2121
<exclude name="Drupal.Arrays.Array.LongLineDeclaration"/>
22+
23+
<exclude name="SlevomatCodingStandard.Arrays.AlphabeticallySortedByKeys.IncorrectKeyOrder"/>
24+
<exclude name="SlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperator.TrailingMultiLineTernaryOperatorUsed"/>
2225
</rule>
2326

2427
<rule ref="SlevomatCodingStandard.Classes.RequireAbstractOrFinal.ClassNeitherAbstractNorFinal">

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ final class Application extends BaseApplication implements ContainerAwareInterfa
5454
/**
5555
* Path to templates directory.
5656
*/
57-
public const TEMPLATE_PATH = Application::ROOT . '/templates';
57+
public const TEMPLATE_PATH = self::ROOT . '/templates';
5858

5959
/**
6060
* Creates the application.

src/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public static function processVars(array $vars, ?array $data = NULL): array {
157157
$data ??= $vars;
158158
foreach ($vars as $key => $value) {
159159
$vars[$key] = match (TRUE) {
160-
\is_string($value) => Utils::stripSlashes(Utils::replaceTokens($value, $data)),
160+
\is_string($value) => self::stripSlashes(self::replaceTokens($value, $data)),
161161
\is_array($value) => self::processVars($value, $data),
162162
default => $value,
163163
};

0 commit comments

Comments
 (0)