@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\FunctionalTesterActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | try { |
144 | 144 | /** @var \Ffcms\Core\Arch\Controller $callClass */ |
145 | 145 | $callClass = null; |
146 | - $callMethod = 'action' . self::$Request->getAction(); |
|
146 | + $callMethod = 'action'.self::$Request->getAction(); |
|
147 | 147 | |
148 | 148 | // founded callback injection alias |
149 | 149 | if (self::$Request->getCallbackAlias() !== false) { |
@@ -151,16 +151,16 @@ discard block |
||
151 | 151 | if (class_exists($cName)) { |
152 | 152 | $callClass = new $cName; |
153 | 153 | } else { |
154 | - throw new NotFoundException('Callback alias of class "' . App::$Security->strip_tags($cName) . '" is not founded'); |
|
154 | + throw new NotFoundException('Callback alias of class "'.App::$Security->strip_tags($cName).'" is not founded'); |
|
155 | 155 | } |
156 | 156 | } else { // typical parsing of native apps |
157 | - $cName = '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController(); |
|
157 | + $cName = '\Apps\Controller\\'.env_name.'\\'.self::$Request->getController(); |
|
158 | 158 | |
159 | 159 | // try to initialize class object |
160 | 160 | if (class_exists($cName)) { |
161 | 161 | $callClass = new $cName; |
162 | 162 | } else { |
163 | - throw new NotFoundException('Application can not be runned. Initialized class not founded: ' . App::$Security->strip_tags($cName)); |
|
163 | + throw new NotFoundException('Application can not be runned. Initialized class not founded: '.App::$Security->strip_tags($cName)); |
|
164 | 164 | } |
165 | 165 | } |
166 | 166 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | // get full compiled response |
205 | 205 | $html = $callClass->getOutput(); |
206 | 206 | } else { |
207 | - throw new NotFoundException('Method "' . App::$Security->strip_tags($callMethod) . '()" not founded in "' . get_class($callClass) . '"'); |
|
207 | + throw new NotFoundException('Method "'.App::$Security->strip_tags($callMethod).'()" not founded in "'.get_class($callClass).'"'); |
|
208 | 208 | } |
209 | 209 | } catch (NotFoundException $e) { // catch exceptions and set output |
210 | 210 | $html = $e->display(); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | $hash = null; |
19 | 19 | foreach ($this as $property => $value) { |
20 | - $hash = md5($hash . $property . '=' . $value); |
|
20 | + $hash = md5($hash.$property.'='.$value); |
|
21 | 21 | } |
22 | 22 | return $hash; |
23 | 23 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $hints[] = '<code>LIMIT</code> without <code>ORDER BY</code> causes non-deterministic results, depending on the query execution plan'; |
161 | 161 | } |
162 | 162 | if (preg_match('/LIKE\\s[\'"](%.*?)[\'"]/i', $query, $matches)) { |
163 | - $hints[] = 'An argument has a leading wildcard character: <code>' . $matches[1] . '</code>. |
|
163 | + $hints[] = 'An argument has a leading wildcard character: <code>'.$matches[1].'</code>. |
|
164 | 164 | The predicate with this argument is not sargable and cannot use an index if one exists.'; |
165 | 165 | } |
166 | 166 | return implode("<br />", $hints); |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | foreach ($traces as $trace) { |
176 | 176 | if (isset($trace['class']) && isset($trace['file']) && strpos( |
177 | 177 | $trace['file'], |
178 | - DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR |
|
178 | + DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR |
|
179 | 179 | ) === false |
180 | 180 | ) { |
181 | 181 | if (isset($trace['object']) && is_a($trace['object'], 'Twig_Template')) { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | $line = isset($trace['line']) ? $trace['line'] : '?'; |
188 | 188 | } |
189 | 189 | |
190 | - return $this->normalizeFilename($file) . ':' . $line; |
|
190 | + return $this->normalizeFilename($file).':'.$line; |
|
191 | 191 | } elseif (isset($trace['function']) && $trace['function'] == 'Illuminate\Routing\{closure}') { |
192 | 192 | return 'Route binding'; |
193 | 193 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | { |
56 | 56 | $path = self::diskPath($path); |
57 | 57 | if (!Str::startsWith(root, $path)) { |
58 | - $path = root . DIRECTORY_SEPARATOR . ltrim($path, '\\/'); |
|
58 | + $path = root.DIRECTORY_SEPARATOR.ltrim($path, '\\/'); |
|
59 | 59 | } |
60 | 60 | return $path; |
61 | 61 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | return false; |
92 | 92 | } |
93 | 93 | |
94 | - $pattern = rtrim($path, '/') . '/*'; |
|
94 | + $pattern = rtrim($path, '/').'/*'; |
|
95 | 95 | $entry = glob($pattern, $mod); |
96 | 96 | |
97 | 97 | if ($returnRelative === true) { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | array_pop($separatedPath); |
123 | 123 | $clearPath = implode(DIRECTORY_SEPARATOR, $separatedPath); |
124 | 124 | |
125 | - @rename($path, $clearPath . DIRECTORY_SEPARATOR . $newDirName); |
|
125 | + @rename($path, $clearPath.DIRECTORY_SEPARATOR.$newDirName); |
|
126 | 126 | |
127 | 127 | return true; |
128 | 128 | } |
@@ -165,15 +165,15 @@ |
||
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 { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | $mobileCollapse = self::nohtml($elements['collapseId']); |
28 | 28 | if (null === $mobileCollapse) { |
29 | - $mobileCollapse = Str::randomLatin(mt_rand(6, 12)) . mt_rand(1, 99); |
|
29 | + $mobileCollapse = Str::randomLatin(mt_rand(6, 12)).mt_rand(1, 99); |
|
30 | 30 | } |
31 | 31 | $ulId = 1; |
32 | 32 | |
@@ -75,11 +75,11 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | |
78 | - $build = '<nav' . self::applyProperty($elements['nav']) . '>'; |
|
79 | - $build .= '<div class="' . self::nohtml($elements['container']) . '">'; |
|
78 | + $build = '<nav'.self::applyProperty($elements['nav']).'>'; |
|
79 | + $build .= '<div class="'.self::nohtml($elements['container']).'">'; |
|
80 | 80 | |
81 | 81 | $build .= '<div class="navbar-header">'; |
82 | - $build .= '<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#' . $mobileCollapse . '">'; |
|
82 | + $build .= '<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#'.$mobileCollapse.'">'; |
|
83 | 83 | $build .= '<span class="sr-only">Toggle navigation</span>'; |
84 | 84 | for ($i = 0; $i < 3; $i++) { |
85 | 85 | $build .= '<span class="icon-bar"></span>'; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $build .= Url::link($elements['brand']['link'], $elements['brand']['text'], ['class' => 'navbar-brand']); |
89 | 89 | $build .= '</div>'; |
90 | 90 | |
91 | - $build .= '<div class="collapse navbar-collapse" id="' . $mobileCollapse . '">'; |
|
91 | + $build .= '<div class="collapse navbar-collapse" id="'.$mobileCollapse.'">'; |
|
92 | 92 | $build .= $leftBuild; |
93 | 93 | $build .= $itemsStatic; |
94 | 94 | $build .= $rightBuild; |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | // initialize new DOM model |
32 | 32 | $dom = new Dom(); |
33 | 33 | // return DOM-HTML, build based on closures! |
34 | - return $dom->{$elements['type']}(function () use ($dom, $elements) { |
|
34 | + return $dom->{$elements['type']}(function() use ($dom, $elements) { |
|
35 | 35 | // prepare output avg variable |
36 | 36 | $liHtml = null; |
37 | 37 | // get active order level |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | // check if element is active on current URI |
62 | 62 | if (self::isCurrentLink($item['link'], $item['activeOn'], $orderActiveLink) === true) { |
63 | 63 | $itemProperty['class'] = !Str::likeEmpty($itemProperty['class']) |
64 | - ? $item['activeClass'] . ' ' . $itemProperty['class'] |
|
64 | + ? $item['activeClass'].' '.$itemProperty['class'] |
|
65 | 65 | : $item['activeClass']; |
66 | 66 | } |
67 | 67 | } |
@@ -70,13 +70,13 @@ discard block |
||
70 | 70 | $item['linkProperty']['href'] = self::convertLink($item['link']); |
71 | 71 | |
72 | 72 | // build a href link inside li element |
73 | - $itemContent = $dom->a(function () use ($itemContent) { |
|
73 | + $itemContent = $dom->a(function() use ($itemContent) { |
|
74 | 74 | return $itemContent; |
75 | 75 | }, $item['linkProperty']); |
76 | 76 | } |
77 | 77 | |
78 | 78 | // build output li tag |
79 | - $liHtml .= $dom->li(function () use ($elements, $itemContent) { |
|
79 | + $liHtml .= $dom->li(function() use ($elements, $itemContent) { |
|
80 | 80 | return $itemContent; |
81 | 81 | }, $itemProperty); |
82 | 82 | } |