Passed
Push — master ( 8f5376...4142cd )
by Mihail
12:41
created
Apps/View/Front/default/profile/show.php 1 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.
Apps/View/Install/default/main/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 ]);
55 55
 ?>
56 56
 
57
-<?php if($model->checkAll()): ?>
57
+<?php if ($model->checkAll()): ?>
58 58
     <?= \Ffcms\Core\Helper\Url::link('main/install', __('Start install'), ['class' => 'btn btn-success btn-block']) ?>
59 59
 <?php else: ?>
60 60
     <?= \Ffcms\Core\Helper\Url::link('main/index', __('Check again'), ['class' => 'btn btn-warning btn-block']) ?>
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
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 date_default_timezone_set('Europe/Moscow');
12 12
 
13 13
 return [
14
-    'Database' => function () {
14
+    'Database' => function() {
15 15
         $capsule = new Capsule;
16 16
         if (env_name !== 'Install') {
17 17
             try {
@@ -45,17 +45,17 @@  discard block
 block discarded – undo
45 45
 
46 46
         return new Session($storage);
47 47
     },
48
-    'User' => function () {
48
+    'User' => function() {
49 49
         return new Apps\ActiveRecord\User();
50 50
     },
51
-    'Mailer' => function () {
51
+    'Mailer' => function() {
52 52
         $swiftTransport = Swift_MailTransport::newInstance();
53 53
         return Swift_Mailer::newInstance($swiftTransport);
54 54
     },
55
-    'Captcha' => function () {
55
+    'Captcha' => function() {
56 56
         return new Extend\Core\Captcha\Gregwar();
57 57
     },
58
-    'Cache' => function () {
58
+    'Cache' => function() {
59 59
         phpFastCache::setup('path', root . '/Private/Cache');
60 60
         return \phpFastCache();
61 61
     }
Please login to merge, or discard this patch.
Private/Database/Tables/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 Illuminate\Database\Capsule\Manager::schema($connectName)->create('sessions', function($table) {
4
-    $table->string('sess_id', 128)->index()->primary()  ;
4
+    $table->string('sess_id', 128)->index()->primary();
5 5
     $table->binary('sess_data');
6 6
     $table->string('sess_lifetime', 16); // shutout to laravel, if i make it like "integer" it automaticlly add "primary" key for it, hate this!!!
7 7
     $table->string('sess_time', 16);
Please login to merge, or discard this patch.
Widgets/Basic/LanguageSwitcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         foreach (App::$Translate->getAvailableLangs() as $lang) {
27 27
             $items[] = [
28 28
                 'type' => 'text',
29
-                'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-'.$lang.'" />',
29
+                'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-' . $lang . '" />',
30 30
                 'html' => true,
31 31
                 '!secure' => true
32 32
             ];
Please login to merge, or discard this patch.
Apps/View/Admin/default/application/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     $route = $app->sys_name . '/index';
30 30
     $icoStatus = null;
31 31
     $actions = \App::$View->render('macro/app_actions', ['controller' => $app->sys_name]);
32
-    if ((int)$app->disabled !== 0) {
32
+    if ((int) $app->disabled !== 0) {
33 33
         $icoStatus = ' <i class="fa fa-pause" style="color: #ff0000;"></i>';
34 34
     } elseif ($app->checkVersion() !== true) {
35 35
         $icoStatus = ' <i class="fa fa-exclamation" style="color: #ffbd26;"></i>';
Please login to merge, or discard this patch.
Apps/Model/Admin/Application/FormInstall.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function before()
40 40
     {
41 41
         foreach ($this->_apps as $app) {
42
-            $this->_definedControllers[] = (string)$app->sys_name;
42
+            $this->_definedControllers[] = (string) $app->sys_name;
43 43
         }
44 44
 
45 45
         parent::before();
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         }
78 78
 
79 79
         // get ext version
80
-        $cVersion = (float)constant($cPath . '::VERSION');
80
+        $cVersion = (float) constant($cPath . '::VERSION');
81 81
         if ($cVersion < 0.1) {
82 82
             $cVersion = 0.1;
83 83
         }
Please login to merge, or discard this patch.
Apps/Controller/Api/Content.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
         parent::before();
28 28
         $configs = AppRecord::getConfigs('app', 'Content');
29 29
         // prevent null-type config data
30
-        if ((int)$configs['gallerySize'] > 0) {
31
-            $this->maxSize = (int)$configs['gallerySize'] * 1024;
30
+        if ((int) $configs['gallerySize'] > 0) {
31
+            $this->maxSize = (int) $configs['gallerySize'] * 1024;
32 32
         }
33 33
 
34
-        if ((int)$configs['galleryResize'] > 0) {
35
-            $this->maxResize = (int)$configs['galleryResize'];
34
+        if ((int) $configs['galleryResize'] > 0) {
35
+            $this->maxResize = (int) $configs['galleryResize'];
36 36
         }
37 37
     }
38 38
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         // check file size
72 72
         if ($file->getSize() < 1 || $file->getSize() > $this->maxSize) {
73
-            throw new JsonException(__('File size is too big. Max size: %size%kb', ['size' => intval($this->maxSize/1024)]));
73
+            throw new JsonException(__('File size is too big. Max size: %size%kb', ['size' => intval($this->maxSize / 1024)]));
74 74
         }
75 75
 
76 76
         // check file extension
Please login to merge, or discard this patch.
Apps/Controller/Admin/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $search = \Apps\ActiveRecord\App::getItem('app', $controller);
72 72
 
73 73
         // check what we got
74
-        if ($search === null || (int)$search->id < 1) {
74
+        if ($search === null || (int) $search->id < 1) {
75 75
             throw new ForbiddenException('App is not founded');
76 76
         }
77 77
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $search = \Apps\ActiveRecord\App::where('sys_name', '=', $controllerName)->where('type', '=', 'app')->first();
98 98
 
99
-        if ($search === null || (int)$search->id < 1) {
99
+        if ($search === null || (int) $search->id < 1) {
100 100
             throw new ForbiddenException('App is not founded');
101 101
         }
102 102
 
Please login to merge, or discard this patch.