@@ -60,15 +60,15 @@ class PHP_CodeCoverage_Report_Factory
60
60
/**
61
61
* @param PHP_CodeCoverage $coverage
62
62
*/
63
- public static function create (PHP_CodeCoverage $ coverage )
63
+ public function create (PHP_CodeCoverage $ coverage )
64
64
{
65
65
$ files = $ coverage ->getData ();
66
66
$ commonPath = PHP_CodeCoverage_Util::reducePaths ($ files );
67
67
$ root = new PHP_CodeCoverage_Report_Node_Directory (
68
68
$ commonPath , NULL
69
69
);
70
70
71
- self :: addItems (
71
+ $ this -> addItems (
72
72
$ root ,
73
73
PHP_CodeCoverage_Util::buildDirectoryStructure ($ files ),
74
74
$ coverage ->getTests (),
@@ -84,15 +84,15 @@ public static function create(PHP_CodeCoverage $coverage)
84
84
* @param array $tests
85
85
* @param boolean $cacheTokens
86
86
*/
87
- protected static function addItems (PHP_CodeCoverage_Report_Node_Directory $ root , array $ items , array $ tests , $ cacheTokens )
87
+ protected function addItems (PHP_CodeCoverage_Report_Node_Directory $ root , array $ items , array $ tests , $ cacheTokens )
88
88
{
89
89
foreach ($ items as $ key => $ value ) {
90
90
if (substr ($ key , -2 ) == '/f ' ) {
91
91
$ key = substr ($ key , 0 , -2 );
92
92
$ root ->addFile ($ key , $ value , $ tests , $ cacheTokens );
93
93
} else {
94
94
$ child = $ root ->addDirectory ($ key );
95
- self :: addItems ($ child , $ value , $ tests , $ cacheTokens );
95
+ $ this -> addItems ($ child , $ value , $ tests , $ cacheTokens );
96
96
}
97
97
}
98
98
}
0 commit comments