Completed
Pull Request — master (#4)
by
unknown
01:36
created
src/Assert.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     }
219 219
 
220 220
     /**
221
-     * @param $exceptionClass
221
+     * @param string $exceptionClass
222 222
      * @return Assert
223 223
      */
224 224
     public function setExceptionClass($exceptionClass)
@@ -1220,7 +1220,7 @@  discard block
 block discarded – undo
1220 1220
      *
1221 1221
      * @throws AssertionFailedException
1222 1222
      *
1223
-     * @param array $choices
1223
+     * @param integer[] $choices
1224 1224
      * @param string|null $message
1225 1225
      * @param string|null $propertyPath
1226 1226
      * @return $this
@@ -2352,7 +2352,7 @@  discard block
 block discarded – undo
2352 2352
     }
2353 2353
 
2354 2354
     /**
2355
-     * @param $func
2355
+     * @param string $func
2356 2356
      * @param $args
2357 2357
      * @return bool
2358 2358
      * @throws AssertionFailedException
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1997,8 +1997,7 @@  discard block
 block discarded – undo
1997 1997
                 $this->stringify($this->value)
1998 1998
             );
1999 1999
             throw $this->createException($message, $this->overrideCode ?: self::INVALID_EMAIL, $propertyPath);
2000
-        }
2001
-        else
2000
+        } else
2002 2001
         {
2003 2002
             $host = substr($this->value, strpos($this->value, '@') + 1);
2004 2003
             // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3
@@ -2124,8 +2123,7 @@  discard block
 block discarded – undo
2124 2123
         try
2125 2124
         {
2126 2125
             $this->regex('/^04[0-9]{8})$/', $message, $propertyPath);
2127
-        }
2128
-        catch ( AssertionFailedException $e )
2126
+        } catch ( AssertionFailedException $e )
2129 2127
         {
2130 2128
             $message = $message ?: $this->overrideError;
2131 2129
             $message = sprintf(
@@ -2155,8 +2153,7 @@  discard block
 block discarded – undo
2155 2153
         try
2156 2154
         {
2157 2155
             $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $propertyPath);
2158
-        }
2159
-        catch (AssertionFailedException $e)
2156
+        } catch (AssertionFailedException $e)
2160 2157
         {
2161 2158
             $message = $message ?: $this->overrideError;
2162 2159
             $message = sprintf(
@@ -2441,8 +2438,7 @@  discard block
 block discarded – undo
2441 2438
         try
2442 2439
         {
2443 2440
             $this->email($message, $propertyPath);
2444
-        }
2445
-        catch (AssertionFailedException $e)
2441
+        } catch (AssertionFailedException $e)
2446 2442
         {
2447 2443
             $message = $message ?: $this->overrideError;
2448 2444
             $message = sprintf(
Please login to merge, or discard this patch.