Test Failed
Push — master ( 25822b...b91d24 )
by Mihail
06:04
created
Apps/Console/MainPermCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,17 +53,17 @@
 block discarded – undo
53 53
             preg_match_all('/public function action(\w*?)\(/', $byte, $matches); // matches[0] contains all methods ;)
54 54
             if (Any::isArray($matches[1]) && count($matches[1]) > 0) {
55 55
                 foreach ($matches[1] as $perm) {
56
-                    $fullPerm = 'Admin/' . $className . '/' . $perm;
56
+                    $fullPerm = 'Admin/'.$className.'/'.$perm;
57 57
                     $permissions[] = $fullPerm;
58
-                    $output->writeln("\tAdd permission: " . $fullPerm);
58
+                    $output->writeln("\tAdd permission: ".$fullPerm);
59 59
                 }
60 60
             }
61 61
         }
62 62
         // prepare save string
63
-        $stringSave = "<?php \n\nreturn " . Arr::exportVar($permissions) . ';';
63
+        $stringSave = "<?php \n\nreturn ".Arr::exportVar($permissions).';';
64 64
         File::write('/Private/Config/Permissions.php', $stringSave);
65 65
 
66
-        $output->writeln('Permissions configuration is successful updated! Founded permissions: ' . count($permissions));
66
+        $output->writeln('Permissions configuration is successful updated! Founded permissions: '.count($permissions));
67 67
     }
68 68
 
69 69
 }
70 70
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Console/GeneratorControllerCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
         }
51 51
 
52 52
         // prepare code & write
53
-        $template = File::read('/Private/Carcase/' . $loader . '/Controller.tphp');
53
+        $template = File::read('/Private/Carcase/'.$loader.'/Controller.tphp');
54 54
         $code = Str::replace(['%name%'], [$name], $template);
55 55
 
56
-        $savePath = '/Apps/Controller/' . $loader . '/' . $name . '.php';
56
+        $savePath = '/Apps/Controller/'.$loader.'/'.$name.'.php';
57 57
         File::write($savePath, $code);
58 58
 
59
-        $output->write('Controller are successful created: ' . $savePath);
59
+        $output->write('Controller are successful created: '.$savePath);
60 60
     }
61 61
 }
62 62
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Console/MigrationInstallCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             $output->write('Migration table is always exists!');
37 37
             return;
38 38
         }
39
-        DatabaseManager::schema($this->dbConnection)->create('migrations', function ($table){
39
+        DatabaseManager::schema($this->dbConnection)->create('migrations', function($table) {
40 40
             $table->increments('id');
41 41
             $table->string('migration', 127)->unique();
42 42
             $table->timestamps();
Please login to merge, or discard this patch.
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.
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.