Completed
Push — master ( 3a3845...75d5d0 )
by Mihail
02:15
created
src/Ffcms/Core/App.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -184,10 +184,10 @@  discard block
 block discarded – undo
184 184
         $html = null;
185 185
         // lets try to get html full content to page render
186 186
         try {
187
-            $this->startMeasure(__METHOD__ . '::callback');
187
+            $this->startMeasure(__METHOD__.'::callback');
188 188
             /** @var \Ffcms\Core\Arch\Controller $callClass */
189 189
             $callClass = null;
190
-            $callMethod = 'action' . self::$Request->getAction();
190
+            $callMethod = 'action'.self::$Request->getAction();
191 191
 
192 192
             // founded callback injection alias
193 193
             if (self::$Request->getCallbackAlias() !== false) {
@@ -195,20 +195,20 @@  discard block
 block discarded – undo
195 195
                 if (class_exists($cName)) {
196 196
                     $callClass = new $cName;
197 197
                 } else {
198
-                    throw new NotFoundException('Callback alias of class "' . App::$Security->strip_tags($cName) . '" is not founded');
198
+                    throw new NotFoundException('Callback alias of class "'.App::$Security->strip_tags($cName).'" is not founded');
199 199
                 }
200 200
             } else { // typical parsing of native apps
201
-                $cName = '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController();
201
+                $cName = '\Apps\Controller\\'.env_name.'\\'.self::$Request->getController();
202 202
 
203 203
                 // try to initialize class object
204 204
                 if (class_exists($cName)) {
205 205
                     $callClass = new $cName;
206 206
                 } else {
207
-                    throw new NotFoundException('Application can not be runned. Initialized class not founded: ' . App::$Security->strip_tags($cName));
207
+                    throw new NotFoundException('Application can not be runned. Initialized class not founded: '.App::$Security->strip_tags($cName));
208 208
                 }
209 209
             }
210 210
 
211
-            $this->stopMeasure(__METHOD__ . '::callback');
211
+            $this->stopMeasure(__METHOD__.'::callback');
212 212
 
213 213
             // try to call method of founded callback class
214 214
             if (method_exists($callClass, $callMethod)) {
@@ -239,10 +239,10 @@  discard block
 block discarded – undo
239 239
                     ]));
240 240
                 }
241 241
 
242
-                $this->startMeasure($cName . '::' . $callMethod);
242
+                $this->startMeasure($cName.'::'.$callMethod);
243 243
                 // make callback call to action in controller and get response
244 244
                 $actionResponse = call_user_func_array([$callClass, $callMethod], $actionQuery);
245
-                $this->stopMeasure($cName . '::' . $callMethod);
245
+                $this->stopMeasure($cName.'::'.$callMethod);
246 246
 
247 247
                 if ($actionResponse !== null && !Str::likeEmpty($actionResponse)) {
248 248
                     // set response to controller property object
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
                 // build full compiled output html data
253 253
                 $html = $callClass->buildOutput();
254 254
             } else {
255
-                throw new NotFoundException('Method "' . App::$Security->strip_tags($callMethod) . '()" not founded in "' . get_class($callClass) . '"');
255
+                throw new NotFoundException('Method "'.App::$Security->strip_tags($callMethod).'()" not founded in "'.get_class($callClass).'"');
256 256
             }
257 257
         } catch (NotFoundException $e) { // catch exceptions and set output
258 258
             $html = $e->display();
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
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
     {
94 94
         // looks like a single tag, <img src="" class="" />, <hr class="" />
95 95
         if (Arr::in($name, self::$singleTags)) {
96
-            return '<' . $name . self::applyProperties($properties) . ' />';
97
-        } elseif(Arr::in($name, self::$containerTags)) { // looks like a container tag, <div class=""></div>
98
-            return '<' . $name . self::applyProperties($properties) . '>' . $content . '</' . $name . '>';
96
+            return '<'.$name.self::applyProperties($properties).' />';
97
+        } elseif (Arr::in($name, self::$containerTags)) { // looks like a container tag, <div class=""></div>
98
+            return '<'.$name.self::applyProperties($properties).'>'.$content.'</'.$name.'>';
99 99
         }
100 100
 
101 101
         // empty response
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
             }
123 123
             // sounds like single standalone property, ex required, selected etc
124 124
             if ($value === null || $value === false) {
125
-                $build .= ' ' . htmlentities($property, ENT_QUOTES, "UTF-8");
125
+                $build .= ' '.htmlentities($property, ENT_QUOTES, "UTF-8");
126 126
             } else { // sounds like a classic key="value" property
127
-                $build .= ' ' . htmlentities($property, ENT_QUOTES, "UTF-8") . '="' . htmlentities($value, ENT_QUOTES, "UTF-8") . '"';
127
+                $build .= ' '.htmlentities($property, ENT_QUOTES, "UTF-8").'="'.htmlentities($value, ENT_QUOTES, "UTF-8").'"';
128 128
             }
129 129
         }
130 130
         return $build;
Please login to merge, or discard this patch.