File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ private function seekFileStats(array $files)
3939 private function seekLineStats (\SimpleXMLElement $ file )
4040 {
4141 foreach ($ file ->children ()->line as $ line ) {
42- if (! $ line ['count ' ]) {
42+ if (( int ) $ line ['count ' ]) {
4343 continue ;
4444 }
4545 $ lineNumber = (int ) $ line ['num ' ]->__toString ();
Original file line number Diff line number Diff line change 33 <project timestamp =" 1479006233" >
44 <package name =" package" >
55 <file name =" /home/user/package/subpackage/Foo.php" >
6- <line num =" 1" type =" stmt" count =" 1 " />
6+ <line num =" 1" type =" stmt" count =" 0 " />
77 <line num =" 2" type =" stmt" count =" 0" />
88 <line num =" 3" type =" stmt" count =" 0" />
99 </file >
1010 <file name =" /home/user/package/subpackage/Bar.php" >
1111 <line num =" 4" type =" stmt" count =" 0" />
1212 <line num =" 5" type =" stmt" count =" 0" />
13- <line num =" 6" type =" stmt" count =" 0 " />
13+ <line num =" 6" type =" stmt" count =" 1 " />
1414 </file >
1515 </package >
1616 </project >
Original file line number Diff line number Diff line change @@ -50,10 +50,7 @@ protected function getExpectedEntries()
5050 ],
5151 [
5252 'file ' => '/home/user/package/subpackage/Bar.php ' , 'line ' => 5
53- ],
54- [
55- 'file ' => '/home/user/package/subpackage/Bar.php ' , 'line ' => 6
56- ],
53+ ]
5754 ];
5855 }
5956}
You can’t perform that action at this time.
0 commit comments