Passed
Push — master ( a0964b...11db8e )
by Mihail
06:07
created
src/Network/Response.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
     {
23 23
         $to = trim($to, '/');
24 24
         if (!$full && !Str::startsWith(App::$Alias->baseUrl, $to)) {
25
-            $to = App::$Alias->baseUrl . '/' . $to;
25
+            $to = App::$Alias->baseUrl.'/'.$to;
26 26
         }
27 27
         $redirect = new FoundationRedirect($to);
28 28
         $redirect->send();
29
-        exit('Redirecting to ' . $to . ' ...');
29
+        exit('Redirecting to '.$to.' ...');
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/Network/Request.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
 
59 59
         $basePath = trim(App::$Properties->get('basePath'), '/');
60 60
         if ($basePath !== null && Str::length($basePath) > 0) {
61
-            $basePath = '/' . $basePath;
61
+            $basePath = '/'.$basePath;
62 62
         }
63 63
 
64 64
         if (!defined('env_no_uri') || env_no_uri === false) {
65
-            $basePath .= '/' . strtolower(env_name);
65
+            $basePath .= '/'.strtolower(env_name);
66 66
         }
67 67
 
68 68
         // we never try to use path's without friendly url's
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $route = $this->languageInPath ? Str::sub(parent::getPathInfo(), Str::length($this->language) + 1) : parent::getPathInfo();
97 97
         if (!Str::startsWith('/', $route)) {
98
-            $route = '/' . $route;
98
+            $route = '/'.$route;
99 99
         }
100 100
         return $route;
101 101
     }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function getFullUrl(): string
131 131
     {
132
-        return $this->getSchemeAndHttpHost() . $this->getRequestUri();
132
+        return $this->getSchemeAndHttpHost().$this->getRequestUri();
133 133
     }
134 134
 
135 135
     /**
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         $url = $this->getSchemeAndHttpHost();
157 157
         $sub = null;
158 158
         if ($this->getInterfaceSlug() && Str::length($this->getInterfaceSlug()) > 0) {
159
-            $sub = $this->getInterfaceSlug() . '/';
159
+            $sub = $this->getInterfaceSlug().'/';
160 160
         }
161 161
 
162 162
         if ($this->languageInPath()) {
Please login to merge, or discard this patch.
src/Arch/Widget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
         // check if class exist
37 37
         if (!class_exists(self::$class)) {
38
-            return 'Error: Widget is not founded: ' . self::$class;
38
+            return 'Error: Widget is not founded: '.self::$class;
39 39
         }
40 40
 
41 41
         /** @var iWidget $object */
Please login to merge, or discard this patch.
src/Network/Request/MvcFeatures.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         if (array_key_exists($pathway, $routing['Redirect'])) {
37 37
             $target = $this->getSchemeAndHttpHost(); // . $this->getBasePath() . '/' . rtrim($routing['Redirect'][$pathway], '/');
38 38
             if ($this->getBasePath() !== null && !Str::likeEmpty($this->getBasePath())) {
39
-                $target .= '/' . $this->getBasePath();
39
+                $target .= '/'.$this->getBasePath();
40 40
             }
41 41
             $target .= rtrim($routing['Redirect'][$pathway], '/');
42 42
             $redirect = new RedirectResponse($target);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
             // safe other parts to arguments if exist
66 66
             if (count($pathArray) > 0) {
67
-                $this->args = array_map(function ($in) {
67
+                $this->args = array_map(function($in) {
68 68
                     return Any::isStr($in) ? urldecode($in) : $in;
69 69
                 }, $pathArray);
70 70
             }
Please login to merge, or discard this patch.
src/App.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -184,12 +184,12 @@  discard block
 block discarded – undo
184 184
         try {
185 185
             /** @var \Ffcms\Core\Arch\Controller $callClass */
186 186
             $callClass = $this->getCallbackClass();
187
-            $callMethod = 'action' . self::$Request->getAction();
187
+            $callMethod = 'action'.self::$Request->getAction();
188 188
             $arguments = self::$Request->getArguments();
189 189
 
190 190
             // check if callback method (action) is exist in class object
191 191
             if (!method_exists($callClass, $callMethod)) {
192
-                throw new NotFoundException('Method "' . App::$Security->strip_tags($callMethod) . '()" not founded in "' . get_class($callClass) . '"');
192
+                throw new NotFoundException('Method "'.App::$Security->strip_tags($callMethod).'()" not founded in "'.get_class($callClass).'"');
193 193
             }
194 194
 
195 195
             // check if method arguments counts equals passed count
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
                 $response = $e->display();
221 221
             } else { // or hook exception to system based :)))
222 222
                 if (App::$Debug) {
223
-                    $msg = $e->getMessage() . $e->getTraceAsString();
223
+                    $msg = $e->getMessage().$e->getTraceAsString();
224 224
                     $response = (new NativeException($msg))->display();
225 225
                 } else {
226 226
                     $response = (new NativeException($e->getMessage()))->display();
@@ -242,9 +242,9 @@  discard block
 block discarded – undo
242 242
     private function getCallbackClass()
243 243
     {
244 244
         // define callback class namespace/name full path
245
-        $cName = (self::$Request->getCallbackAlias() ?? '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController());
245
+        $cName = (self::$Request->getCallbackAlias() ?? '\Apps\Controller\\'.env_name.'\\'.self::$Request->getController());
246 246
         if (!class_exists($cName)) {
247
-            throw new NotFoundException('Callback class not found: ' . App::$Security->strip_tags($cName));
247
+            throw new NotFoundException('Callback class not found: '.App::$Security->strip_tags($cName));
248 248
         }
249 249
 
250 250
         return new $cName;
Please login to merge, or discard this patch.
src/Exception/TemplateException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     protected function buildFakePage()
50 50
     {
51 51
         try {
52
-            $rawResponse = App::$View->render('_core/exceptions/' . $this->tpl, ['msg' => $this->text]);
52
+            $rawResponse = App::$View->render('_core/exceptions/'.$this->tpl, ['msg' => $this->text]);
53 53
             if (Str::likeEmpty($rawResponse)) {
54 54
                 $rawResponse = $this->text;
55 55
             }
Please login to merge, or discard this patch.
src/Exception/NativeException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     protected function sendHTML($message = null)
59 59
     {
60 60
         //header('HTTP/1.1 404 Not Found');
61
-        return '<!DOCTYPE html><html><head><title>An error has occurred</title></head><body><div style="width:60%; margin: auto; background-color: #fcc;border: 1px solid #faa; padding: 0.5em 1em;"><h1 style="font-size: 120%">Runtime error</h1><p>' . $message . '</p></div></body></html>';
61
+        return '<!DOCTYPE html><html><head><title>An error has occurred</title></head><body><div style="width:60%; margin: auto; background-color: #fcc;border: 1px solid #faa; padding: 0.5em 1em;"><h1 style="font-size: 120%">Runtime error</h1><p>'.$message.'</p></div></body></html>';
62 62
     }
63 63
     
64 64
     /**
Please login to merge, or discard this patch.
src/Arch/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         if (App::$Debug) {
33 33
             App::$Debug->startMeasure(get_class($this));
34
-            App::$Debug->bar->getCollector('messages')->info('Use controller: ' . get_class($this));
34
+            App::$Debug->bar->getCollector('messages')->info('Use controller: '.get_class($this));
35 35
         }
36 36
         $this->lang = App::$Request->getLanguage();
37 37
         $this->request = App::$Request;
Please login to merge, or discard this patch.