Skip to content

Commit 9c21a9a

Browse files
Eliminate superfluous function calls.
1 parent 87e2da0 commit 9c21a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PHP/CodeCoverage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function append(array $data, $id = NULL)
184184
unset($newFiles);
185185

186186
// Apply @covers filtering.
187-
if (is_object($id) && $id instanceof PHPUnit_Framework_TestCase) {
187+
if ($id instanceof PHPUnit_Framework_TestCase) {
188188
$linesToBeCovered = PHP_CodeCoverage_Util::getLinesToBeCovered(
189189
get_class($id), $id->getName()
190190
);
@@ -214,7 +214,7 @@ public function append(array $data, $id = NULL)
214214
}
215215

216216
if (!empty($data)) {
217-
if (is_object($id) && $id instanceof PHPUnit_Framework_TestCase) {
217+
if ($id instanceof PHPUnit_Framework_TestCase) {
218218
$id = get_class($id) . '::' . $id->getName();
219219
}
220220

0 commit comments

Comments
 (0)