doctrine / orm
Showing 1 of 4 files from the diff.

@@ -7,9 +7,12 @@
Loading
7 7
use Doctrine\Deprecations\Deprecation;
8 8
use Doctrine\ORM\EntityManagerInterface;
9 9
use Doctrine\ORM\Tools\Console\EntityManagerProvider;
10 +
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
10 11
use Symfony\Component\Console\Command\Command;
11 12
use Symfony\Component\Console\Input\InputInterface;
12 13
14 +
use function assert;
15 +
13 16
abstract class AbstractEntityManagerCommand extends Command
14 17
{
15 18
    /** @var EntityManagerProvider|null */
@@ -33,7 +36,10 @@
Loading
33 36
                $this->getName()
34 37
            );
35 38
36 -
            return $this->getHelper('em')->getEntityManager();
39 +
            $helper = $this->getHelper('em');
40 +
            assert($helper instanceof EntityManagerHelper);
41 +
42 +
            return $helper->getEntityManager();
37 43
        }
38 44
39 45
        return $input->getOption('em') === null
Files Coverage
lib/Doctrine/ORM 84.74%
Project Totals (371 files) 84.74%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading