@@ -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 | /** |
@@ -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 |
@@ -20,10 +20,10 @@ discard block |
||
20 | 20 | |
21 | 21 | return new Session($storage); |
22 | 22 | }, |
23 | - 'User' => function () { |
|
23 | + 'User' => function() { |
|
24 | 24 | return new Apps\ActiveRecord\User(); |
25 | 25 | }, |
26 | - 'Database' => function () { |
|
26 | + 'Database' => function() { |
|
27 | 27 | $capsule = new Capsule; |
28 | 28 | $capsule->addConnection(App::$Properties->get('database')); |
29 | 29 | $capsule->setAsGlobal(); // available from any places |
@@ -31,14 +31,14 @@ discard block |
||
31 | 31 | |
32 | 32 | return $capsule; |
33 | 33 | }, |
34 | - 'Mailer' => function () { |
|
34 | + 'Mailer' => function() { |
|
35 | 35 | $swiftTransport = Swift_MailTransport::newInstance(); |
36 | 36 | return Swift_Mailer::newInstance($swiftTransport); |
37 | 37 | }, |
38 | - 'Captcha' => function () { |
|
38 | + 'Captcha' => function() { |
|
39 | 39 | return new Extend\Core\Captcha\Gregwar(); |
40 | 40 | }, |
41 | - 'Cache' => function () { |
|
41 | + 'Cache' => function() { |
|
42 | 42 | phpFastCache::setup('path', root . '/Private/Cache'); |
43 | 43 | return \phpFastCache(); |
44 | 44 | } |
@@ -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 |