Passed
Push — master ( 0a3787...bc905b )
by Mihail
06:05
created
Apps/Console/MainChmodCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@
 block discarded – undo
44 44
         foreach (self::$installDirs as $obj) {
45 45
             if (Directory::exist($obj)) {
46 46
                 Directory::recursiveChmod($obj, 0777);
47
-                $output->writeln('Write recursive permissions 0777 for all directories in: ' . $obj);
47
+                $output->writeln('Write recursive permissions 0777 for all directories in: '.$obj);
48 48
             } elseif (File::exist($obj)) {
49
-                chmod(root . $obj, 0777);
50
-                $output->writeln('Write permissions 0777 for file: ' . $obj);
49
+                chmod(root.$obj, 0777);
50
+                $output->writeln('Write permissions 0777 for file: '.$obj);
51 51
             }
52 52
         }
53 53
     }
Please login to merge, or discard this patch.
Apps/Console/MainAdduserCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         }
56 56
         // get password and role and check validity
57 57
         $password = $this->optionOrAsk('password', 'User password');
58
-        $roleId = (int)$this->optionOrAsk('role', 'RoleId', '1');
58
+        $roleId = (int) $this->optionOrAsk('role', 'RoleId', '1');
59 59
         $records = Role::all()->toArray();
60 60
         $roles = Arr::pluck('id', $records);
61 61
         if (!Arr::in($roleId, $roles)) {
Please login to merge, or discard this patch.
Apps/Console/MainInfoCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,16 +32,16 @@
 block discarded – undo
32 32
     protected function execute(InputInterface $input, OutputInterface $output)
33 33
     {
34 34
         $output->writeln('Information about FFCMS package and environment:');
35
-        $output->writeln("\t PHP version: " . phpversion());
36
-        $output->writeln("\t Dist path: " . root);
37
-        $output->writeln("\t Used version: " . Version::VERSION . ' [build: ' . Version::DATE . ']');
35
+        $output->writeln("\t PHP version: ".phpversion());
36
+        $output->writeln("\t Dist path: ".root);
37
+        $output->writeln("\t Used version: ".Version::VERSION.' [build: '.Version::DATE.']');
38 38
         $output->writeln('Information about FFCMS cmf packages:');
39 39
 
40 40
         $composerInfo = File::read('/composer.lock');
41 41
         if (false !== $composerInfo) {
42 42
             $jsonInfo = json_decode($composerInfo);
43 43
             foreach ($jsonInfo->packages as $item) {
44
-                $output->writeln("\t Package: " . $item->name . ' => ' . $item->version);
44
+                $output->writeln("\t Package: ".$item->name.' => '.$item->version);
45 45
             }
46 46
         } else {
47 47
             $output->writeln("\t Composer is never be used - no information available.");
Please login to merge, or discard this patch.
Apps/Console/MigrationDownCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         // list found migrations and ask to revert each one
52 52
         $fired = false;
53 53
         foreach ($search as $migration) {
54
-            if (!$this->confirm('Are you sure to revert: ' . $migration)) {
54
+            if (!$this->confirm('Are you sure to revert: '.$migration)) {
55 55
                 continue;
56 56
             }
57 57
             // run down migration
Please login to merge, or discard this patch.
Apps/Controller/Front/Search.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
     public function actionIndex()
29 29
     {
30 30
         // get search query value from GET headers
31
-        $query = (string)$this->request->query->get('query', null);
31
+        $query = (string) $this->request->query->get('query', null);
32 32
         // strip html tags
33 33
         $query = App::$Security->strip_tags(trim($query));
34 34
         // get configs
35 35
         $configs = $this->getConfigs();
36 36
 
37 37
         // check search query length
38
-        if (Str::likeEmpty($query) || Str::length($query) < (int)$configs['minLength']) {
38
+        if (Str::likeEmpty($query) || Str::length($query) < (int) $configs['minLength']) {
39 39
             throw new NotFoundException(__('Search query is too short!'));
40 40
         }
41 41
 
Please login to merge, or discard this patch.
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.