Completed
Push — master ( 3f99e9...d7ef32 )
by Melech
05:32
created
src/Valkyrja/Routing/Middleware/EntityMiddleware.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         array &$matches,
112 112
         int $counter
113 113
     ): void {
114
-        if (! Str::contains($param, '@')) {
114
+        if (!Str::contains($param, '@')) {
115 115
             return;
116 116
         }
117 117
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         $found = false;
148 148
 
149 149
         foreach ($routeDependencies as $dependencyKey => $dependency) {
150
-            if (! $found && $class === $dependency) {
150
+            if (!$found && $class === $dependency) {
151 151
                 static::findAndSetEntity($class, $param, $matches[$counter]);
152 152
 
153 153
                 // Set found to true in case another dependency is also the same class
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         // Attempt to get the entity from the ORM repository
177 177
         $entity = static::findEntity($class, $value);
178 178
 
179
-        if (! $entity) {
179
+        if (!$entity) {
180 180
             static::entityNotFound($class, $value);
181 181
         }
182 182
 
Please login to merge, or discard this patch.
src/Valkyrja/Auth/Adapters/ORMAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                        ->where($resetTokenField, null, $user->__get($resetTokenField))
189 189
                        ->getOneOrNull();
190 190
 
191
-        if (! $dbUser) {
191
+        if (!$dbUser) {
192 192
             throw new InvalidAuthenticationException('Invalid reset token.');
193 193
         }
194 194
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     {
212 212
         $dbUser = $this->getUserViaLoginFields($user);
213 213
 
214
-        if (! $dbUser) {
214
+        if (!$dbUser) {
215 215
             throw new InvalidAuthenticationException('No user found.');
216 216
         }
217 217
 
Please login to merge, or discard this patch.