Passed
Push — master ( 3db37c...11f6ba )
by Mihail
04:15
created
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
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 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) {
Please login to merge, or discard this patch.
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.
Extend/Core/Arch/AdminAppController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
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
     /**
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/Default.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -1,34 +1,34 @@
 block discarded – undo
1 1
 <?php return [
2
-	'basePath' => '/',
3
-	'passwordSalt' => '$2a$10$1o81mUjA4NhQp8nSeaFmN8',
4
-	'debug' => [
5
-		'all' => false,
6
-		'cookie' => [
7
-			'key' => 'fdebug',
8
-			'value' => 'jiSpq941Am'
9
-		]
10
-	],
11
-	'theme' => [
12
-		'Front' => 'default',
13
-		'Admin' => 'default'
14
-	],
15
-	'database' => [
16
-		'driver' => 'mysql',
17
-		'host' => '127.0.0.1',
18
-		'database' => 'ffcms3',
19
-		'username' => 'mysql',
20
-		'password' => 'mysql',
21
-		'charset' => 'utf8',
22
-		'collation' => 'utf8_unicode_ci',
23
-		'prefix' => 'ffcms_'
24
-	],
25
-	'adminEmail' => '[email protected]',
26
-	'baseLanguage' => 'en',
27
-	'multiLanguage' => true,
28
-	'singleLanguage' => 'en',
29
-	'languages' => [
30
-		'en',
31
-		'ru'
32
-	],
33
-	'languageDomainAlias' => false
2
+    'basePath' => '/',
3
+    'passwordSalt' => '$2a$10$1o81mUjA4NhQp8nSeaFmN8',
4
+    'debug' => [
5
+        'all' => false,
6
+        'cookie' => [
7
+            'key' => 'fdebug',
8
+            'value' => 'jiSpq941Am'
9
+        ]
10
+    ],
11
+    'theme' => [
12
+        'Front' => 'default',
13
+        'Admin' => 'default'
14
+    ],
15
+    'database' => [
16
+        'driver' => 'mysql',
17
+        'host' => '127.0.0.1',
18
+        'database' => 'ffcms3',
19
+        'username' => 'mysql',
20
+        'password' => 'mysql',
21
+        'charset' => 'utf8',
22
+        'collation' => 'utf8_unicode_ci',
23
+        'prefix' => 'ffcms_'
24
+    ],
25
+    'adminEmail' => '[email protected]',
26
+    'baseLanguage' => 'en',
27
+    'multiLanguage' => true,
28
+    'singleLanguage' => 'en',
29
+    'languages' => [
30
+        'en',
31
+        'ru'
32
+    ],
33
+    'languageDomainAlias' => false
34 34
 ];
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
Private/Config/Object.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Private/Config/Permissions.php 2 patches
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -1,39 +1,39 @@
 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/Application/Install',
11
-  7 => 'Admin/Content/Index',
12
-  8 => 'Admin/Content/Update',
13
-  9 => 'Admin/Content/Delete',
14
-  10 => 'Admin/Content/Restore',
15
-  11 => 'Admin/Content/Clear',
16
-  12 => 'Admin/Content/Categories',
17
-  13 => 'Admin/Content/Categorydelete',
18
-  14 => 'Admin/Content/Categoryupdate',
19
-  15 => 'Admin/Content/Settings',
20
-  16 => 'Admin/Main/Index',
21
-  17 => 'Admin/Main/Settings',
22
-  18 => 'Admin/Main/Files',
23
-  19 => 'Admin/Main/Antivirus',
24
-  20 => 'Admin/Main/Debugcookie',
25
-  21 => 'Admin/Profile/Index',
26
-  22 => 'Admin/Profile/Delete',
27
-  23 => 'Admin/Profile/Update',
28
-  24 => 'Admin/Profile/Fieldlist',
29
-  25 => 'Admin/Profile/Fieldupdate',
30
-  26 => 'Admin/Profile/Fielddelete',
31
-  27 => 'Admin/Profile/Settings',
32
-  28 => 'Admin/User/Index',
33
-  29 => 'Admin/User/Update',
34
-  30 => 'Admin/User/Delete',
35
-  31 => 'Admin/User/Grouplist',
36
-  32 => 'Admin/User/GroupUpdate',
37
-  33 => 'Admin/User/Settings',
38
-  34 => '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/Application/Install',
11
+    7 => 'Admin/Content/Index',
12
+    8 => 'Admin/Content/Update',
13
+    9 => 'Admin/Content/Delete',
14
+    10 => 'Admin/Content/Restore',
15
+    11 => 'Admin/Content/Clear',
16
+    12 => 'Admin/Content/Categories',
17
+    13 => 'Admin/Content/Categorydelete',
18
+    14 => 'Admin/Content/Categoryupdate',
19
+    15 => 'Admin/Content/Settings',
20
+    16 => 'Admin/Main/Index',
21
+    17 => 'Admin/Main/Settings',
22
+    18 => 'Admin/Main/Files',
23
+    19 => 'Admin/Main/Antivirus',
24
+    20 => 'Admin/Main/Debugcookie',
25
+    21 => 'Admin/Profile/Index',
26
+    22 => 'Admin/Profile/Delete',
27
+    23 => 'Admin/Profile/Update',
28
+    24 => 'Admin/Profile/Fieldlist',
29
+    25 => 'Admin/Profile/Fieldupdate',
30
+    26 => 'Admin/Profile/Fielddelete',
31
+    27 => 'Admin/Profile/Settings',
32
+    28 => 'Admin/User/Index',
33
+    29 => 'Admin/User/Update',
34
+    30 => 'Admin/User/Delete',
35
+    31 => 'Admin/User/Grouplist',
36
+    32 => 'Admin/User/GroupUpdate',
37
+    33 => 'Admin/User/Settings',
38
+    34 => 'Admin/User/Invite',
39 39
 );
40 40
\ No newline at end of file
Please login to merge, or discard this patch.
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.
Private/Config/Routing.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php return [
2
-	'Alias' => [
3
-		'Front' => [
4
-			'/' => '/content/list/news',
5
-			'/test' => '/content/read/o-saite'
6
-		]
7
-	],
8
-	'Callback' => [
9
-		'Front' => [
10
-			'Demo' => '\Apps\Controller\Front\Main'
11
-		]
12
-	]
2
+    'Alias' => [
3
+        'Front' => [
4
+            '/' => '/content/list/news',
5
+            '/test' => '/content/read/o-saite'
6
+        ]
7
+    ],
8
+    'Callback' => [
9
+        'Front' => [
10
+            'Demo' => '\Apps\Controller\Front\Main'
11
+        ]
12
+    ]
13 13
 ];
14 14
\ No newline at end of file
Please login to merge, or discard this patch.