Skip to content

Commit 4112ea4

Browse files
committed
updated string comparison for stylish command
1 parent 4a87819 commit 4112ea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Formatters/StylishCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public function execute(FDCI $command): FI
320320
foreach ($this->statusKeys as $key) {
321321
$altStatusComments[$key] = "";
322322
}
323-
$this->statusComments = !strcmp($this->commentType, self::AVAILABLE_COMMENT_TYPES["verbose"]) ?
323+
$this->statusComments = (strcmp($this->commentType, self::AVAILABLE_COMMENT_TYPES["verbose"]) === 0) ?
324324
[
325325
$this->statusKeys[0] => "",
326326
$this->statusKeys[1] => " # Old value",

0 commit comments

Comments
 (0)