@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @param ServiceLocatorInterface $serviceLocator |
| 22 | 22 | * |
| 23 | - * @return UsersController |
|
| 23 | + * @return \Solr\Controller\ConsoleController |
|
| 24 | 24 | */ |
| 25 | 25 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 26 | 26 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $manager = $serviceLocator->get('Solr/Manager'); |
| 30 | 30 | $client = $manager->getClient($manager->getOptions()->getJobsPath()); |
| 31 | 31 | $jobRepository = $serviceLocator->get('repositories')->get('Jobs/Job'); |
| 32 | - $progressBarFactory = function ($count, $persistenceNamespace = null) { |
|
| 32 | + $progressBarFactory = function($count, $persistenceNamespace = null) { |
|
| 33 | 33 | return new ProgressBar($count, $persistenceNamespace); |
| 34 | 34 | }; |
| 35 | 35 | |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | - * @param LifecycleEventArgs $eventArgs |
|
| 135 | + * @param PostFlushEventArgs $eventArgs |
|
| 136 | 136 | * @since 0.27 |
| 137 | 137 | */ |
| 138 | 138 | public function postFlush(PostFlushEventArgs $eventArgs) |
@@ -149,10 +149,10 @@ |
||
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | /** |
| 152 | - * @return SolrClient |
|
| 153 | - * @since 0.27 |
|
| 154 | - */ |
|
| 155 | - protected function getSolrClient() |
|
| 152 | + * @return SolrClient |
|
| 153 | + * @since 0.27 |
|
| 154 | + */ |
|
| 155 | + protected function getSolrClient() |
|
| 156 | 156 | { |
| 157 | 157 | if (!isset($this->solrClient)) { |
| 158 | 158 | $path = $this->solrManager->getOptions()->getJobsPath(); |
@@ -140,6 +140,6 @@ |
||
| 140 | 140 | */ |
| 141 | 141 | protected function getLocationDocumentId(JobEntity $job, $coordinate) |
| 142 | 142 | { |
| 143 | - return $job->getId() . '-' . $coordinate; |
|
| 143 | + return $job->getId().'-'.$coordinate; |
|
| 144 | 144 | } |
| 145 | 145 | } |
| 146 | 146 | \ No newline at end of file |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | class Manager |
| 25 | 25 | { |
| 26 | - const SOLR_DATE_FORMAT = 'Y-m-d\TH:i:s\Z'; |
|
| 26 | + const SOLR_DATE_FORMAT = 'Y-m-d\TH:i:s\Z'; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @var ModuleOptions |
@@ -82,11 +82,11 @@ |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | - * @return callable |
|
| 86 | - */ |
|
| 87 | - public function getProgressBarFactory() |
|
| 88 | - { |
|
| 89 | - return $this->progressBarFactory; |
|
| 90 | - } |
|
| 85 | + * @return callable |
|
| 86 | + */ |
|
| 87 | + public function getProgressBarFactory() |
|
| 88 | + { |
|
| 89 | + return $this->progressBarFactory; |
|
| 90 | + } |
|
| 91 | 91 | |
| 92 | 92 | } |
| 93 | 93 | \ No newline at end of file |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | foreach ($jobs as $job) { |
| 72 | 72 | $document = $entityToDocument->filter($job); |
| 73 | 73 | $this->solrClient->addDocument($document); |
| 74 | - $progressBar->update($i, 'Job ' . $i . ' / ' . $count); |
|
| 74 | + $progressBar->update($i, 'Job '.$i.' / '.$count); |
|
| 75 | 75 | $i++; |
| 76 | 76 | } |
| 77 | 77 | |