diff --git a/core/modules/dblog/src/LogEntry.php b/core/modules/dblog/src/LogEntry.php
index 6395520af9..98229e0963 100644
--- a/core/modules/dblog/src/LogEntry.php
+++ b/core/modules/dblog/src/LogEntry.php
@@ -3,8 +3,7 @@
 namespace Drupal\dblog;
 
 /**
- * A Log entry that contains information about an event registered by the dblog
- * module.
+ * Contains information about an event registered by the dblog module.
  */
 class LogEntry {
 
@@ -23,22 +22,23 @@ class LogEntry {
   protected $uid;
 
   /**
-   * Type of log message, for example "user" or "page not found."
+   * Type of log message, for example "user" or "page not found".
    *
    * @var string
    */
   protected $type;
 
   /**
-    * Text of log message to be passed into the t() function.
-    *
-    * @var string
-    */
+   * Text of log message to be passed into the t() function.
+   *
+   * @var string
+   */
   protected $message;
 
   /**
-   * Serialized array of variables that match the message string and that is
-   * passed into the t() function.
+   * Serialized array of variables.
+   *
+   * Match the message string and is passed into the t() function.
    *
    * @var string
    */
@@ -104,9 +104,10 @@ public function __construct(array $data) {
   }
 
   /**
-   * Gets the id of the log.
+   * Gets the identifier of the log.
    *
    * @return int
+   *   The identifier.
    */
   public function id() {
     return $this->wid;
@@ -116,6 +117,7 @@ public function id() {
    * Gets the user id of the user who triggered the event.
    *
    * @return int
+   *   The user identifier.
    */
   public function getUid() {
     return $this->uid;
@@ -125,6 +127,7 @@ public function getUid() {
    * Gets the type of the log.
    *
    * @return string
+   *   The log type.
    */
   public function getType() {
     return $this->type;
@@ -134,6 +137,7 @@ public function getType() {
    * Gets the message of the log.
    *
    * @return string
+   *   The message.
    */
   public function getMessage() {
     return $this->message;
@@ -143,6 +147,7 @@ public function getMessage() {
    * Gets the variables of the log.
    *
    * @return string
+   *   The variables.
    */
   public function getVariables() {
     return $this->variables;
@@ -152,6 +157,7 @@ public function getVariables() {
    * Gets the severity of the log. Ranges from 0 (Emergency) to 7 (Debug).
    *
    * @return int
+   *   The log severity.
    */
   public function getSeverity() {
     return $this->severity;
@@ -161,6 +167,7 @@ public function getSeverity() {
    * Gets the link of the log.
    *
    * @return string
+   *   The link.
    */
   public function getLink() {
     return $this->link;
@@ -170,6 +177,7 @@ public function getLink() {
    * Gets the URL of the origin of the event.
    *
    * @return string
+   *   The location.
    */
   public function getLocation() {
     return $this->location;
@@ -179,6 +187,7 @@ public function getLocation() {
    * Gets the referer of the log.
    *
    * @return string
+   *   The referer.
    */
   public function getReferer() {
     return $this->referer;
@@ -188,6 +197,7 @@ public function getReferer() {
    * Gets the hostname of the user who triggered the event.
    *
    * @return string
+   *   The hostname.
    */
   public function getHostname() {
     return $this->hostname;
@@ -197,6 +207,7 @@ public function getHostname() {
    * Gets the unix timestamp of when the event occurred.
    *
    * @return int
+   *   The timestamp.
    */
   public function getTimestamp() {
     return $this->timestamp;
@@ -206,8 +217,10 @@ public function getTimestamp() {
    * For backward compatibility with $log->wid, $log->uid, $log->severity, etc.
    *
    * @param string $key
+   *   The key to be located.
    *
    * @return mixed
+   *   The value.
    */
   public function __get($key) {
     if (is_string($key) && isset($this->$key)) {
@@ -219,7 +232,10 @@ public function __get($key) {
    * For backward compatibility with $log->wid, $log->uid, $log->severity, etc.
    *
    * @param string $key
-   * @return boolean
+   *   The key in question.
+   *
+   * @return bool
+   *   TRUE if the key has a value.
    */
   public function __isset($key) {
     return is_string($key) && isset($this->$key);
@@ -229,6 +245,7 @@ public function __isset($key) {
    * Returns a log event represented as an array.
    *
    * @return array
+   *   The log event.
    */
   public function toArray() {
     $return = [];
diff --git a/core/modules/dblog/src/Storage/DbLogStorage.php b/core/modules/dblog/src/Storage/DbLogStorage.php
index f5dde9beaf..a3146b5ee1 100644
--- a/core/modules/dblog/src/Storage/DbLogStorage.php
+++ b/core/modules/dblog/src/Storage/DbLogStorage.php
@@ -6,7 +6,8 @@
 use Drupal\Core\Database\Connection;
 use Drupal\Core\Database\Database;
 use Drupal\Core\Database\DatabaseException;
-use Drupal\Core\Logger\LogMessageParserInterface;
+use Drupal\Core\Database\Query\PagerSelectExtender;
+use Drupal\Core\Database\Query\TableSortExtender;
 use Drupal\dblog\LogEntry;
 
 /**
@@ -115,8 +116,8 @@ public function load($id) {
    */
   public function loadMultiple(array $filter = [], array $sort = [], $limit = 50) {
     $query = $this->connection->select(self::TABLE, 'w')
-      ->extend('\Drupal\Core\Database\Query\PagerSelectExtender')
-      ->extend('\Drupal\Core\Database\Query\TableSortExtender');
+      ->extend(PagerSelectExtender::class)
+      ->extend(TableSortExtender::class);
 
     $query->fields('w', [
       'wid',
@@ -142,7 +143,7 @@ public function loadMultiple(array $filter = [], array $sort = [], $limit = 50)
 
     $logs = [];
     foreach ($result as $log_record) {
-      $logs[] = new LogEntry((array)$log_record);
+      $logs[] = new LogEntry((array) $log_record);
     }
 
     return $logs;
@@ -203,8 +204,8 @@ public function mostFrequentLogs($type) {
     $count_query->condition('type', $type);
 
     $query = $this->connection->select(self::TABLE, 'w')
-      ->extend('\Drupal\Core\Database\Query\PagerSelectExtender')
-      ->extend('\Drupal\Core\Database\Query\TableSortExtender');
+      ->extend(PagerSelectExtender::class)
+      ->extend(TableSortExtender::class);
     $query->addExpression('COUNT(wid)', 'count');
 
     $header = [
@@ -212,7 +213,7 @@ public function mostFrequentLogs($type) {
       ['field' => 'message'],
     ];
     $query = $query
-      ->fields('w', array('message', 'variables'))
+      ->fields('w', ['message', 'variables'])
       ->condition('w.type', $type)
       ->groupBy('message')
       ->groupBy('variables')
@@ -233,4 +234,5 @@ public function mostFrequentLogs($type) {
     }
     return $top_logs;
   }
+
 }
diff --git a/core/modules/dblog/src/Storage/DbLogStorageInterface.php b/core/modules/dblog/src/Storage/DbLogStorageInterface.php
index c863b507f0..0cecf75980 100644
--- a/core/modules/dblog/src/Storage/DbLogStorageInterface.php
+++ b/core/modules/dblog/src/Storage/DbLogStorageInterface.php
@@ -23,7 +23,7 @@ public function save(LogEntry $log);
    * @param int $id
    *   The ID of the log entry.
    *
-   * @return Drupal\dblog\LogEntry|NULL
+   * @return Drupal\dblog\LogEntry|null
    *   The log entry for the given $id if it exists, or NULL otherwise.
    */
   public function load($id);
diff --git a/core/modules/dblog/tests/src/Kernel/DbLogStorageTest.php b/core/modules/dblog/tests/src/Kernel/DbLogStorageTest.php
index 05972de886..80eabfdbc6 100644
--- a/core/modules/dblog/tests/src/Kernel/DbLogStorageTest.php
+++ b/core/modules/dblog/tests/src/Kernel/DbLogStorageTest.php
@@ -24,7 +24,7 @@ protected function setUp() {
     parent::setUp();
 
     $this->installEntitySchema('user');
-    $this->installSchema('dblog', array('watchdog'));
+    $this->installSchema('dblog', ['watchdog']);
   }
 
   /**
@@ -49,7 +49,7 @@ public function testLoad() {
    * @covers ::loadMultiple
    */
   public function testGetLoadMultiple() {
-    for ($a = 1; $a <= 30 ; $a += 3) {
+    for ($a = 1; $a <= 30; $a += 3) {
       \Drupal::logger('dblog_test')->warning('Log entry ' . $a);
       $b = $a + 1;
       \Drupal::logger('dblog_test')->notice('Log entry ' . $b);
@@ -67,7 +67,9 @@ public function testGetLoadMultiple() {
 
     $filter = [
       'where' => 'w.severity = ?',
-      'args' => [RfcLogLevel::WARNING]
+      'args' => [
+        RfcLogLevel::WARNING,
+      ],
     ];
     // Get the first 5 warnings.
     $collection = \Drupal::service('storage.dblog')->loadMultiple($filter, [], 5);
@@ -81,7 +83,7 @@ public function testGetLoadMultiple() {
    * @covers ::deleteAll
    */
   public function testDeleteAll() {
-    for ($i = 1; $i <= 10 ; $i++) {
+    for ($i = 1; $i <= 10; $i++) {
       \Drupal::logger('dblog_test')->warning('Log entry ' . $i);
     }
 
@@ -98,8 +100,8 @@ public function testDeleteAll() {
    * @covers ::deleteOldItems
    */
   public function testDeleteOldItems() {
-    // Create 10 items
-    for ($i = 1; $i <= 10 ; $i++) {
+    // Create 10 items.
+    for ($i = 1; $i <= 10; $i++) {
       \Drupal::logger('dblog_test')->warning('Log entry ' . $i);
     }
 
@@ -128,8 +130,8 @@ public function testGetTypes() {
     $this->assertEquals([
       'dblog_test_1' => 'dblog_test_1',
       'dblog_test_2' => 'dblog_test_2',
-      'dblog_test_3' => 'dblog_test_3'
-      ], $log_types);
+      'dblog_test_3' => 'dblog_test_3',
+    ], $log_types);
   }
 
   /**
