Completed
Push — master ( 19042c...b780b9 )
by Terry
02:37 queued 56s
created
src/Assert.php 2 patches
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -158,8 +158,7 @@  discard block
 block discarded – undo
158 158
             {
159 159
 
160 160
                 $validator->__invoke();
161
-            }
162
-            catch ( AssertionFailedException $e )
161
+            } catch ( AssertionFailedException $e )
163 162
             {
164 163
                 $errors[$fieldName]     = $e->getMessage();
165 164
             }
@@ -2206,8 +2205,7 @@  discard block
 block discarded – undo
2206 2205
             );
2207 2206
 
2208 2207
             throw $this->createException($message, $this->overrideCode ?: self::INVALID_EMAIL, $fieldName);
2209
-        }
2210
-        else
2208
+        } else
2211 2209
         {
2212 2210
             $host = substr($this->value, strpos($this->value, '@') + 1);
2213 2211
             // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3
@@ -2341,8 +2339,7 @@  discard block
 block discarded – undo
2341 2339
         try
2342 2340
         {
2343 2341
             $this->regex('/^04[0-9]{8})$/', $message, $fieldName);
2344
-        }
2345
-        catch ( AssertionFailedException $e )
2342
+        } catch ( AssertionFailedException $e )
2346 2343
         {
2347 2344
             $message = $message ?: $this->overrideError;
2348 2345
             $message = sprintf(
@@ -2374,8 +2371,7 @@  discard block
 block discarded – undo
2374 2371
         try
2375 2372
         {
2376 2373
             $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $fieldName);
2377
-        }
2378
-        catch (AssertionFailedException $e)
2374
+        } catch (AssertionFailedException $e)
2379 2375
         {
2380 2376
             $message = $message ?: $this->overrideError;
2381 2377
             $message = sprintf(
@@ -2681,8 +2677,7 @@  discard block
 block discarded – undo
2681 2677
         try
2682 2678
         {
2683 2679
             $this->email($message, $fieldName);
2684
-        }
2685
-        catch (AssertionFailedException $e)
2680
+        } catch (AssertionFailedException $e)
2686 2681
         {
2687 2682
             $message = $message ?: $this->overrideError;
2688 2683
             $message = sprintf(
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1408,7 +1408,7 @@  discard block
 block discarded – undo
1408 1408
     /**
1409 1409
      * Alias of {@see choice()}
1410 1410
      *
1411
-     * @param array  $choices
1411
+     * @param integer[]  $choices
1412 1412
      * @param string $message
1413 1413
      * @param string $fieldName
1414 1414
      * @return Assert
@@ -2728,7 +2728,7 @@  discard block
 block discarded – undo
2728 2728
     }
2729 2729
 
2730 2730
     /**
2731
-     * @param $func
2731
+     * @param string $func
2732 2732
      * @param $args
2733 2733
      * @return bool
2734 2734
      * @throws AssertionFailedException
Please login to merge, or discard this patch.