Completed
Push — master ( 0583a5...55fd9e )
by Mihail
02:52
created
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/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.
src/Ffcms/Core/Helper/Security.php 2 patches
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.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * String html tags and escape quotes
51 51
      * @param string|array $html
52 52
      * @param boolean $escapeQuotes
53
-     * @return string|array|null
53
+     * @return string|null
54 54
      */
55 55
     public function strip_tags($html, $escapeQuotes = true)
56 56
     {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * @deprecated
91 91
      * @param $var
92 92
      * @param null $indent
93
-     * @return mixed|string
93
+     * @return string|null
94 94
      */
95 95
     public function var_export54($var, $indent = null, $guessTypes = false) {
96 96
         return Arr::exportVar($var, $indent, $guessTypes);
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/FileSystem/Normalize.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/FileSystem/Directory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
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.