@@ -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) { |
@@ -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) { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | // check if disabled (0 = enabled, anything else = on) |
54 | - return (int)$this->application->disabled === 0; |
|
54 | + return (int) $this->application->disabled === 0; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -63,10 +63,10 @@ discard block |
||
63 | 63 | if ($this->configs !== null) { |
64 | 64 | return $this->configs; |
65 | 65 | } |
66 | - $configs = (array)unserialize($this->application->configs); // data always stored like a "string" objects |
|
66 | + $configs = (array) unserialize($this->application->configs); // data always stored like a "string" objects |
|
67 | 67 | foreach ($configs as $cfg => $value) { |
68 | 68 | if (Obj::isLikeInt($value)) { |
69 | - $configs[$cfg] = (int)$value; // convert string 1 "1" to int 1 1 |
|
69 | + $configs[$cfg] = (int) $value; // convert string 1 "1" to int 1 1 |
|
70 | 70 | } |
71 | 71 | } |
72 | 72 | $this->configs = $configs; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | // if widget is disabled - lets return nothing |
31 | - if ((int)$wData->disabled === 1) { |
|
31 | + if ((int) $wData->disabled === 1) { |
|
32 | 32 | return null; |
33 | 33 | } |
34 | 34 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return array ( |
|
3 | +return array( |
|
4 | 4 | 0 => 'global/write', |
5 | 5 | 1 => 'global/modify', |
6 | 6 | 2 => 'global/file', |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $query = new UserRecords(); |
27 | 27 | |
28 | 28 | // set current page and offset |
29 | - $page = (int)App::$Request->query->get('page'); |
|
29 | + $page = (int) App::$Request->query->get('page'); |
|
30 | 30 | $offset = $page * self::ITEM_PER_PAGE; |
31 | 31 | |
32 | 32 | // build pagination |
@@ -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 |
@@ -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 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | $cfg['database'] = $this->db; |
71 | 71 | $cfg['adminEmail'] = $this->email; |
72 | 72 | $cfg['singleLanguage'] = $this->singleLanguage; |
73 | - $cfg['multiLanguage'] = (bool)$this->multiLanguage; |
|
73 | + $cfg['multiLanguage'] = (bool) $this->multiLanguage; |
|
74 | 74 | $cfg['passwordSalt'] = '$2a$07$' . Str::randomLatinNumeric(mt_rand(21, 30)) . '$'; |
75 | 75 | $cfg['debug']['cookie']['key'] = 'fdebug_' . Str::randomLatinNumeric(mt_rand(4, 16)); |
76 | 76 | $cfg['debug']['cookie']['value'] = Str::randomLatinNumeric(mt_rand(32, 128)); |