Skip to content

Commit 28faa56

Browse files
author
Sijun Zhu
committed
style fix with phpcs
1 parent 29a00f5 commit 28faa56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Standards/Generic/Sniffs/PHP/ForbiddenFunctionsSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function register()
7474

7575
// If we are not pattern matching, we need to work out what
7676
// tokens to listen for.
77-
$string = '<?php ';
7877
$hasHaltCompiler = false;
78+
$string = '<?php ';
7979
foreach ($this->forbiddenFunctionNames as $name) {
8080
if ($name === '__halt_compiler') {
8181
$hasHaltCompiler = true;
@@ -84,7 +84,7 @@ public function register()
8484
}
8585
}
8686

87-
if ($hasHaltCompiler) {
87+
if ($hasHaltCompiler === true) {
8888
$string .= '__halt_compiler();';
8989
}
9090

0 commit comments

Comments
 (0)