Commit 58a39e19 authored by Tobias Munk's avatar Tobias Munk

code-style fixes

parent 13307e29
Pipeline #8597 failed with stages
......@@ -11,7 +11,9 @@ $dotenv->required(['APP_LANGUAGES']);
$dotenv->required(['DATABASE_DSN', 'DATABASE_USER', 'DATABASE_PASSWORD']);
if (!preg_match('/^[a-z0-9_-]{3,16}$/', getenv('APP_NAME'))) {
throw new \Dotenv\Exception\ValidationException('APP_NAME must only be lowercase, dash or underscore and 3-16 characters long.');
throw new \Dotenv\Exception\ValidationException(
'APP_NAME must only be lowercase, dash or underscore and 3-16 characters long.'
);
}
if (is_file(__DIR__.'/../version')) {
......
......@@ -11,8 +11,6 @@ namespace app\modules\backend;
* file that was distributed with this source code.
*/
use yii\helpers\ArrayHelper;
/**
* Class Module.
*
......@@ -20,5 +18,4 @@ use yii\helpers\ArrayHelper;
*/
class Module extends \yii\base\Module
{
}
......@@ -8,18 +8,18 @@ use yii\widgets\ListView;
?>
<h1>Configuration</h1>
<h1>Configuration</h1>
<h2>Controllers</h2>
<div class="box">
<?= ListView::widget(
[
'dataProvider' => $loadedModulesDataProvider,
'itemView' => '_module',
]
)
?>
</div>
<div class="box">
<?= ListView::widget(
[
'dataProvider' => $loadedModulesDataProvider,
'itemView' => '_module',
]
)
?>
</div>
<h2>Params</h2>
......@@ -51,7 +51,7 @@ use yii\widgets\ListView;
</div>
<?php endforeach ?>
<h2>Modules</h2>
<h2>Modules</h2>
<?php foreach ($modules as $name => $element): ?>
<div class="row">
<div class="col-sm-2">
......
......@@ -167,7 +167,10 @@ $this->title = $this->title.' [Backend]';
</div>
<!-- /.content-wrapper -->
<footer class="main-footer">
<strong><?= getenv('APP_NAME') ?>-<?= APP_VERSION ?></strong> built with <a href="http://phundament.com" target="_blank">phd</a>
<strong>
<?= getenv('APP_NAME') ?>-<?= APP_VERSION ?></strong>
built with
<a href="http://phundament.com" target="_blank">phd</a>
</footer>
</div>
<!-- ./wrapper -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment