File tree Expand file tree Collapse file tree 2 files changed +2
-34
lines changed Expand file tree Collapse file tree 2 files changed +2
-34
lines changed Original file line number Diff line number Diff line change @@ -97,15 +97,15 @@ public function __construct()
97
97
}
98
98
}
99
99
100
- $ file = PHP_CodeCoverage_Util:: fileExistsInIncludePath (
100
+ $ file = stream_resolve_include_path (
101
101
'SymfonyComponents/YAML/sfYaml.php '
102
102
);
103
103
104
104
if ($ file ) {
105
105
$ this ->addFileToBlacklist ($ file );
106
106
}
107
107
108
- $ file = PHP_CodeCoverage_Util:: fileExistsInIncludePath (
108
+ $ file = stream_resolve_include_path (
109
109
'SymfonyComponents/YAML/sfYamlDumper.php '
110
110
);
111
111
Original file line number Diff line number Diff line change @@ -111,38 +111,6 @@ public static function crap($ccn, $coverage)
111
111
);
112
112
}
113
113
114
- /**
115
- * Implementation of stream_resolve_include_path() in PHP
116
- * for version before PHP 5.3.2.
117
- *
118
- * @param string $file
119
- * @return mixed
120
- * @author Mattis Stordalen Flister <mattis@xait.no>
121
- * @since Method available since Release 1.1.0
122
- */
123
- public static function fileExistsInIncludePath ($ file )
124
- {
125
- if (function_exists ('stream_resolve_include_path ' )) {
126
- return stream_resolve_include_path ($ file );
127
- }
128
-
129
- if (file_exists ($ file )) {
130
- return realpath ($ file );
131
- }
132
-
133
- $ paths = explode (PATH_SEPARATOR , get_include_path ());
134
-
135
- foreach ($ paths as $ path ) {
136
- $ fullpath = $ path . DIRECTORY_SEPARATOR . $ file ;
137
-
138
- if (file_exists ($ fullpath )) {
139
- return realpath ($ fullpath );
140
- }
141
- }
142
-
143
- return FALSE ;
144
- }
145
-
146
114
/**
147
115
* @param string $directory
148
116
* @return string
You can’t perform that action at this time.
0 commit comments