Passed
Push — master ( bc905b...ef8807 )
by Mihail
04:40
created
Apps/Model/Admin/User/FormUserDelete.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,10 +69,10 @@
 block discarded – undo
69 69
                 ->orWhere('sender_id', '=', $uid)
70 70
                 ->delete();
71 71
             // delete avatars
72
-            File::remove('/upload/user/avatar/big/' . $uid . '.jpg');
73
-            File::remove('/upload/user/avatar/medium/' . $uid . '.jpg');
74
-            File::remove('/upload/user/avatar/small/' . $uid . '.jpg');
75
-            File::remove('/upload/user/avatar/original/' . $uid . '.jpg');
72
+            File::remove('/upload/user/avatar/big/'.$uid.'.jpg');
73
+            File::remove('/upload/user/avatar/medium/'.$uid.'.jpg');
74
+            File::remove('/upload/user/avatar/small/'.$uid.'.jpg');
75
+            File::remove('/upload/user/avatar/original/'.$uid.'.jpg');
76 76
             // delete user profile and auth data
77 77
             $user->profile()->delete();
78 78
             // delete user provider data
Please login to merge, or discard this patch.
Apps/Model/Admin/Newcontent/FormSettings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
             return;
37 37
         }
38 38
         $this->categories = $this->_configs['categories'];
39
-        $this->count = (int)$this->_configs['count'];
40
-        $this->cache = (int)$this->_configs['cache'];
39
+        $this->count = (int) $this->_configs['count'];
40
+        $this->cache = (int) $this->_configs['cache'];
41 41
     }
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
Apps/Model/Admin/Main/FormUpdateDatabase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             $name = Str::firstIn($fullName, '-');
44 44
             // get update version number from migration name
45 45
             list($type, $obj, $version) = explode('_', $name);
46
-            $intVersion = (int)Str::replace('.', '', $this->dbVersion);
46
+            $intVersion = (int) Str::replace('.', '', $this->dbVersion);
47 47
             // if migration version > db version - implement it
48 48
             if ($version > $intVersion) {
49 49
                 $this->updateQueries[] = $file;
Please login to merge, or discard this patch.
Apps/Console/MigrationUpCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@
 block discarded – undo
51 51
         // require confirmation from user each ever migration file
52 52
         $fired = false;
53 53
         foreach ($search as $migration) {
54
-            if (!$this->confirm('Are you sure to apply migration: ' . $migration, true)) {
54
+            if (!$this->confirm('Are you sure to apply migration: '.$migration, true)) {
55 55
                 continue;
56 56
             }
57 57
             $manager->makeUp($migration);
58
-            $fired =  true;
58
+            $fired = true;
59 59
         }
60 60
 
61 61
         if ($fired) {
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.
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.