File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -229,10 +229,7 @@ public function stop($append = TRUE)
229229 }
230230
231231 $ data = $ this ->driver ->stop ();
232-
233- if ($ append ) {
234- $ this ->append ($ data );
235- }
232+ $ this ->append ($ data , NULL , $ append );
236233
237234 $ this ->currentId = NULL ;
238235
@@ -242,10 +239,11 @@ public function stop($append = TRUE)
242239 /**
243240 * Appends code coverage data.
244241 *
245- * @param array $data
246- * @param mixed $id
242+ * @param array $data
243+ * @param mixed $id
244+ * @param boolean $append
247245 */
248- public function append (array $ data , $ id = NULL )
246+ public function append (array $ data , $ id = NULL , $ append = TRUE )
249247 {
250248 if ($ id === NULL ) {
251249 $ id = $ this ->currentId ;
@@ -258,6 +256,10 @@ public function append(array $data, $id = NULL)
258256 $ this ->applyListsFilter ($ data );
259257 $ this ->initializeFilesThatAreSeenTheFirstTime ($ data );
260258
259+ if (!$ append ) {
260+ return ;
261+ }
262+
261263 if ($ id != 'UNCOVERED_FILES_FROM_WHITELIST ' ) {
262264 $ this ->applyCoversAnnotationFilter ($ data , $ id );
263265 }
You can’t perform that action at this time.
0 commit comments