@@ -276,7 +276,7 @@ |
||
| 276 | 276 | /** |
| 277 | 277 | * Get the log entry information form the page. |
| 278 | 278 | * |
| 279 | - * @return array |
|
| 279 | + * @return callable |
|
| 280 | 280 | * List of entries and their information. |
| 281 | 281 | */ |
| 282 | 282 | protected function getLogEntries(): array { |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | */ |
| 330 | 330 | protected function assertTypeCount(array $types) { |
| 331 | 331 | $entries = $this->getLogEntries(); |
| 332 | - $reducer = function ($accu, $curr) { |
|
| 332 | + $reducer = function($accu, $curr) { |
|
| 333 | 333 | $accu[$curr['type'] . '-' . $curr['severity']] = [ |
| 334 | 334 | $curr['type'], |
| 335 | 335 | $curr['severity'], |
@@ -605,7 +605,7 @@ discard block |
||
| 605 | 605 | // Check whether the displayed event templates match our filter. |
| 606 | 606 | $filteredTypes = array_filter( |
| 607 | 607 | $types, |
| 608 | - function (array $type) use ($typeName) { |
|
| 608 | + function(array $type) use ($typeName) { |
|
| 609 | 609 | return $type['type'] === $typeName; |
| 610 | 610 | } |
| 611 | 611 | ); |
@@ -623,7 +623,7 @@ discard block |
||
| 623 | 623 | |
| 624 | 624 | $filteredTypes = array_filter( |
| 625 | 625 | $types, |
| 626 | - function (array $type) use ($typeType, $typeSeverity) { |
|
| 626 | + function(array $type) use ($typeType, $typeSeverity) { |
|
| 627 | 627 | return $type['type'] === $typeType && $type['severity'] == $typeSeverity; |
| 628 | 628 | } |
| 629 | 629 | ); |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Drupal\Tests\mongodb_watchdog\Kernel; |
| 6 | 6 | |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | public function testLogClosure() { |
| 128 | 128 | $logger = $this->container->get(Logger::SERVICE_LOGGER); |
| 129 | - $closure = function () use ($logger) { |
|
| 129 | + $closure = function() use ($logger) { |
|
| 130 | 130 | $logger->notice("This fails on PHP below 7.0, and 5.6 needs to be supported for Drupal 8. The alcaeus adapter passes the version check, but does not address this."); |
| 131 | 131 | return 1; |
| 132 | 132 | }; |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Drupal\mongodb\Queue; |
| 5 | 5 | |
@@ -109,8 +109,8 @@ discard block |
||
| 109 | 109 | ]; |
| 110 | 110 | return $this->collection->findOneAndUpdate( |
| 111 | 111 | [], |
| 112 | - [ '$set' => $newobj ], |
|
| 113 | - [ 'sort' => ['created' => 1],] |
|
| 112 | + ['$set' => $newobj], |
|
| 113 | + ['sort' => ['created' => 1], ] |
|
| 114 | 114 | ); |
| 115 | 115 | |
| 116 | 116 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Drupal\mongodb\Queue; |
| 5 | 5 | |