Completed
Push — 8.x-2.x ( c6d484...0f1fa4 )
by Frédéric G.
02:32
created
modules/mongodb_watchdog/src/Controller/AdminController.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,11 +10,10 @@
 block discarded – undo
10 10
 use Drupal\Component\Utility\Unicode;
11 11
 use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
12 12
 use Drupal\Core\Url;
13
-use Drupal\mongodb\Connection;
14 13
 use Drupal\mongodb_watchdog\Logger;
15 14
 use MongoDB\Database;
16
-use Psr\Log\LoggerInterface;
17 15
 use Psr\Log\LogLevel;
16
+use Psr\Log\LoggerInterface;
18 17
 use Symfony\Component\DependencyInjection\ContainerInterface;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.
modules/mongodb_watchdog/src/Event.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -120,8 +120,6 @@
 block discarded – undo
120 120
   /**
121 121
    * Load a MongoDB watchdog event.
122 122
    *
123
-   * @param string $id
124
-   *   The string representation of a MongoId.
125 123
    *
126 124
    * @return \Drupal\mongodb_watchdog\Event|bool
127 125
    *   FALSE if the event cannot be loaded.
Please login to merge, or discard this patch.
modules/mongodb_watchdog/src/Logger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,14 +131,14 @@
 block discarded – undo
131 131
     $key = "${type}:${level}:${file}:${line}:${function}";
132 132
     $template_id = md5($key);
133 133
 
134
-    $selector = [ '_id' => $template_id ];
134
+    $selector = ['_id' => $template_id];
135 135
     $update = [
136 136
       '_id' => $template_id,
137 137
       'type' => Unicode::substr($context['channel'], 0, 64),
138 138
       'message' => $template,
139 139
       'severity' => $level,
140 140
     ];
141
-    $options = [ 'upsert' => TRUE ];
141
+    $options = ['upsert' => TRUE];
142 142
     $template_result = $this->database
143 143
       ->selectCollection(static::TEMPLATE_COLLECTION)
144 144
       ->replaceOne($selector, $update, $options);
Please login to merge, or discard this patch.