Passed
Push — master ( 665b79...f7da23 )
by Mihail
08:59
created
Loader/Cron/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 /** set default locale */
15 15
 $_GET['lang'] = 'en';
16 16
 
17
-require_once(root . '/Loader/Autoload.php');
17
+require_once(root.'/Loader/Autoload.php');
18 18
 
19 19
 // make fast-access alias \App::$Object
20 20
 // class_alias('Ffcms\Core\App', 'App');
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     $logs = $cronManager->run();
43 43
     if (PHP_SAPI === 'cli') {
44 44
         if ($logs !== null && \Ffcms\Core\Helper\Type\Obj::isArray($logs) && count($logs) > 0) {
45
-            echo 'Run cron tasks: ' . PHP_EOL . implode(PHP_EOL, $logs);
45
+            echo 'Run cron tasks: '.PHP_EOL.implode(PHP_EOL, $logs);
46 46
         } else {
47 47
             echo 'No tasks runned';
48 48
         }
Please login to merge, or discard this patch.
Extend/Core/Arch/FrontAppController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         }
32 32
 
33 33
         // add localizations
34
-        App::$Translate->append(App::$Alias->currentViewPath . '/I18n/' . App::$Request->getLanguage() . '.php');
34
+        App::$Translate->append(App::$Alias->currentViewPath.'/I18n/'.App::$Request->getLanguage().'.php');
35 35
 
36 36
         parent::__construct();
37 37
     }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         }
55 55
 
56 56
         // check if disabled (0 = enabled, anything else = on)
57
-        return (int)$this->application->disabled === 0;
57
+        return (int) $this->application->disabled === 0;
58 58
     }
59 59
 
60 60
     /**
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
         if ($this->configs !== null) {
67 67
             return $this->configs;
68 68
         }
69
-        $configs = (array)unserialize($this->application->configs); // data always stored like a "string" objects
69
+        $configs = (array) unserialize($this->application->configs); // data always stored like a "string" objects
70 70
         foreach ($configs as $cfg => $value) {
71 71
             if (Obj::isLikeInt($value)) {
72
-                $configs[$cfg] = (int)$value; // convert string 1 "1" to int 1 1
72
+                $configs[$cfg] = (int) $value; // convert string 1 "1" to int 1 1
73 73
             }
74 74
         }
75 75
         $this->configs = $configs;
Please login to merge, or discard this patch.
Extend/Core/Arch/FrontWidget.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     /**
34 34
      * Check if widget is enabled
35 35
      * @param string|null $name
36
-     * @return bool
36
+     * @return null|boolean
37 37
      */
38 38
     public static function enabled($name = null)
39 39
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         }
52 52
 
53 53
         // if widget is disabled - lets return nothing
54
-        return !(bool)$wData->disabled;
54
+        return !(bool) $wData->disabled;
55 55
     }
56 56
 
57 57
 }
58 58
\ No newline at end of file
Please login to merge, or discard this patch.