Test Failed
Push — master ( c2af76...a0e4e3 )
by Mihail
05:19
created
Extend/Core/Captcha/Recaptcha.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
     public function get()
41 41
     {
42 42
         // build google captcha ;)
43
-        $html = '<div class="g-recaptcha" data-sitekey="' . self::$siteKey . '"></div>
43
+        $html = '<div class="g-recaptcha" data-sitekey="'.self::$siteKey.'"></div>
44 44
             <script type="text/javascript"
45
-                    src="https://www.google.com/recaptcha/api.js?hl=' . App::$Request->getLanguage() . '">
45
+                    src="https://www.google.com/recaptcha/api.js?hl=' . App::$Request->getLanguage().'">
46 46
             </script>';
47 47
         return $html;
48 48
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         ]);
66 66
 
67 67
         // make request and parse response
68
-        $url = $request->getSchemeAndHttpHost() . $request->getRequestUri();
68
+        $url = $request->getSchemeAndHttpHost().$request->getRequestUri();
69 69
         $response = File::getFromUrl($url);
70 70
         $object = json_decode($response);
71 71
 
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
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         }
34 34
 
35 35
         // add localizations
36
-        App::$Translate->append(App::$Alias->currentViewPath . '/I18n/' . App::$Request->getLanguage() . '.php');
36
+        App::$Translate->append(App::$Alias->currentViewPath.'/I18n/'.App::$Request->getLanguage().'.php');
37 37
         parent::__construct();
38 38
     }
39 39
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         }
57 57
 
58 58
         // check if disabled (0 = enabled, anything else = on)
59
-        return !(bool)$this->application->disabled;
59
+        return !(bool) $this->application->disabled;
60 60
     }
61 61
 
62 62
     /**
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             return $this->configs;
70 70
         }
71 71
 
72
-        $configs = (array)$this->application->configs;
72
+        $configs = (array) $this->application->configs;
73 73
         foreach ($configs as $cfg => $value) {
74 74
             if (Any::isInt($value)) {
75 75
                 $configs[$cfg] = $value;
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
@@ -55,6 +55,6 @@
 block discarded – undo
55 55
         }
56 56
 
57 57
         // if widget is disabled - lets return nothing
58
-        return !(bool)$wData->disabled;
58
+        return !(bool) $wData->disabled;
59 59
     }
60 60
 }
Please login to merge, or discard this patch.
Private/Config/Cron.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php return [
2
-	'instances' => [
3
-		'Apps\Controller\Front\Content::buildSitemapSchedule' => 3600,
4
-		'Apps\Controller\Front\Profile::buildSitemapSchedule' => 10800,
5
-		'Apps\Controller\Front\Profile::cleanupTablesSchedule' => 86400
6
-	]
2
+    'instances' => [
3
+        'Apps\Controller\Front\Content::buildSitemapSchedule' => 3600,
4
+        'Apps\Controller\Front\Profile::buildSitemapSchedule' => 10800,
5
+        'Apps\Controller\Front\Profile::cleanupTablesSchedule' => 86400
6
+    ]
7 7
 ];
8 8
\ No newline at end of file
Please login to merge, or discard this patch.
Private/Config/Object.php 2 patches
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,12 +71,14 @@
 block discarded – undo
71 71
             ->setUsername($mCfg['user']);
72 72
 
73 73
         // set auth password if exist
74
-        if ($mCfg['password'] !== null && strlen($mCfg['password']) > 0)
75
-            $transport->setPassword($mCfg['password']);
74
+        if ($mCfg['password'] !== null && strlen($mCfg['password']) > 0) {
75
+                    $transport->setPassword($mCfg['password']);
76
+        }
76 77
 
77 78
         // set encryption method
78
-        if (\Ffcms\Core\Helper\Type\Arr::in($mCfg['encrypt'], ['tls', 'ssl']))
79
-            $transport->setEncryption($mCfg['encrypt']);
79
+        if (\Ffcms\Core\Helper\Type\Arr::in($mCfg['encrypt'], ['tls', 'ssl'])) {
80
+                    $transport->setEncryption($mCfg['encrypt']);
81
+        }
80 82
 
81 83
         // initialize mailer instance
82 84
         $swift = (new Swift_Mailer($transport));
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 date_default_timezone_set(App::$Properties->get('timezone'));
13 13
 
14 14
 return [
15
-    'Database' => function () {
15
+    'Database' => function() {
16 16
         $capsule = new Capsule;
17 17
         if (env_name !== 'Install') {
18 18
             try {
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             try {
40 40
                 $capsule->connection()->getPdo();
41 41
             } catch (\Exception $e) {
42
-                $instUri = \App::$Alias->scriptUrl . '/install';
42
+                $instUri = \App::$Alias->scriptUrl.'/install';
43 43
                 \App::$Response->redirect($instUri, true);
44 44
             }
45 45
         }
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
         try {
52 52
             $pdo = \App::$Database->connection()->getPdo();
53 53
             $handler = new PdoSessionHandler($pdo, [
54
-                'db_table' => App::$Properties->get('database')['prefix'] . 'sessions'
54
+                'db_table' => App::$Properties->get('database')['prefix'].'sessions'
55 55
             ]);
56 56
         } catch (Exception $e) {
57
-            $handler = new NativeFileSessionHandler(root . '/Private/Sessions');
57
+            $handler = new NativeFileSessionHandler(root.'/Private/Sessions');
58 58
         }
59 59
 
60 60
         $storage = new NativeSessionStorage([
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 
66 66
         return new Session($storage);
67 67
     },
68
-    'User' => function () {
68
+    'User' => function() {
69 69
         return new Apps\ActiveRecord\User();
70 70
     },
71
-    'Mailer' => function () {
71
+    'Mailer' => function() {
72 72
         $mCfg = App::$Properties->get('mail');
73
-        if (!(bool)$mCfg['enable']) {
73
+        if (!(bool) $mCfg['enable']) {
74 74
             return false;
75 75
         }
76 76
         // initialize swiftmailer transporter
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
         $swift = (new Swift_Mailer($transport));
90 90
         return \Ffcms\Core\Helper\Mailer::factory($swift, $mCfg['user']);
91 91
     },
92
-    'Captcha' => function () {
92
+    'Captcha' => function() {
93 93
         return new Extend\Core\Captcha\Gregwar();
94 94
     },
95
-    'Cache' => function () {
95
+    'Cache' => function() {
96 96
         // initialize symfony cache manager
97
-        $cache = new \Symfony\Component\Cache\Adapter\FilesystemAdapter('web', 3600, root . '/Private/Cache');
97
+        $cache = new \Symfony\Component\Cache\Adapter\FilesystemAdapter('web', 3600, root.'/Private/Cache');
98 98
         return $cache;
99 99
     },
100 100
     '_hybridauth' => function() {
Please login to merge, or discard this patch.
Private/Migrations/install_session_table-2016-12-04-15-34-04.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function up()
16 16
     {
17 17
         $this->getSchema()->create('sessions', function($table) {
18
-            $table->string('sess_id', 128)->index()->primary()  ;
18
+            $table->string('sess_id', 128)->index()->primary();
19 19
             $table->text('sess_data');
20 20
             $table->string('sess_lifetime', 16); // shutout to laravel, if i make it like "integer" it automaticlly add "primary" key for it, hate this!!!
21 21
             $table->string('sess_time', 16);
Please login to merge, or discard this patch.
Private/Migrations/install_app_table-2016-12-04-15-31-46.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         ]);
80 80
 
81 81
         $configs->newcontent = serialize([
82
-            'categories' => ['2','3'],
82
+            'categories' => ['2', '3'],
83 83
             'count' => '5',
84 84
             'cache' => '60'
85 85
         ]);
Please login to merge, or discard this patch.
Private/Migrations/Updates/update_cms_301-2017-02-26-15-02-14.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@  discard block
 block discarded – undo
16 16
     {
17 17
         // use important column for content app
18 18
         if (!$this->getSchema()->hasColumn('contents', 'important')) {
19
-            $this->getSchema()->table('contents', function ($table) {
19
+            $this->getSchema()->table('contents', function($table) {
20 20
                 $table->boolean('important')->default(false);
21 21
             });
22 22
         }
23 23
         // add group display color features
24 24
         if (!$this->getSchema()->hasColumn('roles', 'color')) {
25
-            $this->getSchema()->table('roles', function ($table) {
25
+            $this->getSchema()->table('roles', function($table) {
26 26
                 $table->string('color')->default('#777777');
27 27
             });
28 28
         }
@@ -46,12 +46,12 @@  discard block
 block discarded – undo
46 46
     public function down()
47 47
     {
48 48
         if ($this->getSchema()->hasColumn('contents', 'important')) {
49
-            $this->getSchema()->table('contents', function ($table) {
49
+            $this->getSchema()->table('contents', function($table) {
50 50
                 $table->dropColumn('important');
51 51
             });
52 52
         }
53 53
         if ($this->getSchema()->hasColumn('roles', 'color')) {
54
-            $this->getSchema()->table('roles', function ($table) {
54
+            $this->getSchema()->table('roles', function($table) {
55 55
                 $table->dropColumn('color');
56 56
             });
57 57
         }
Please login to merge, or discard this patch.
Private/Migrations/Updates/update_cms_302-2017-06-11-11-27-29.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function up()
16 16
     {
17 17
         if ($this->getSchema()->hasColumn('user_recoveries', 'password')) {
18
-            $this->getSchema()->table('user_recoveries', function ($table) {
18
+            $this->getSchema()->table('user_recoveries', function($table) {
19 19
                 $table->dropColumn('password');
20 20
             });
21 21
         }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public function down()
36 36
     {
37 37
         if (!$this->getSchema()->hasColumn('user_recoveries', 'password')) {
38
-            $this->getSchema()->table('user_recoveries', function ($table) {
38
+            $this->getSchema()->table('user_recoveries', function($table) {
39 39
                 $table->string('password', 512);
40 40
             });
41 41
         }
Please login to merge, or discard this patch.