Completed
Push — master ( 9f6592...da81a2 )
by Terry
04:12
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
@@ -154,8 +154,7 @@  discard block
 block discarded – undo
154 154
             try
155 155
             {
156 156
                 $validator->__invoke();
157
-            }
158
-            catch ( AssertionFailedException $e )
157
+            } catch ( AssertionFailedException $e )
159 158
             {
160 159
                 $errors[$fieldName]     = $e->getMessage();
161 160
             }
@@ -2020,8 +2019,7 @@  discard block
 block discarded – undo
2020 2019
                 $this->stringify($this->value)
2021 2020
             );
2022 2021
             throw $this->createException($message, $this->overrideCode ?: self::INVALID_EMAIL, $propertyPath);
2023
-        }
2024
-        else
2022
+        } else
2025 2023
         {
2026 2024
             $host = substr($this->value, strpos($this->value, '@') + 1);
2027 2025
             // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3
@@ -2147,8 +2145,7 @@  discard block
 block discarded – undo
2147 2145
         try
2148 2146
         {
2149 2147
             $this->regex('/^04[0-9]{8})$/', $message, $propertyPath);
2150
-        }
2151
-        catch ( AssertionFailedException $e )
2148
+        } catch ( AssertionFailedException $e )
2152 2149
         {
2153 2150
             $message = $message ?: $this->overrideError;
2154 2151
             $message = sprintf(
@@ -2178,8 +2175,7 @@  discard block
 block discarded – undo
2178 2175
         try
2179 2176
         {
2180 2177
             $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $propertyPath);
2181
-        }
2182
-        catch (AssertionFailedException $e)
2178
+        } catch (AssertionFailedException $e)
2183 2179
         {
2184 2180
             $message = $message ?: $this->overrideError;
2185 2181
             $message = sprintf(
Please login to merge, or discard this patch.