Passed
Push — master ( aff34e...cee0bf )
by Mihail
04:55
created
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/Api/Main.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
             'roots' => [
39 39
                 [
40 40
                     'driver' => 'LocalFileSystem',
41
-                    'path' => root . '/upload/',
42
-                    'URL' => App::$Alias->scriptUrl . '/upload/'
41
+                    'path' => root.'/upload/',
42
+                    'URL' => App::$Alias->scriptUrl.'/upload/'
43 43
                 ]
44 44
             ]
45 45
         ]));
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $this->setJsonHeader();
106 106
         // get ffcms news if cache is not available
107
-        $cache = App::$Cache->getItem('download.ffcms.api.news.' . $this->lang);
107
+        $cache = App::$Cache->getItem('download.ffcms.api.news.'.$this->lang);
108 108
         if ($cache->isHit()) {
109
-            $cache->set(File::getFromUrl('https://ffcms.org/api/api/news?lang=' . $this->lang))
109
+            $cache->set(File::getFromUrl('https://ffcms.org/api/api/news?lang='.$this->lang))
110 110
                 ->expiresAfter(1440);
111 111
         }
112 112
         $news = $cache->get();
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.
Apps/Controller/Admin/Profile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $query = ProfileRecords::with(['user']);
39 39
 
40 40
         // set current page and offset
41
-        $page = (int)$this->request->query->get('page');
41
+        $page = (int) $this->request->query->get('page');
42 42
         $offset = $page * self::ITEM_PER_PAGE;
43 43
 
44 44
         // build pagination
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function actionDelete($id)
70 70
     {
71
-        $this->response->redirect('user/delete/' . $id);
71
+        $this->response->redirect('user/delete/'.$id);
72 72
     }
73 73
 
74 74
     /**
Please login to merge, or discard this patch.
Apps/Controller/Admin/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $search = \Apps\ActiveRecord\App::getItem('app', $controller);
88 88
 
89 89
         // check what we got
90
-        if ($search === null || (int)$search->id < 1) {
90
+        if ($search === null || (int) $search->id < 1) {
91 91
             throw new NotFoundException('App is not founded');
92 92
         }
93 93
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
         $search = \Apps\ActiveRecord\App::where('sys_name', '=', $controllerName)->where('type', '=', 'app')->first();
121 121
 
122
-        if ($search === null || (int)$search->id < 1) {
122
+        if ($search === null || (int) $search->id < 1) {
123 123
             throw new ForbiddenException('App is not founded');
124 124
         }
125 125
 
Please login to merge, or discard this patch.
Apps/Controller/Admin/Contenttag.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         
36 36
         // render view output
37 37
         return $this->view->render('index', [
38
-           'model' => $model
38
+            'model' => $model
39 39
         ]);
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/AdminController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,18 +86,18 @@  discard block
 block discarded – undo
86 86
         $user = App::$User->identity();
87 87
         // user is not authed ?
88 88
         if ($user === null || !App::$User->isAuth()) {
89
-            $redirectUrl = App::$Alias->scriptUrl . '/user/login';
89
+            $redirectUrl = App::$Alias->scriptUrl.'/user/login';
90 90
             App::$Response->redirect($redirectUrl, true);
91 91
             exit();
92 92
         }
93 93
 
94
-        $permission = env_name . '/' . App::$Request->getController() . '/' . App::$Request->getAction();
94
+        $permission = env_name.'/'.App::$Request->getController().'/'.App::$Request->getAction();
95 95
 
96 96
         // doesn't have permission? get the f*ck out
97 97
         if (!$user->role->can($permission)) {
98 98
             App::$Session->invalidate();
99 99
 
100
-            $redirectUrl = App::$Alias->scriptUrl . '/user/login';
100
+            $redirectUrl = App::$Alias->scriptUrl.'/user/login';
101 101
             App::$Response->redirect($redirectUrl, true);
102 102
             exit();
103 103
         }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function getConfigs()
148 148
     {
149
-        return $this->type === 'widget' ? (array)$this->widget->configs : (array)$this->application->configs;
149
+        return $this->type === 'widget' ? (array) $this->widget->configs : (array) $this->application->configs;
150 150
     }
151 151
 
152 152
     /**
Please login to merge, or discard this patch.