Passed
Push — master ( aaaee4...c2a29b )
by Mihail
04:03
created
Apps/View/Admin/default/profile/field_list.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@
 block discarded – undo
66 66
     ]
67 67
 ]);
68 68
     ?>
69
-<?php else: ?>
69
+<?php else {
70
+    : ?>
70 71
     <p>No additional fields is added!</p>
71
-<?php endif; ?>
72 72
\ No newline at end of file
73
+<?php endif;
74
+}
75
+?>
73 76
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Admin/default/user/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Apps/View/Admin/default/user/group_list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Apps/View/Front/default/content/read.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,17 +67,23 @@
 block discarded – undo
67 67
         <?php if ($properties['author'] === true): ?>
68 68
             <?php if ($model->authorId !== null && $model->authorId > 0): ?>
69 69
                 <span><i class="fa fa-user"></i><?= Url::link(['profile/show', $model->authorId], $model->authorName, ['itemprop' => 'author']) ?></span>
70
-            <?php else: ?>
70
+            <?php else {
71
+    : ?>
71 72
                 <span><i class="fa fa-user"></i><s><?= $model->authorName ?></s></span>
72
-            <?php endif; ?>
73
+            <?php endif;
74
+}
75
+?>
73 76
         <?php endif; ?>
74 77
         <?php if ($properties['views'] === true): ?>
75 78
         <span><i class="fa fa-eye"></i><?= $model->views ?></span>
76 79
         <?php endif ?>
77 80
     </div>
78
-    <?php else: ?>
81
+    <?php else {
82
+    : ?>
79 83
     <hr />
80
-    <?php endif; ?>
84
+    <?php endif;
85
+}
86
+?>
81 87
     <?php if ($trash): ?>
82 88
     <p class="alert alert-danger"><i class="fa fa-trash-o"></i> <?= __('This content is placed in trash') ?></p>
83 89
     <?php endif; ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/layout/main.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,13 +109,16 @@
 block discarded – undo
109 109
                 <?php foreach ($this->breadcrumbs as $bUrl => $bText): ?>
110 110
                     <?php if (Obj::isLikeInt($bUrl)): // only text ?>
111 111
                     <li class="active"><?= \App::$Security->strip_tags($bText) ?></li>
112
-                    <?php else: ?>
112
+                    <?php else {
113
+    : ?>
113 114
                     <li>
114 115
                         <a href="<?= \App::$Security->strip_tags($bUrl) ?>">
115 116
                             <?= \App::$Security->strip_tags($bText) ?>
116 117
                         </a>
117 118
                     </li>
118
-                    <?php endif; ?>
119
+                    <?php endif;
120
+}
121
+?>
119 122
                 <?php endforeach; ?>
120 123
             </ol>
121 124
             <?php endif; ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/profile/show.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,8 @@  discard block
 block discarded – undo
59 59
                 </a>
60 60
             </div>
61 61
         </div>
62
-        <?php else: ?>
62
+        <?php else {
63
+    : ?>
63 64
         <div class="row">
64 65
             <div class="col-md-8" style="padding-right: 0;">
65 66
                 <a href="javascript:void(0);" class="btn btn-block <?= $rateClass ?>">
@@ -76,7 +77,9 @@  discard block
 block discarded – undo
76 77
                 <a href="javascript:void(0);" class="btn btn-block btn-danger" id="reduceRating">-</a>
77 78
             </div>
78 79
         </div>
79
-        <?php endif; ?>
80
+        <?php endif;
81
+}
82
+?>
80 83
         <?php endif; ?>
81 84
         <?php
82 85
         $userMenu = null;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         <?php
45 45
         if ($ratingOn):
46 46
             $rateClass = 'btn-default';
47
-            $rateValue = (int)$user->getProfile()->rating;
47
+            $rateValue = (int) $user->getProfile()->rating;
48 48
             if ($user->getProfile()->rating > 0) {
49 49
                 $rateClass = 'btn-info';
50 50
             } elseif ($user->getProfile()->rating < 0) {
@@ -226,8 +226,7 @@  discard block
 block discarded – undo
226 226
                     continue;
227 227
                 }
228 228
                 $referNickname = ($referObject->getProfile()->nick == null ?
229
-                    __('No name') . ' <sup>id' . $referObject->getId() . '</sup>' :
230
-                    \App::$Security->strip_tags($referObject->getProfile()->nick));
229
+                    __('No name') . ' <sup>id' . $referObject->getId() . '</sup>' : \App::$Security->strip_tags($referObject->getProfile()->nick));
231 230
                 ?>
232 231
                 <div class="row object-lightborder" id="wall-post-<?= $post->id ?>">
233 232
                     <div class="col-md-2">
Please login to merge, or discard this patch.
Extend/Core/Arch/FrontAppController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Extend/Core/Arch/FrontWidget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Private/Config/Permissions.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -1,41 +1,41 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3 3
 return array (
4
-  0 => 'global/write',
5
-  1 => 'global/modify',
6
-  2 => 'global/file',
7
-  3 => 'global/all',
8
-  4 => 'Admin/Application/Index',
9
-  5 => 'Admin/Application/Turn',
10
-  6 => 'Admin/Content/Index',
11
-  7 => 'Admin/Content/Update',
12
-  8 => 'Admin/Content/Delete',
13
-  9 => 'Admin/Content/Restore',
14
-  10 => 'Admin/Content/Clear',
15
-  11 => 'Admin/Content/Categories',
16
-  12 => 'Admin/Content/Categorydelete',
17
-  13 => 'Admin/Content/Categoryupdate',
18
-  14 => 'Admin/Content/Settings',
19
-  15 => 'Admin/Main/Index',
20
-  16 => 'Admin/Main/Settings',
21
-  17 => 'Admin/Main/Files',
22
-  18 => 'Admin/Main/Antivirus',
23
-  19 => 'Admin/Main/Debugcookie',
24
-  20 => 'Admin/Main/Routing',
25
-  21 => 'Admin/Main/Addroute',
26
-  22 => 'Admin/Main/Deleteroute',
27
-  23 => 'Admin/Profile/Index',
28
-  24 => 'Admin/Profile/Delete',
29
-  25 => 'Admin/Profile/Update',
30
-  26 => 'Admin/Profile/Fieldlist',
31
-  27 => 'Admin/Profile/Fieldupdate',
32
-  28 => 'Admin/Profile/Fielddelete',
33
-  29 => 'Admin/Profile/Settings',
34
-  30 => 'Admin/User/Index',
35
-  31 => 'Admin/User/Update',
36
-  32 => 'Admin/User/Delete',
37
-  33 => 'Admin/User/Grouplist',
38
-  34 => 'Admin/User/GroupUpdate',
39
-  35 => 'Admin/User/Settings',
40
-  36 => 'Admin/User/Invite',
4
+    0 => 'global/write',
5
+    1 => 'global/modify',
6
+    2 => 'global/file',
7
+    3 => 'global/all',
8
+    4 => 'Admin/Application/Index',
9
+    5 => 'Admin/Application/Turn',
10
+    6 => 'Admin/Content/Index',
11
+    7 => 'Admin/Content/Update',
12
+    8 => 'Admin/Content/Delete',
13
+    9 => 'Admin/Content/Restore',
14
+    10 => 'Admin/Content/Clear',
15
+    11 => 'Admin/Content/Categories',
16
+    12 => 'Admin/Content/Categorydelete',
17
+    13 => 'Admin/Content/Categoryupdate',
18
+    14 => 'Admin/Content/Settings',
19
+    15 => 'Admin/Main/Index',
20
+    16 => 'Admin/Main/Settings',
21
+    17 => 'Admin/Main/Files',
22
+    18 => 'Admin/Main/Antivirus',
23
+    19 => 'Admin/Main/Debugcookie',
24
+    20 => 'Admin/Main/Routing',
25
+    21 => 'Admin/Main/Addroute',
26
+    22 => 'Admin/Main/Deleteroute',
27
+    23 => 'Admin/Profile/Index',
28
+    24 => 'Admin/Profile/Delete',
29
+    25 => 'Admin/Profile/Update',
30
+    26 => 'Admin/Profile/Fieldlist',
31
+    27 => 'Admin/Profile/Fieldupdate',
32
+    28 => 'Admin/Profile/Fielddelete',
33
+    29 => 'Admin/Profile/Settings',
34
+    30 => 'Admin/User/Index',
35
+    31 => 'Admin/User/Update',
36
+    32 => 'Admin/User/Delete',
37
+    33 => 'Admin/User/Grouplist',
38
+    34 => 'Admin/User/GroupUpdate',
39
+    35 => 'Admin/User/Settings',
40
+    36 => 'Admin/User/Invite',
41 41
 );
42 42
\ No newline at end of file
Please login to merge, or discard this patch.