Completed
Pull Request — 8.x-2.x (#5)
by Frédéric G.
04:36 queued 02:00
created
modules/mongodb_watchdog/src/Controller/AdminController.php 7 patches
Doc Comments   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -191,7 +191,4 @@
 block discarded – undo
191 191
       $database,
192 192
       $logger,
193 193
       $module_handler,
194
-      $form_builder
195
-    );
196
-  }
197
-}
194
+      $form_builder
198 195
\ No newline at end of file
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -191,7 +191,4 @@
 block discarded – undo
191 191
       $database,
192 192
       $logger,
193 193
       $module_handler,
194
-      $form_builder
195
-    );
196
-  }
197
-}
194
+      $form_builder
198 195
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -191,7 +191,4 @@
 block discarded – undo
191 191
       $database,
192 192
       $logger,
193 193
       $module_handler,
194
-      $form_builder
195
-    );
196
-  }
197
-}
194
+      $form_builder
198 195
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -191,7 +191,4 @@
 block discarded – undo
191 191
       $database,
192 192
       $logger,
193 193
       $module_handler,
194
-      $form_builder
195
-    );
196
-  }
197
-}
194
+      $form_builder
198 195
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
    * @param \Drupal\Core\Form\FormBuilderInterface $form_builder
67 67
    *   The form builder service.
68 68
    */
69
-<<<<<<< HEAD
69
+<< << <<< HEAD
70 70
   public function __construct(Database $database, LoggerInterface $logger, ModuleHandlerInterface $module_handler, FormBuilderInterface $form_builder) {
71 71
 =======
72 72
   public function __construct(\MongoDB\database $database, Logger $logger, ModuleHandlerInterface $module_handler, FormBuilderInterface $form_builder) {
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         $message = Unicode::truncate(strip_tags(SafeMarkup::format($value['message'], [])), 56, TRUE, TRUE);
145 145
         $value['count'] = $this->logger->eventCollection($value['_id'])->count();
146 146
         $rows[$id] = [
147
-          $icons[$value->severity],
147
+          $icons[$value - >severity],
148 148
           isset($value['count']) && $value['count'] > 1 ? intval($value['count']) : 0,
149 149
           t($value['type']),
150 150
           empty($value['timestamp']) ? '' : format_date($value['timestamp'], 'short'),
@@ -191,7 +191,4 @@  discard block
 block discarded – undo
191 191
       $database,
192 192
       $logger,
193 193
       $module_handler,
194
-      $form_builder
195
-    );
196
-  }
197
-}
194
+      $form_builder
198 195
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -191,7 +191,4 @@
 block discarded – undo
191 191
       $database,
192 192
       $logger,
193 193
       $module_handler,
194
-      $form_builder
195
-    );
196
-  }
197
-}
194
+      $form_builder
198 195
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -191,7 +191,4 @@
 block discarded – undo
191 191
       $database,
192 192
       $logger,
193 193
       $module_handler,
194
-      $form_builder
195
-    );
196
-  }
197
-}
194
+      $form_builder
198 195
\ No newline at end of file
Please login to merge, or discard this patch.
modules/mongodb_watchdog/src/Form/AdminForm.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
   /**
38 38
    * Constructor.
39 39
    *
40
-   * @param \MongoDB $database
40
+   * @param \MongoDB\Database $database
41 41
    *   The watchdog database.
42 42
    * @param \Drupal\mongodb_watchdog\Logger $logger
43 43
    */
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,15 +6,13 @@
 block discarded – undo
6 6
 
7 7
 namespace Drupal\mongodb_watchdog\Form;
8 8
 
9
-use Drupal\Core\Form\FormBase;
10
-use Drupal\Core\Form\FormStateInterface;
11 9
 use Drupal\Component\Utility\SafeMarkup;
12 10
 use Drupal\Component\Utility\Unicode;
13 11
 use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
12
+use Drupal\Core\Form\FormBase;
13
+use Drupal\Core\Form\FormStateInterface;
14 14
 use Drupal\Core\Url;
15
-use Drupal\mongodb\Connection;
16 15
 use Drupal\mongodb_watchdog\Logger;
17
-use Psr\Log\LoggerInterface;
18 16
 use Symfony\Component\DependencyInjection\ContainerInterface;
19 17
 
20 18
 /**
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -188,9 +188,9 @@
 block discarded – undo
188 188
       if ($value['type'] == 'php' && $value['message'] == '%type: %message in %function (line %line of %file).') {
189 189
         $collection = $this->logger->eventCollection($value['_id']);
190 190
         $result = $collection->find()
191
-                             ->sort(array('$natural' => -1))
192
-                             ->limit(1)
193
-                             ->getNext();
191
+                              ->sort(array('$natural' => -1))
192
+                              ->limit(1)
193
+                              ->getNext();
194 194
         if ($value) {
195 195
           $value['file'] = basename($result['variables']['%file']);
196 196
           $value['line'] = $result['variables']['%line'];
Please login to merge, or discard this patch.