Completed
Push — 2761013-watchdog_pager ( 1bc62e...08c90e )
by Frédéric G.
03:07
created
modules/mongodb_watchdog/src/EventTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
       'severity' => [
73 73
         'label' => t('Severity'),
74 74
         'creation_callback' => 'intval',
75
-        'display_callback' => function ($level) {
75
+        'display_callback' => function($level) {
76 76
           return RfcLogLevel::getLevels()[$level];
77 77
         },
78 78
       ],
Please login to merge, or discard this patch.
modules/mongodb_watchdog/mongodb_watchdog.admin.inc 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
  *   Administrative page callbacks for the Database Logging module.
5 5
  */
6 6
 
7
-use Drupal\Core\Logger\RfcLogLevel;
8
-
9 7
 /**
10 8
  * Display watchdogs entry details in MongoDB.
11 9
  *
Please login to merge, or discard this patch.
modules/mongodb_watchdog/src/Controller/OverviewController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
    *
44 44
    * @param \MongoDB\Database $database
45 45
    *   The watchdog database.
46
-   * @param \Psr\Log\LoggerInterface $logger
46
+   * @param Logger $logger
47 47
    *   The logger service, to log intervening events.
48 48
    * @param \Drupal\mongodb_watchdog\Logger $watchdog
49 49
    *   The MongoDB logger, to load stored events.
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,16 +5,16 @@
 block discarded – undo
5 5
 use Drupal\Component\Utility\SafeMarkup;
6 6
 use Drupal\Component\Utility\Unicode;
7 7
 use Drupal\Core\Controller\ControllerBase;
8
+use Drupal\Core\Extension\ModuleHandlerInterface;
9
+use Drupal\Core\Form\FormBuilderInterface;
8 10
 use Drupal\Core\Logger\RfcLogLevel;
9 11
 use Drupal\Core\Url;
10 12
 use Drupal\mongodb_watchdog\Form\OverviewFilterForm;
11 13
 use Drupal\mongodb_watchdog\Logger;
12 14
 use MongoDB\Database;
13
-use Psr\Log\LoggerInterface;
14 15
 use Psr\Log\LogLevel;
16
+use Psr\Log\LoggerInterface;
15 17
 use Symfony\Component\DependencyInjection\ContainerInterface;
16
-use Drupal\Core\Extension\ModuleHandlerInterface;
17
-use Drupal\Core\Form\FormBuilderInterface;
18 18
 
19 19
 /**
20 20
  * Class OverviewController provides the main MongoDB Watchdog report page.
Please login to merge, or discard this patch.
modules/mongodb_watchdog/src/Logger.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -465,14 +465,14 @@
 block discarded – undo
465 465
   }
466 466
 
467 467
     /**
468
-   * Return an array of templates uses during a given request.
469
-   *
470
-   * @param string $unsafe_request_id
471
-   *   A request "unique_id".
472
-   *
473
-   * @return array
474
-   *   An array of EventTemplate instances.
475
-   */
468
+     * Return an array of templates uses during a given request.
469
+     *
470
+     * @param string $unsafe_request_id
471
+     *   A request "unique_id".
472
+     *
473
+     * @return array
474
+     *   An array of EventTemplate instances.
475
+     */
476 476
   public function requestTemplates($unsafe_request_id) {
477 477
     $request_id = "${unsafe_request_id}";
478 478
     $selector = [
Please login to merge, or discard this patch.
modules/mongodb_watchdog/src/Controller/DetailController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Drupal\Core\Config\ImmutableConfig;
6 6
 use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
7
-use Drupal\Core\Logger\RfcLogLevel;
8 7
 use Drupal\Core\Template\Attribute;
9 8
 use Drupal\mongodb_watchdog\EventController;
10 9
 use Drupal\mongodb_watchdog\EventTemplate;
Please login to merge, or discard this patch.
modules/mongodb_watchdog/src/Controller/RequestController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
    */
193 193
   public function track($unique_id) {
194 194
     $logger = \Drupal::logger('test');
195
-    for ($i = 0 ; $i < 1 ; $i++) {
195
+    for ($i = 0; $i < 1; $i++) {
196 196
       $logger->log($i % 8, 'I = @i', ['@i' => $i]);
197 197
     }
198 198
 
Please login to merge, or discard this patch.