@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * String html tags and escape quotes |
| 48 | 48 | * @param string|array $html |
| 49 | 49 | * @param boolean $escapeQuotes |
| 50 | - * @return string|array|null |
|
| 50 | + * @return string|null |
|
| 51 | 51 | */ |
| 52 | 52 | public function strip_tags($html, $escapeQuotes = true) |
| 53 | 53 | { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * @deprecated |
| 88 | 88 | * @param $var |
| 89 | 89 | * @param null $indent |
| 90 | - * @return mixed|string |
|
| 90 | + * @return string |
|
| 91 | 91 | */ |
| 92 | 92 | public function var_export54($var, $indent = null, $guessTypes = false) { |
| 93 | 93 | return Arr::exportVar($var, $indent, $guessTypes); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | public function __construct() |
| 17 | 17 | { |
| 18 | 18 | $config = \HTMLPurifier_Config::createDefault(); |
| 19 | - $config->set('Cache.SerializerPath', root . '/Private/Cache/HTMLPurifier/'); |
|
| 19 | + $config->set('Cache.SerializerPath', root.'/Private/Cache/HTMLPurifier/'); |
|
| 20 | 20 | $config->set('HTML.Allowed', 'p,b,strong,em,a[href],i,span,ul,ol,li,blockquote'); |
| 21 | 21 | //$config->set('URI.Base', 'http://www.example.com'); |
| 22 | 22 | //$config->set('URI.MakeAbsolute', true); |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | // @codingStandardsIgnoreFile |
| 7 | 7 | |
| 8 | 8 | use Codeception\Module\PhpBrowser; |
| 9 | -use Ffcms\Core\Helper\Acceptance; |
|
| 10 | 9 | |
| 11 | 10 | trait AcceptanceTesterActions |
| 12 | 11 | { |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | // @codingStandardsIgnoreFile |
| 7 | 7 | |
| 8 | 8 | use Codeception\Module\Asserts; |
| 9 | -use Ffcms\Core\Helper\Unit; |
|
| 10 | 9 | |
| 11 | 10 | trait UnitTesterActions |
| 12 | 11 | { |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |