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']); ...@@ -11,7 +11,9 @@ $dotenv->required(['APP_LANGUAGES']);
$dotenv->required(['DATABASE_DSN', 'DATABASE_USER', 'DATABASE_PASSWORD']); $dotenv->required(['DATABASE_DSN', 'DATABASE_USER', 'DATABASE_PASSWORD']);
if (!preg_match('/^[a-z0-9_-]{3,16}$/', getenv('APP_NAME'))) { 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')) { if (is_file(__DIR__.'/../version')) {
......
...@@ -11,8 +11,6 @@ namespace app\modules\backend; ...@@ -11,8 +11,6 @@ namespace app\modules\backend;
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
use yii\helpers\ArrayHelper;
/** /**
* Class Module. * Class Module.
* *
...@@ -20,5 +18,4 @@ use yii\helpers\ArrayHelper; ...@@ -20,5 +18,4 @@ use yii\helpers\ArrayHelper;
*/ */
class Module extends \yii\base\Module class Module extends \yii\base\Module
{ {
} }
...@@ -8,18 +8,18 @@ use yii\widgets\ListView; ...@@ -8,18 +8,18 @@ use yii\widgets\ListView;
?> ?>
<h1>Configuration</h1> <h1>Configuration</h1>
<h2>Controllers</h2> <h2>Controllers</h2>
<div class="box"> <div class="box">
<?= ListView::widget( <?= ListView::widget(
[ [
'dataProvider' => $loadedModulesDataProvider, 'dataProvider' => $loadedModulesDataProvider,
'itemView' => '_module', 'itemView' => '_module',
] ]
) )
?> ?>
</div> </div>
<h2>Params</h2> <h2>Params</h2>
...@@ -51,7 +51,7 @@ use yii\widgets\ListView; ...@@ -51,7 +51,7 @@ use yii\widgets\ListView;
</div> </div>
<?php endforeach ?> <?php endforeach ?>
<h2>Modules</h2> <h2>Modules</h2>
<?php foreach ($modules as $name => $element): ?> <?php foreach ($modules as $name => $element): ?>
<div class="row"> <div class="row">
<div class="col-sm-2"> <div class="col-sm-2">
......
...@@ -167,7 +167,10 @@ $this->title = $this->title.' [Backend]'; ...@@ -167,7 +167,10 @@ $this->title = $this->title.' [Backend]';
</div> </div>
<!-- /.content-wrapper --> <!-- /.content-wrapper -->
<footer class="main-footer"> <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> </footer>
</div> </div>
<!-- ./wrapper --> <!-- ./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