Completed
Pull Request — development (#176)
by Claudio
04:36 queued 02:15
created
app/Helpers/User.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function hasSession()
102 102
     {
103
-        return (bool) Session::get(Config::get('chocolatey.security.session'));
103
+        return (bool)Session::get(Config::get('chocolatey.security.session'));
104 104
     }
105 105
 
106 106
     /**
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function filterName(string $userName): bool
122 122
     {
123
-        return (count(array_filter(Config::get('chocolatey.invalid'), function ($username) use ($userName) {
123
+        return (count(array_filter(Config::get('chocolatey.invalid'), function($username) use ($userName) {
124 124
             return stripos($userName, $username) !== false;
125 125
         })) == 0) && strlen($userName) <= 50 && strlen($userName) >= 4;
126 126
     }
Please login to merge, or discard this patch.