Completed
Push — master ( 677518...b5c156 )
by Terry
02:11
created
src/Assert.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
     /**
535 535
      * Assert that value is not equal to a provided value (using == ).
536 536
      *
537
-     * @param mixed  $value2
537
+     * @param string  $value2
538 538
      * @param string $message
539 539
      * @param string $fieldName
540 540
      * @return Assert
@@ -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
@@ -1585,7 +1585,7 @@  discard block
 block discarded – undo
1585 1585
     /**
1586 1586
      * Assert that key exists in the values array.
1587 1587
      *
1588
-     * @param string|integer $key
1588
+     * @param string $key
1589 1589
      * @param string         $message
1590 1590
      * @param string         $fieldName
1591 1591
      * @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.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -158,8 +158,7 @@  discard block
 block discarded – undo
158 158
             try
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
             }
@@ -2250,8 +2249,7 @@  discard block
 block discarded – undo
2250 2249
             );
2251 2250
 
2252 2251
             throw $this->createException($message, $this->overrideCode ?: self::INVALID_EMAIL, $fieldName);
2253
-        }
2254
-        else
2252
+        } else
2255 2253
         {
2256 2254
             $host = substr($this->value, strpos($this->value, '@') + 1);
2257 2255
             // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3
@@ -2424,8 +2422,7 @@  discard block
 block discarded – undo
2424 2422
         try
2425 2423
         {
2426 2424
             $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $fieldName);
2427
-        }
2428
-        catch (AssertionFailedException $e)
2425
+        } catch (AssertionFailedException $e)
2429 2426
         {
2430 2427
             $message = $message ?: $this->overrideError;
2431 2428
             $message = sprintf(
@@ -2731,8 +2728,7 @@  discard block
 block discarded – undo
2731 2728
         try
2732 2729
         {
2733 2730
             $this->email($message, $fieldName);
2734
-        }
2735
-        catch (AssertionFailedException $e)
2731
+        } catch (AssertionFailedException $e)
2736 2732
         {
2737 2733
             $message = $message ?: $this->overrideError;
2738 2734
             $message = sprintf(
Please login to merge, or discard this patch.
src/Tester.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @param Closure  $test
43 43
      * @param string   $suiteName
44 44
      * @param string   $successMessage
45
-     * @param int|null $exceptionCode
45
+     * @param integer $exceptionCode
46 46
      * @param string   $exceptionClass
47 47
      * @param string   $exceptionMsg
48 48
      * @return Suite
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
      * @param string   $testName
434 434
      * @param Closure  $test
435 435
      * @param string   $successMessage
436
-     * @param int|null $exceptionCode
436
+     * @param integer $exceptionCode
437 437
      * @param string   $exceptionClass
438 438
      * @return Suite
439 439
      * @throws AssertionFailedException
@@ -1014,7 +1014,7 @@  discard block
 block discarded – undo
1014 1014
     /**
1015 1015
      * Log messages to resource
1016 1016
      *
1017
-     * @param mixed          $level    The level of the log message
1017
+     * @param string          $level    The level of the log message
1018 1018
      * @param string         $message  If an object is passed it must implement __toString()
1019 1019
      * @param array          $context  Placeholders to be substituted in the message
1020 1020
      */
@@ -1091,7 +1091,7 @@  discard block
 block discarded – undo
1091 1091
     }
1092 1092
 
1093 1093
     /**
1094
-     * @return mixed|resource
1094
+     * @return resource
1095 1095
      * @throws \Exception
1096 1096
      */
1097 1097
     protected function getResource()
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -347,8 +347,7 @@  discard block
 block discarded – undo
347 347
                     $closure->__invoke($this);
348 348
                 }
349 349
                 $this->getLogger()->info("[{$testName}] - " . $testCase->getSuccessMessage());
350
-            }
351
-            catch ( \Exception $e )
350
+            } catch ( \Exception $e )
352 351
             {
353 352
                 $expectedCode           = $testCase->getExceptionCode();
354 353
                 $expectedClass          = $testCase->getExceptionType();
@@ -1030,8 +1029,7 @@  discard block
 block discarded – undo
1030 1029
         if ( is_callable($this->formatter) )
1031 1030
         {
1032 1031
             $message                = $this->formatter->__invoke(static::$logLevels[$level][4], $message, $context);
1033
-        }
1034
-        else
1032
+        } else
1035 1033
         {
1036 1034
             $message                = $this->formatMessage($level, $message, $context);
1037 1035
         }
Please login to merge, or discard this patch.