Completed
Push — master ( 276832...8757d5 )
by Mihail
03:32
created
src/Ffcms/Core/Helper/Security.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/_support/_generated/AcceptanceTesterActions.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
tests/_support/_generated/UnitTesterActions.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
tests/_support/FunctionalTester.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
tests/_support/UnitTester.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
tests/_support/AcceptanceTester.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Ffcms/Core/App.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Ffcms/Core/Traits/ModelValidator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                     } elseif (method_exists($class, $obj)) { // maybe its a function?
96 96
                         $class = $class::$obj; // call function
97 97
                     } else {
98
-                        throw new SyntaxException('Filter callback execution failed: ' . $filter_name);
98
+                        throw new SyntaxException('Filter callback execution failed: '.$filter_name);
99 99
                     }
100 100
 
101 101
                 }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             if (method_exists($class, $method)) {
106 106
                 $check = @$class::$method($field_value, $filter_argv);
107 107
             } else {
108
-                throw new SyntaxException('Filter callback execution failed: ' . $filter_name);
108
+                throw new SyntaxException('Filter callback execution failed: '.$filter_name);
109 109
             }
110 110
         } elseif (method_exists('Ffcms\Core\Filter\Native', $filter_name)) { // only full namespace\class path based :(
111 111
             if ($filter_argv != null) {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
                 $check = Native::$filter_name($field_value);
115 115
             }
116 116
         } else {
117
-            throw new SyntaxException('Filter "' . $filter_name . '" is not exist');
117
+            throw new SyntaxException('Filter "'.$filter_name.'" is not exist');
118 118
         }
119 119
         if ($check !== true) { // switch only on fail check.
120 120
             $this->_badAttr[] = $field_name;
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         if ($inputType !== 'file') {
170 170
             if ($html !== true) {
171 171
                 $field_value = App::$Security->strip_tags($field_value);
172
-            } elseif($secure !== true) {
172
+            } elseif ($secure !== true) {
173 173
                 $field_value = App::$Security->secureHtml($field_value);
174 174
             }
175 175
         }
@@ -265,10 +265,10 @@  discard block
 block discarded – undo
265 265
         $paramQuery = $this->getFormName();
266 266
         if (Str::contains('.', $param)) {
267 267
             foreach (explode('.', $param) as $item) {
268
-                $paramQuery .= '[' . $item . ']';
268
+                $paramQuery .= '['.$item.']';
269 269
             }
270 270
         } else {
271
-            $paramQuery .= '[' . $param . ']';
271
+            $paramQuery .= '['.$param.']';
272 272
         }
273 273
 
274 274
         // get request based on method and param query
Please login to merge, or discard this patch.
src/Ffcms/Core/Debug/LaravelDatabaseCollector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.