Completed
Pull Request — 8.x-2.x (#28)
by Frédéric G.
07:56
created
modules/mongodb_watchdog/src/Command/SanityCheckCommand.php 2 patches
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,11 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.