@@ -35,7 +35,7 @@ public function build(CodeCoverage $coverage): Directory
3535 private function addItems (Directory $ root , array $ items , array $ tests , bool $ cacheTokens ): void
3636 {
3737 foreach ($ items as $ key => $ value ) {
38- if (\substr ($ key , -2 ) == '/f ' ) {
38+ if (\substr ($ key , -2 ) === '/f ' ) {
3939 $ key = \substr ($ key , 0 , -2 );
4040
4141 if (\file_exists ($ root ->getPath () . \DIRECTORY_SEPARATOR . $ key )) {
@@ -100,7 +100,7 @@ private function buildDirectoryStructure(array $files): array
100100 for ($ i = 0 ; $ i < $ max ; $ i ++) {
101101 $ type = '' ;
102102
103- if ($ i == ($ max - 1 )) {
103+ if ($ i === ($ max - 1 )) {
104104 $ type = '/f ' ;
105105 }
106106
@@ -190,7 +190,7 @@ private function reducePaths(array &$files): string
190190 for ($ i = 0 ; $ i < $ max - 1 ; $ i ++) {
191191 if (!isset ($ paths [$ i ][0 ]) ||
192192 !isset ($ paths [$ i + 1 ][0 ]) ||
193- $ paths [$ i ][0 ] != $ paths [$ i + 1 ][0 ]) {
193+ $ paths [$ i ][0 ] !== $ paths [$ i + 1 ][0 ]) {
194194 $ done = true ;
195195
196196 break ;
@@ -200,7 +200,7 @@ private function reducePaths(array &$files): string
200200 if (!$ done ) {
201201 $ commonPath .= $ paths [0 ][0 ];
202202
203- if ($ paths [0 ][0 ] != \DIRECTORY_SEPARATOR ) {
203+ if ($ paths [0 ][0 ] !== \DIRECTORY_SEPARATOR ) {
204204 $ commonPath .= \DIRECTORY_SEPARATOR ;
205205 }
206206
0 commit comments