Skip to content

Commit 97f661a

Browse files
committed
Php Inspections (EA Extended) - static code analysis includes:
Reduce couple count calls in [Yaml] Modernize type casting, fix several strict comparisons Unsets merged Elvis operator usage Short syntax for applied operations
1 parent 72181ca commit 97f661a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Finder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,9 @@ public function exclude($dirs)
436436
public function ignoreDotFiles($ignoreDotFiles)
437437
{
438438
if ($ignoreDotFiles) {
439-
$this->ignore = $this->ignore | static::IGNORE_DOT_FILES;
439+
$this->ignore |= static::IGNORE_DOT_FILES;
440440
} else {
441-
$this->ignore = $this->ignore & ~static::IGNORE_DOT_FILES;
441+
$this->ignore &= ~static::IGNORE_DOT_FILES;
442442
}
443443

444444
return $this;
@@ -458,9 +458,9 @@ public function ignoreDotFiles($ignoreDotFiles)
458458
public function ignoreVCS($ignoreVCS)
459459
{
460460
if ($ignoreVCS) {
461-
$this->ignore = $this->ignore | static::IGNORE_VCS_FILES;
461+
$this->ignore |= static::IGNORE_VCS_FILES;
462462
} else {
463-
$this->ignore = $this->ignore & ~static::IGNORE_VCS_FILES;
463+
$this->ignore &= ~static::IGNORE_VCS_FILES;
464464
}
465465

466466
return $this;

0 commit comments

Comments
 (0)