| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
| 26 | { |
||
| 27 | /* @var $serviceLocator ServiceLocatorInterface */ |
||
| 28 | $serviceLocator = $serviceLocator->getServiceLocator(); |
||
| 29 | $manager = $serviceLocator->get('Solr/Manager'); |
||
| 30 | $client = $manager->getClient($manager->getOptions()->getJobsPath()); |
||
| 31 | $jobRepository = $serviceLocator->get('repositories')->get('Jobs/Job'); |
||
| 32 | $progressBarFactory = function ($count, $persistenceNamespace = null) { |
||
| 33 | return new ProgressBar($count, $persistenceNamespace); |
||
| 34 | }; |
||
| 35 | |||
| 36 | return new \Solr\Controller\ConsoleController($client, $jobRepository, $progressBarFactory); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.