Skip to content

Commit a45f7b1

Browse files
authored
Merge pull request #1049 from cakephp/ADmad-patch-1
Fix phpcs config for codesniffer v5.3
2 parents 0b660d2 + c114687 commit a45f7b1

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

phpcs.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?xml version="1.0"?>
22
<ruleset name="CakePHP DebugKit">
3-
<config name="installed_paths" value="../../cakephp/cakephp-codesniffer" />
3+
<file>src/</file>
4+
<file>tests/</file>
45

5-
<rule ref="CakePHP" />
6+
<rule ref="CakePHP"/>
7+
8+
<arg value="s"/>
69
</ruleset>

src/Controller/MailPreviewController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ public function sent(string $panelId, string $number): ?ResponseInterface
6969
/** @var \DebugKit\Model\Entity\Panel $panel */
7070
$panel = $this->fetchTable('DebugKit.Panels')->get($panelId);
7171

72-
// @codingStandardsIgnoreStart
72+
// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged
7373
$content = @unserialize($panel->content);
74-
// @codingStandardsIgnoreEnd
7574

7675
if (empty($content['emails'][$number])) {
7776
throw new NotFoundException('No emails found in this request');

src/Controller/PanelsController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ public function view(?string $id = null): void
8686
$panel = $this->Panels->get($id, ...['contain' => ['Requests']]);
8787

8888
$this->set('panel', $panel);
89-
// @codingStandardsIgnoreStart
89+
// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged
9090
$this->set(@unserialize($panel->content));
91-
// @codingStandardsIgnoreEnd
9291
}
9392

9493
/**

0 commit comments

Comments
 (0)