@@ -209,7 +209,7 @@ |
||
| 209 | 209 | $status = []; |
| 210 | 210 | |
| 211 | 211 | foreach ($results as $info) { |
| 212 | - $key = $info['_id']['worker_name'] . '->' .$info['_id']['method'] . '()'; |
|
| 212 | + $key = $info['_id']['worker_name'].'->'.$info['_id']['method'].'()'; |
|
| 213 | 213 | if (!isset($status[$key])) { |
| 214 | 214 | $status[$key] = $allStatus; |
| 215 | 215 | } |
@@ -111,8 +111,7 @@ |
||
| 111 | 111 | $result = $this->runQuery($query, 'execute'); |
| 112 | 112 | if ($result instanceof UpdateResult) { |
| 113 | 113 | return $result->getModifiedCount(); |
| 114 | - } |
|
| 115 | - else if (isset($result['n'])) { |
|
| 114 | + } else if (isset($result['n'])) { |
|
| 116 | 115 | return $result['n']; |
| 117 | 116 | } |
| 118 | 117 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $defaultManagerType = $container->getParameter('dtc_queue.manager.job'); |
| 18 | 18 | $runManagerType = $container->getParameter($this->getRunManagerType($container)); |
| 19 | 19 | if ($defaultManagerType === 'orm' || $runManagerType === 'orm' || $defaultManagerType === 'odm' || $runManagerType === 'odm') { |
| 20 | - $filename =__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'dtc_grid.yaml'; |
|
| 20 | + $filename = __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'Resources'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'dtc_grid.yaml'; |
|
| 21 | 21 | $cacheDir = $container->getParameter('kernel.cache_dir'); |
| 22 | 22 | if (class_exists('Dtc\GridBundle\Grid\Source\ColumnSource')) { |
| 23 | 23 | \Dtc\GridBundle\Grid\Source\ColumnSource::cacheClassesFromFile($cacheDir, $filename); |