Skip to content

Commit be1c3b7

Browse files
committed
Fixing drupal standards
1 parent 0e9f793 commit be1c3b7

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/Controller/LoggingController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
use Drupal\os2web_logging\Form\SettingsForm;
88

99
/**
10-
* Class LoggingController.
11-
*
12-
* @package Drupal\os2web_logging\Controller
10+
* Provides status page.
1311
*/
1412
class LoggingController extends ControllerBase {
1513

src/Form/SettingsForm.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
use Drupal\os2web_logging\Entity\AccessLog;
1111

1212
/**
13-
* Class SettingsForm.
14-
*
15-
* @package Drupal\os2web_logging\Form
13+
* Logging settings form.
1614
*/
1715
class SettingsForm extends ConfigFormBase {
1816

@@ -287,10 +285,15 @@ protected function importLogsFromUris(array $uris) {
287285
}
288286
fclose($handle);
289287

290-
\Drupal::messenger()->addMessage(t('Log messages @imported out of @total were imported', ['@imported' => $imported_items_counter, '@total' => $lines_counter]));
288+
\Drupal::messenger()
289+
->addMessage(t('Log messages @imported out of @total were imported', [
290+
'@imported' => $imported_items_counter,
291+
'@total' => $lines_counter,
292+
]));
291293
}
292294
else {
293-
\Drupal::messenger()->addError(t('Could not import from file @file', ['@file' => $uri]));
295+
\Drupal::messenger()
296+
->addError(t('Could not import from file @file', ['@file' => $uri]));
294297
}
295298
}
296299

0 commit comments

Comments
 (0)