@@ -199,7 +199,7 @@ private function renderTraitOrClassItems(array $items, Template $template, Templ
199199
200200 if ($ item ['executableLines ' ] > 0 ) {
201201 $ numClasses = 1 ;
202- $ numTestedClasses = $ numTestedMethods == $ numMethods ? 1 : 0 ;
202+ $ numTestedClasses = $ numTestedMethods === $ numMethods ? 1 : 0 ;
203203 $ linesExecutedPercentAsString = Percentage::fromFractionAndTotal (
204204 $ item ['executedLines ' ],
205205 $ item ['executableLines ' ]
@@ -379,7 +379,7 @@ private function renderSource(FileNode $node): string
379379
380380 if ($ coverageData [$ i ] === null ) {
381381 $ trClass = ' class="warning" ' ;
382- } elseif ($ numTests == 0 ) {
382+ } elseif ($ numTests === 0 ) {
383383 $ trClass = ' class="danger" ' ;
384384 } else {
385385 $ lineCss = 'covered-by-large-tests ' ;
@@ -392,9 +392,9 @@ private function renderSource(FileNode $node): string
392392 }
393393
394394 foreach ($ coverageData [$ i ] as $ test ) {
395- if ($ lineCss == 'covered-by-large-tests ' && $ testData [$ test ]['size ' ] == 'medium ' ) {
395+ if ($ lineCss === 'covered-by-large-tests ' && $ testData [$ test ]['size ' ] = == 'medium ' ) {
396396 $ lineCss = 'covered-by-medium-tests ' ;
397- } elseif ($ testData [$ test ]['size ' ] == 'small ' ) {
397+ } elseif ($ testData [$ test ]['size ' ] === 'small ' ) {
398398 $ lineCss = 'covered-by-small-tests ' ;
399399 }
400400
@@ -483,7 +483,7 @@ private function loadFile($file): array
483483 $ result = ['' ];
484484 $ i = 0 ;
485485 $ stringFlag = false ;
486- $ fileEndsWithNewLine = substr ($ buffer , -1 ) == "\n" ;
486+ $ fileEndsWithNewLine = substr ($ buffer , -1 ) === "\n" ;
487487
488488 unset($ buffer );
489489
0 commit comments