Completed
Push — master ( 34d475...283031 )
by Mihail
02:27
created
src/Ffcms/Core/Helper/FileSystem/File.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,15 +165,15 @@
 block discarded – undo
165 165
     {
166 166
         $path = Normalize::diskFullPath($path);
167 167
 
168
-        $dir = opendir($path . '/.');
168
+        $dir = opendir($path.'/.');
169 169
         while ($item = readdir($dir)) {
170
-            if (is_file($sub = $path . '/' . $item)) {
170
+            if (is_file($sub = $path.'/'.$item)) {
171 171
                 $item_ext = Str::lastIn($item, '.');
172 172
                 if ($ext === null || Arr::in($item_ext, $ext)) {
173 173
                     if ($returnRelative) {
174 174
                         $files[] = $item;
175 175
                     } else {
176
-                        $files[] = $path . DIRECTORY_SEPARATOR . $item;
176
+                        $files[] = $path.DIRECTORY_SEPARATOR.$item;
177 177
                     }
178 178
                 }
179 179
             } else {
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/HTML/Form/Constructor.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         // check if properties is passed well
46 46
         if (!Obj::isArray($properties) && $properties !== null) {
47
-            throw new SyntaxException('Property must be passed as array or null! Field: ' . $name);
47
+            throw new SyntaxException('Property must be passed as array or null! Field: '.$name);
48 48
         }
49 49
         
50 50
         // add properties to autovalidation by js (properties passed by ref)
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
         
95 95
         // if field is unknown type add notification in debugbar
96 96
         if (App::$Debug !== null) {
97
-            App::$Debug->addMessage('Field with name [' . App::$Security->strip_tags($name) . '] have unknown type [' . $this->type . ']', 'error');
97
+            App::$Debug->addMessage('Field with name ['.App::$Security->strip_tags($name).'] have unknown type ['.$this->type.']', 'error');
98 98
         }
99
-        return 'No data: ' . App::$Security->strip_tags($name);
99
+        return 'No data: '.App::$Security->strip_tags($name);
100 100
     }
101 101
     
102 102
     /**
@@ -143,12 +143,12 @@  discard block
 block discarded – undo
143 143
         if (Str::contains('.', $name)) {
144 144
             $splitedName = explode('.', $name);
145 145
             foreach ($splitedName as $nameKey) {
146
-                $properties['name'] .= '[' . $nameKey . ']';
147
-                $properties['id'] .= '-' . $nameKey;
146
+                $properties['name'] .= '['.$nameKey.']';
147
+                $properties['id'] .= '-'.$nameKey;
148 148
             }
149 149
         } else { // standard property definition - add field name
150
-            $properties['name'] .= '[' . $name . ']';
151
-            $properties['id'] .= '-' . $name;
150
+            $properties['name'] .= '['.$name.']';
151
+            $properties['id'] .= '-'.$name;
152 152
         }
153 153
     }
154 154
 }
155 155
\ No newline at end of file
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/HTML/Form/CaptchaField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             'id' => 'src-secure-image',
41 41
             'src' => $image,
42 42
             'alt' => 'secure captcha image',
43
-            'onClick' => 'this.src=\'' . $image . '&rnd=\'+Math.random()'
43
+            'onClick' => 'this.src=\''.$image.'&rnd=\'+Math.random()'
44 44
         ]);
45 45
         // render response tag with image
46 46
         $this->properties['type'] = 'text';
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/HTML/System/Dom.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
     {
98 98
         // looks like a single tag, <img src="" class="" />, <hr class="" />
99 99
         if (Arr::in($name, self::$singleTags)) {
100
-            return '<' . $name . self::applyProperties($properties) . ' />';
101
-        } elseif(Arr::in($name, self::$containerTags)) { // looks like a container tag, <div class=""></div>
102
-            return '<' . $name . self::applyProperties($properties) . '>' . $content . '</' . $name . '>';
100
+            return '<'.$name.self::applyProperties($properties).' />';
101
+        } elseif (Arr::in($name, self::$containerTags)) { // looks like a container tag, <div class=""></div>
102
+            return '<'.$name.self::applyProperties($properties).'>'.$content.'</'.$name.'>';
103 103
         }
104 104
 
105 105
         // empty response
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
             }
127 127
             // sounds like single standalone property, ex required, selected etc
128 128
             if ($value === null || $value === false) {
129
-                $build .= ' ' . htmlentities($property, ENT_QUOTES);
129
+                $build .= ' '.htmlentities($property, ENT_QUOTES);
130 130
             } else { // sounds like a classic key="value" property
131
-                $build .= ' ' . htmlentities($property, ENT_QUOTES) . '="' . htmlentities($value, ENT_QUOTES) . '"';
131
+                $build .= ' '.htmlentities($property, ENT_QUOTES).'="'.htmlentities($value, ENT_QUOTES).'"';
132 132
             }
133 133
         }
134 134
         return $build;
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/Type/Arr.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -118,16 +118,16 @@
 block discarded – undo
118 118
                         return 'true';
119 119
                     }
120 120
                 }
121
-                return '\'' . $var . '\'';
121
+                return '\''.$var.'\'';
122 122
             case 'array':
123 123
                 $indexed = array_keys($var) === range(0, count($var) - 1);
124 124
                 $row = [];
125 125
                 foreach ($var as $key => $value) {
126
-                    $row[] = $indent . "\t"
127
-                        . ($indexed ? null : self::exportVar($key, null, $guessTypes) . ' => ')
128
-                        . self::exportVar($value, $indent . "\t", $guessTypes);
126
+                    $row[] = $indent."\t"
127
+                        . ($indexed ? null : self::exportVar($key, null, $guessTypes).' => ')
128
+                        . self::exportVar($value, $indent."\t", $guessTypes);
129 129
                 }
130
-                return "[\n" . implode(",\n", $row) . "\n" . $indent . ']';
130
+                return "[\n".implode(",\n", $row)."\n".$indent.']';
131 131
             case 'boolean':
132 132
                 return $var ? 'true' : 'false';
133 133
             default:
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/Environment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,6 +67,6 @@
 block discarded – undo
67 67
             return 'error';
68 68
         }
69 69
 
70
-        return (int)$load . '%';
70
+        return (int)$load.'%';
71 71
     }
72 72
 }
73 73
\ No newline at end of file
Please login to merge, or discard this patch.
src/Ffcms/Core/Arch/Controller.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
         if ($this->layout === null) {
50 50
             $content = $this->response;
51 51
         } else {
52
-            $layoutPath = App::$Alias->currentViewPath . '/layout/' . $this->layout . '.php';
52
+            $layoutPath = App::$Alias->currentViewPath.'/layout/'.$this->layout.'.php';
53 53
             if (!File::exist($layoutPath)) {
54
-                throw new NativeException('Layout not founded: ' . $layoutPath);
54
+                throw new NativeException('Layout not founded: '.$layoutPath);
55 55
             }
56 56
 
57 57
             $body = $this->response;
@@ -70,14 +70,14 @@  discard block
 block discarded – undo
70 70
             // set custom css library's not included on static call
71 71
             $cssIncludeCode = App::$View->showCodeLink('css');
72 72
             if (!Str::likeEmpty($cssIncludeCode)) {
73
-                $content = Str::replace('</head>', $cssIncludeCode . '</head>', $content);
73
+                $content = Str::replace('</head>', $cssIncludeCode.'</head>', $content);
74 74
             }
75 75
 
76 76
             // add debug bar
77 77
             if (App::$Debug !== null) {
78 78
                 $content = Str::replace(
79 79
                     ['</body>', '</head>'],
80
-                    [App::$Debug->renderOut() . '</body>', App::$Debug->renderHead() . '</head>'],
80
+                    [App::$Debug->renderOut().'</body>', App::$Debug->renderHead().'</head>'],
81 81
                     $content);
82 82
             }
83 83
 
Please login to merge, or discard this patch.
src/Ffcms/Core/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 (false === $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
 }
32 32
\ No newline at end of file
Please login to merge, or discard this patch.
src/Ffcms/Core/Exception/TemplateException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         // build error text
63 63
         $rawResponse = 'error';
64 64
         try {
65
-            $rawResponse = App::$View->render('native/errors/' . $this->tpl, ['msg' => $this->text]);
65
+            $rawResponse = App::$View->render('native/errors/'.$this->tpl, ['msg' => $this->text]);
66 66
             if (Str::likeEmpty($rawResponse)) {
67 67
                 $rawResponse = $this->text;
68 68
             }
Please login to merge, or discard this patch.