Passed
Push — master ( 000a1b...bdeeb1 )
by Petr
07:42
created
php-src/Stuff.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     public static function directory(string $path, string $delimiter = DIRECTORY_SEPARATOR): string
82 82
     {
83 83
         $pos = mb_strrpos($path, $delimiter);
84
-        return (false !== $pos) ? mb_substr($path, 0, $pos + 1) : '' ;
84
+        return (false !== $pos) ? mb_substr($path, 0, $pos + 1) : '';
85 85
     }
86 86
 
87 87
     /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     public static function filename(string $path, string $delimiter = DIRECTORY_SEPARATOR): string
95 95
     {
96 96
         $pos = mb_strrpos($path, $delimiter);
97
-        return (false !== $pos) ? mb_substr($path, $pos + 1) : $path ;
97
+        return (false !== $pos) ? mb_substr($path, $pos + 1) : $path;
98 98
     }
99 99
 
100 100
     /**
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     public static function fileBase(string $path, string $delimiter = IPaths::SPLITTER_DOT): string
107 107
     {
108 108
         $pos = mb_strrpos($path, $delimiter);
109
-        return (false !== $pos) && (0 < $pos) ? mb_substr($path, 0, $pos) : $path ;
109
+        return (false !== $pos) && (0 < $pos) ? mb_substr($path, 0, $pos) : $path;
110 110
     }
111 111
 
112 112
     /**
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     public static function fileExt(string $path, string $delimiter = IPaths::SPLITTER_DOT): string
119 119
     {
120 120
         $pos = mb_strrpos($path, $delimiter);
121
-        return ((false !== $pos) && (0 < $pos)) ? mb_substr($path, $pos + 1) : '' ;
121
+        return ((false !== $pos) && (0 < $pos)) ? mb_substr($path, $pos + 1) : '';
122 122
     }
123 123
 
124 124
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public static function removeEndingSlash(string $path, string $delimiter = DIRECTORY_SEPARATOR): string
131 131
     {
132
-        return ($delimiter == mb_substr($path, -1, 1)) ? mb_substr($path, 0, -1) : $path ;
132
+        return ($delimiter == mb_substr($path, -1, 1)) ? mb_substr($path, 0, -1) : $path;
133 133
     }
134 134
 
135 135
     /**
@@ -149,6 +149,6 @@  discard block
 block discarded – undo
149 149
         $base = static::fileBase($fName);
150 150
         $extLen = strlen($ext);
151 151
         $cut = substr($base, 0, ($maxLen - $extLen));
152
-        return ($extLen) ? $cut . $delimiter . $ext : $cut ;
152
+        return ($extLen) ? $cut . $delimiter . $ext : $cut;
153 153
     }
154 154
 }
Please login to merge, or discard this patch.
php-src/Params/Request/Input.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 {
20 20
     public function set(IFiltered $inputs, ?string $virtualDir = null): parent
21 21
     {
22
-        $requestUri = $inputs->getInArray('REQUEST_URI', [IEntry::SOURCE_SERVER, ] );
22
+        $requestUri = $inputs->getInArray('REQUEST_URI', [IEntry::SOURCE_SERVER, ]);
23 23
         $entry = reset($requestUri);
24 24
         return $this->setData($entry ? strval($entry) : '', $virtualDir);
25 25
     }
Please login to merge, or discard this patch.