@@ -51,7 +51,7 @@ |
||
51 | 51 | $pathProperty = [ |
52 | 52 | 'class' => 'form-control' |
53 | 53 | ]; |
54 | -if ((int)$model->id == '1') { |
|
54 | +if ((int) $model->id == '1') { |
|
55 | 55 | $pathProperty['disabled'] = ''; |
56 | 56 | } else { |
57 | 57 | echo $form->field('dependId', 'select', ['class' => 'form-control', 'options' => $model->categoryList(), 'optionsKey' => true], __('Select owner category for this category')); |
@@ -110,7 +110,7 @@ |
||
110 | 110 | ['type' => 'tab', 'text' => __('Gallery'), 'content' => $galleryTab, 'html' => true, '!secure' => true], |
111 | 111 | ['type' => 'tab', 'text' => __('Other'), 'content' => $otherTab, 'html' => true, '!secure' => true] |
112 | 112 | ] |
113 | -]);?> |
|
113 | +]); ?> |
|
114 | 114 | |
115 | 115 | <?= $form->field('galleryFreeId', 'hidden') ?> |
116 | 116 | <?= $form->submitButton(__('Save'), ['class' => 'btn btn-primary']) ?> |
@@ -13,7 +13,7 @@ |
||
13 | 13 | <script> |
14 | 14 | window.jQ.push(function() { |
15 | 15 | $.fn.runscan = function (first) { |
16 | - $.getJSON("<?= \App::$Alias->scriptUrl . '/api/main/antivirus?lang=' . \App::$Request->getLanguage() ?> . ", function (data) { |
|
16 | + $.getJSON("<?= \App::$Alias->scriptUrl . '/api/main/antivirus?lang=' . \App::$Request->getLanguage() ?> . ", function (data) { |
|
17 | 17 | if (first) { |
18 | 18 | totalScan = data.left; |
19 | 19 | progress = 0; |
@@ -35,7 +35,7 @@ |
||
35 | 35 | 'items' => [ |
36 | 36 | [['text' => $model->getLabel('name')], ['text' => $model->name[\App::$Request->getLanguage()]]], |
37 | 37 | [['text' => $model->getLabel('type')], ['text' => $model->type]], |
38 | - [['text' => $model->getLabel('reg_exp')], ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("'.$model->reg_exp.'", $input)']], |
|
38 | + [['text' => $model->getLabel('reg_exp')], ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("' . $model->reg_exp . '", $input)']], |
|
39 | 39 | ] |
40 | 40 | ] |
41 | 41 | ]); |
@@ -9,4 +9,4 @@ |
||
9 | 9 | ['type' => 'link', 'text' => __('Group management'), 'link' => ['user/grouplist']], |
10 | 10 | ['type' => 'link', 'text' => __('Settings'), 'link' => ['user/settings']] |
11 | 11 | ] |
12 | -]);?> |
|
13 | 12 | \ No newline at end of file |
13 | +]); ?> |
|
14 | 14 | \ No newline at end of file |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | <?php |
26 | 26 | $items = []; |
27 | -foreach($records as $role) { |
|
27 | +foreach ($records as $role) { |
|
28 | 28 | $permissions = explode(';', $role->permissions); |
29 | 29 | $permissionsLabel = null; |
30 | 30 | foreach ($permissions as $perm) { |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | $catConfigs = []; |
17 | 17 | foreach ($model->categoryData['configs'] as $key=>$value) { |
18 | - $catConfigs[$key] = (int)$value === 1; |
|
18 | + $catConfigs[$key] = (int) $value === 1; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | $catMeta = [ |
@@ -43,13 +43,13 @@ discard block |
||
43 | 43 | |
44 | 44 | <?php |
45 | 45 | $properties = [ |
46 | - 'date' => (int)$model->getCategory()->getProperty('showDate') === 1, |
|
47 | - 'author' => (int)$model->getCategory()->getProperty('showAuthor') === 1, |
|
48 | - 'views' => (int)$model->getCategory()->getProperty('showViews') === 1, |
|
49 | - 'category' => (int)$model->getCategory()->getProperty('showCategory') === 1 |
|
46 | + 'date' => (int) $model->getCategory()->getProperty('showDate') === 1, |
|
47 | + 'author' => (int) $model->getCategory()->getProperty('showAuthor') === 1, |
|
48 | + 'views' => (int) $model->getCategory()->getProperty('showViews') === 1, |
|
49 | + 'category' => (int) $model->getCategory()->getProperty('showCategory') === 1 |
|
50 | 50 | ]; |
51 | -$showComments = (int)$model->getCategory()->getProperty('showComments') === 1; |
|
52 | -$showPoster = (int)$model->getCategory()->getProperty('showPoster') === 1; |
|
51 | +$showComments = (int) $model->getCategory()->getProperty('showComments') === 1; |
|
52 | +$showPoster = (int) $model->getCategory()->getProperty('showPoster') === 1; |
|
53 | 53 | |
54 | 54 | \App::$Cache->set('test.me.baby.1', ['key' => 'value']); |
55 | 55 | ?> |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | </div> |
97 | 97 | </div> |
98 | 98 | </div> |
99 | - <?php endif ;?> |
|
99 | + <?php endif; ?> |
|
100 | 100 | <?= $model->text ?> |
101 | 101 | </div> |
102 | 102 | <?php if ($model->galleryItems !== null && Obj::isArray($model->galleryItems)): ?> |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | </div> |
122 | 122 | </div> |
123 | 123 | <?php endif; ?> |
124 | - <?php if ((int)$configs['keywordsAsTags'] === 1): ?> |
|
124 | + <?php if ((int) $configs['keywordsAsTags'] === 1): ?> |
|
125 | 125 | <div id="content-tags"> |
126 | 126 | <?php |
127 | 127 | if (Obj::isArray($model->metaKeywords) && count($model->metaKeywords) > 0 && Str::length($model->metaKeywords[0]) > 0) { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | */ |
69 | 69 | public function getConfigs() |
70 | 70 | { |
71 | - return (array)unserialize($this->application->configs); |
|
71 | + return (array) unserialize($this->application->configs); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |