| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 20 | 
| Code Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 11 | 
| CRAP Score | 3 | 
| Changes | 3 | ||
| Bugs | 1 | Features | 0 | 
| 1 | <?php | ||
| 30 | private function executeExecutor( | ||
| 31 | ExecutorInterface $executor, | ||
| 32 | ObjectManager $manager, | ||
| 33 | LoaderInterface $loader, | ||
| 34 | array $fixtures, | ||
| 35 | $append = false | ||
| 36 |     ) { | ||
| 37 | 66 |         $function = function (ObjectManager $manager) use ($executor, $loader, $fixtures, $append) { | |
| 38 | 60 |             if (false === $append) { | |
| 39 | 48 | $executor->purge(); | |
| 40 | 48 | } | |
| 41 | 60 | $loader->load(new Doctrine($manager), $fixtures); | |
| 42 | 66 | }; | |
| 43 | |||
| 44 | 66 |         if (method_exists($manager, 'transactional')) { | |
| 45 | 48 | $manager->transactional($function); | |
| 46 | 48 |         } else { | |
| 47 | 24 | $function($manager); | |
| 48 | } | ||
| 49 | 66 | } | |
| 50 | } | ||
| 51 |