Skip to content

Commit 827d5cd

Browse files
committed
style: format code; improve documentation
1 parent 6b9960e commit 827d5cd

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

InpsydeTemplates/Sniffs/Formatting/TrailingSemicolonSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function process(File $phpcsFile, $stackPtr): void
8686
return;
8787
}
8888

89-
$message = sprintf('Trailing semicolon found at line %d.', $currentLine);
89+
$message = sprintf('Trailing semicolon found in line %d.', $currentLine);
9090

9191
if ($phpcsFile->addFixableWarning($message, $stackPtr, 'Found')) {
9292
$this->fix($stackPtr, $phpcsFile);

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ The recommended way to use the `InpsydeTemplates` ruleset is as follows:
194194
<file>./src/</file>
195195
<file>./tests</file>
196196
<file>./templates</file>
197-
<file>./block-views</file>
197+
<file>./views</file>
198198

199199
<rule ref="Inpsyde">
200200
<exclude-pattern>*/templates/*</exclude-pattern>
@@ -207,7 +207,7 @@ The recommended way to use the `InpsydeTemplates` ruleset is as follows:
207207
</rule>
208208
</ruleset>
209209
```
210-
The following Inpsyde rules are disabled:
210+
The following `Inpsyde` rules are disabled:
211211
* `NoElse`
212212

213213
The following templates-specific rules are available:

tests/fixtures/encoding-comment.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@
1515

1616
<?php //-*- coding: utf-8 -*-
1717
// @phpcsWarningOnPreviousLine CodeQuality.EncodingComment
18-
?>

tests/fixtures/trailing-semicolon.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<?= 'Without trailing semicolon' ?>
88

99
<?php
10-
1110
$content = 'New content';
1211
if ($content) {
1312
echo $content;

0 commit comments

Comments
 (0)