Passed
Pull Request — 8.x-2.x (#70)
by Frédéric G.
06:50
created
modules/mongodb_watchdog/tests/src/Functional/ControllerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Drupal\Tests\mongodb_watchdog\Functional;
6 6
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
    */
311 311
   protected function assertTypeCount(array $types) {
312 312
     $entries = $this->getLogEntries();
313
-    $reducer = function ($accu, $curr) {
313
+    $reducer = function($accu, $curr) {
314 314
       $accu[$curr['type'] . '-' . $curr['severity']] = [$curr['type'], $curr['severity']];
315 315
       return $accu;
316 316
     };
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
       $this->submitForm($edit, 'Filter');
575 575
 
576 576
       // Check whether the displayed event templates match our filter.
577
-      $filteredTypes = array_filter($types, function (array $type) use ($typeName) {
577
+      $filteredTypes = array_filter($types, function(array $type) use ($typeName) {
578 578
         return $type['type'] === $typeName;
579 579
       });
580 580
       $this->assertTypeCount($filteredTypes);
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
       ];
590 590
       $this->submitForm($edit, 'Filter');
591 591
 
592
-      $filteredTypes = array_filter($types, function (array $type) use ($typeType, $typeSeverity) {
592
+      $filteredTypes = array_filter($types, function(array $type) use ($typeType, $typeSeverity) {
593 593
         return $type['type'] === $typeType && $type['severity'] == $typeSeverity;
594 594
       });
595 595
 
Please login to merge, or discard this patch.