Skip to content

Commit

Permalink
style: format code; improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shvlv committed Feb 19, 2024
1 parent 6b9960e commit 827d5cd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function process(File $phpcsFile, $stackPtr): void
return;
}

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

if ($phpcsFile->addFixableWarning($message, $stackPtr, 'Found')) {
$this->fix($stackPtr, $phpcsFile);
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ The recommended way to use the `InpsydeTemplates` ruleset is as follows:
<file>./src/</file>
<file>./tests</file>
<file>./templates</file>
<file>./block-views</file>
<file>./views</file>

<rule ref="Inpsyde">
<exclude-pattern>*/templates/*</exclude-pattern>
Expand All @@ -207,7 +207,7 @@ The recommended way to use the `InpsydeTemplates` ruleset is as follows:
</rule>
</ruleset>
```
The following Inpsyde rules are disabled:
The following `Inpsyde` rules are disabled:
* `NoElse`

The following templates-specific rules are available:
Expand Down
1 change: 0 additions & 1 deletion tests/fixtures/encoding-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@

<?php //-*- coding: utf-8 -*-
// @phpcsWarningOnPreviousLine CodeQuality.EncodingComment
?>
1 change: 0 additions & 1 deletion tests/fixtures/trailing-semicolon.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<?= 'Without trailing semicolon' ?>

<?php

$content = 'New content';
if ($content) {
echo $content;
Expand Down

0 comments on commit 827d5cd

Please sign in to comment.