File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -177,23 +177,23 @@ private function processFile(FileNode $file, Directory $context): void
177177
178178 private function processUnit (ProcessedClassType |ProcessedTraitType $ unit , Report $ report ): void
179179 {
180- if (isset ( $ unit[ ' className ' ]) ) {
180+ if ($ unit instanceof ProcessedClassType ) {
181181 $ unitObject = $ report ->classObject (
182- $ unit[ ' className ' ] ,
183- $ unit[ ' namespace ' ] ,
184- $ unit[ ' startLine ' ] ,
185- $ unit[ ' executableLines ' ] ,
186- $ unit[ ' executedLines ' ] ,
187- (float ) $ unit[ ' crap ' ] ,
182+ $ unit-> className ,
183+ $ unit-> namespace ,
184+ $ unit-> startLine ,
185+ $ unit-> executableLines ,
186+ $ unit-> executedLines ,
187+ (float ) $ unit-> crap ,
188188 );
189189 } else {
190190 $ unitObject = $ report ->traitObject (
191- $ unit[ ' traitName ' ] ,
192- $ unit[ ' namespace ' ] ,
193- $ unit[ ' startLine ' ] ,
194- $ unit[ ' executableLines ' ] ,
195- $ unit[ ' executedLines ' ] ,
196- (float ) $ unit[ ' crap ' ] ,
191+ $ unit-> traitName ,
192+ $ unit-> namespace ,
193+ $ unit-> startLine ,
194+ $ unit-> executableLines ,
195+ $ unit-> executedLines ,
196+ (float ) $ unit-> crap ,
197197 );
198198 }
199199
You can’t perform that action at this time.
0 commit comments