@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return function ($step = NULL, $params = []) { |
|
| 3 | +return function($step = NULL, $params = []) { |
|
| 4 | 4 | |
| 5 | 5 | $groups = [ |
| 6 | 6 | [ |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return function ($step = NULL, $params = []) { |
|
| 3 | +return function ($step = null, $params = []) { |
|
| 4 | 4 | App::$cur->db->createTable('notifications_notification', [ |
| 5 | 5 | 'notification_id' => 'pk', |
| 6 | 6 | 'notification_chanel_id' => 'int(11) UNSIGNED NOT NULL', |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public static function file($path, $resize = '', $resizeCrop = '', $resizePos = '') { |
| 23 | 23 | $absolutePath = App::$cur->staticLoader->parsePath($path); |
| 24 | - $convet = FALSE; |
|
| 24 | + $convet = false; |
|
| 25 | 25 | if (!file_exists($absolutePath) && file_exists(mb_convert_encoding($absolutePath, 'Windows-1251', 'UTF-8'))) { |
| 26 | 26 | $absolutePath = mb_convert_encoding($absolutePath, 'Windows-1251', 'UTF-8'); |
| 27 | 27 | $convet = true; |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | return true; |
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | - return FALSE; |
|
| 84 | + return false; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | <div class="alert alert-<?= $msg['status']; ?> alert-dismissable"> |
| 5 | 5 | <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> |
| 6 | 6 | <strong><?php |
| 7 | - switch ($msg['status']) { |
|
| 8 | - case 'success': |
|
| 7 | + switch ($msg['status']) { |
|
| 8 | + case 'success': |
|
| 9 | 9 | echo 'Успех!'; |
| 10 | - break; |
|
| 11 | - case 'danger': |
|
| 10 | + break; |
|
| 11 | + case 'danger': |
|
| 12 | 12 | case 'warning': |
| 13 | 13 | echo 'Внимание!'; |
| 14 | - break; |
|
| 15 | - default: |
|
| 14 | + break; |
|
| 15 | + default: |
|
| 16 | 16 | echo 'Информация.'; |
| 17 | - } |
|
| 18 | - ?></strong> <?= $msg['text']; ?> |
|
| 17 | + } |
|
| 18 | + ?></strong> <?= $msg['text']; ?> |
|
| 19 | 19 | </div> |
| 20 | 20 | <?php |
| 21 | 21 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | Tools::redirect('/admin', 'У вас нет прав доступа для просмотра этого объекта', 'danger'); |
| 44 | 44 | } |
| 45 | 45 | $item = $fullModelName::get($pk); |
| 46 | - $this->view->setTitle(($fullModelName::$objectName ? $fullModelName::$objectName : $fullModelName) . ($item ? ( ' - ' . $item->name()) : '')); |
|
| 46 | + $this->view->setTitle(($fullModelName::$objectName ? $fullModelName::$objectName : $fullModelName) . ($item ? (' - ' . $item->name()) : '')); |
|
| 47 | 47 | if (!empty($_POST['comment'])) { |
| 48 | 48 | $comment = new Dashboard\Comment(); |
| 49 | 49 | $comment->text = $_POST['comment']; |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <div class="row"> |
| 2 | 2 | <div class="col-lg-12"> |
| 3 | 3 | <?php |
| 4 | - $dataManager = new Ui\DataManager('Apps\App', 'setup'); |
|
| 5 | - $dataManager->draw(); |
|
| 6 | - ?> |
|
| 4 | + $dataManager = new Ui\DataManager('Apps\App', 'setup'); |
|
| 5 | + $dataManager->draw(); |
|
| 6 | + ?> |
|
| 7 | 7 | </div> |
| 8 | 8 | <div class="col-lg-12"> |
| 9 | 9 | <?php |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <tfoot> |
| 2 | 2 | <tr> |
| 3 | 3 | <?php |
| 4 | - foreach ($table->cols as $col) { |
|
| 5 | - if (is_string($col)) { |
|
| 6 | - echo "<th>{$col}</th>"; |
|
| 7 | - } else { |
|
| 8 | - echo Html::el('th', !empty($col['attributes']) ? $col['attributes'] : [], $col['text']); |
|
| 9 | - } |
|
| 10 | - } |
|
| 11 | - ?> |
|
| 4 | + foreach ($table->cols as $col) { |
|
| 5 | + if (is_string($col)) { |
|
| 6 | + echo "<th>{$col}</th>"; |
|
| 7 | + } else { |
|
| 8 | + echo Html::el('th', !empty($col['attributes']) ? $col['attributes'] : [], $col['text']); |
|
| 9 | + } |
|
| 10 | + } |
|
| 11 | + ?> |
|
| 12 | 12 | </tr> |
| 13 | 13 | </tfoot> |
| 14 | 14 | \ No newline at end of file |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | return [ |
| 12 | 12 | 'classes' => ['Ui\DataManager'], |
| 13 | 13 | 'get' => function($element) { |
| 14 | -$access = NULL; |
|
| 14 | +$access = null; |
|
| 15 | 15 | $path = [ |
| 16 | 16 | 'models', |
| 17 | 17 | $element->modelName, |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | return [ |
| 12 | 12 | 'classes' => ['Ui\DataManager'], |
| 13 | 13 | 'get' => function($element) { |
| 14 | -$access = NULL; |
|
| 14 | +$access = null; |
|
| 15 | 15 | $path = [ |
| 16 | 16 | 'models', |
| 17 | 17 | $element->modelName, |