@@ -2,12 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Drupal\mongodb_watchdog\Command; |
| 4 | 4 | |
| 5 | -use Doctrine\Common\Util\Debug; |
|
| 6 | 5 | use Drupal\Console\Command\ContainerAwareCommand; |
| 6 | +use Drupal\Console\Style\DrupalStyle; |
|
| 7 | 7 | use Drupal\mongodb_watchdog\Logger; |
| 8 | 8 | use Symfony\Component\Console\Input\InputInterface; |
| 9 | 9 | use Symfony\Component\Console\Output\OutputInterface; |
| 10 | -use Drupal\Console\Style\DrupalStyle; |
|
| 11 | 10 | |
| 12 | 11 | /** |
| 13 | 12 | * Class SanityCheckCommand. |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | ]; |
| 57 | 57 | |
| 58 | 58 | // 0, 1 and $items are reserved. |
| 59 | - for ($i = 1 ; $i < $barCount ; $i++) { |
|
| 59 | + for ($i = 1; $i < $barCount; $i++) { |
|
| 60 | 60 | $buckets[$i * $barWidth] = 0; |
| 61 | 61 | } |
| 62 | 62 | ksort($buckets); |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | $collections = $db->listCollections(); |
| 87 | 87 | foreach ($collections as $collectionInfo) { |
| 88 | - $name = $collectionInfo->getName();// . " " . $collection->count() ."\n" |
|
| 88 | + $name = $collectionInfo->getName(); // . " " . $collection->count() ."\n" |
|
| 89 | 89 | $collection = $db->selectCollection($name); |
| 90 | 90 | $count = $collection->count(); |
| 91 | 91 | if (preg_match('/' . Logger::EVENT_COLLECTIONS_PATTERN . '/', $name)) { |