@@ -37,7 +37,7 @@ |
||
| 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 | */ |
@@ -6,15 +6,13 @@ |
||
| 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 | /** |
@@ -188,9 +188,9 @@ |
||
| 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']; |
@@ -4,8 +4,6 @@ |
||
| 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 | * |
@@ -5,16 +5,16 @@ |
||
| 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. |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use MongoDB\Database; |
| 12 | 12 | use MongoDB\Driver\Exception\InvalidArgumentException; |
| 13 | 13 | use Psr\Log\AbstractLogger; |
| 14 | -use Psr\Log\LogLevel; |
|
| 15 | 14 | use Symfony\Component\HttpFoundation\RequestStack; |
| 16 | 15 | |
| 17 | 16 | /** |