Completed
Push — master ( 842a1c...83a5bb )
by Hong
02:40
created
src/Phossa2/Shared/Globbing/GlobbingTrait.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,8 +80,7 @@
 block discarded – undo
80 80
             // replace '.' and '*'
81 81
             $pat = str_replace(array('.', '*'), array('[.]', '[^.]*+'), $name);
82 82
             // last '*' should be different
83
-            $pat = substr($pat, -6) != '[^.]*+' ? $pat :
84
-                (substr($pat, 0, -6) . '.*+');
83
+            $pat = substr($pat, -6) != '[^.]*+' ? $pat : (substr($pat, 0, -6) . '.*+');
85 84
             return (bool) preg_match('~^' . $pat . '$~', $exactName);
86 85
         } else {
87 86
             return false;
Please login to merge, or discard this patch.