Completed
Push — master ( dd3a2a...309ae4 )
by Terry
05:48
created
src/Assert.php 2 patches
Doc Comments   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     /**
115 115
      * @param $value
116
-     * @return Assert
116
+     * @return boolean
117 117
      */
118 118
     public static function that($value)
119 119
     {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     }
179 179
 
180 180
     /**
181
-     * @param $exceptionClass
181
+     * @param string $exceptionClass
182 182
      * @return Assert
183 183
      */
184 184
     public function setExceptionClass($exceptionClass)
@@ -944,7 +944,7 @@  discard block
 block discarded – undo
944 944
      *
945 945
      * @throws AssertionFailedException
946 946
      *
947
-     * @param array $choices
947
+     * @param integer[] $choices
948 948
      * @param null  $message
949 949
      * @param null  $propertyPath
950 950
      * @return $this
@@ -2018,6 +2018,9 @@  discard block
 block discarded – undo
2018 2018
         return $this;
2019 2019
     }
2020 2020
 
2021
+    /**
2022
+     * @param string $func
2023
+     */
2021 2024
     protected function doAllOrNullOr($func, $args)
2022 2025
     {
2023 2026
         if ( $this->nullOr && is_null($this->value) )
@@ -2088,8 +2091,8 @@  discard block
 block discarded – undo
2088 2091
     /**
2089 2092
      * Determines that the provided value is an object.
2090 2093
      *
2091
-     * @param null $message
2092
-     * @param null $propertyPath
2094
+     * @param string|null $message
2095
+     * @param string|null $propertyPath
2093 2096
      * @return $this
2094 2097
      */
2095 2098
     public function isObject($message = null, $propertyPath = null)
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1644,8 +1644,7 @@  discard block
 block discarded – undo
1644 1644
                 $this->stringify($this->value)
1645 1645
             );
1646 1646
             throw $this->createException($message, self::INVALID_EMAIL, $propertyPath);
1647
-        }
1648
-        else
1647
+        } else
1649 1648
         {
1650 1649
             $host = substr($this->value, strpos($this->value, '@') + 1);
1651 1650
             // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3
@@ -1762,8 +1761,7 @@  discard block
 block discarded – undo
1762 1761
         try
1763 1762
         {
1764 1763
             $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $propertyPath);
1765
-        }
1766
-        catch (AssertionFailedException $e)
1764
+        } catch (AssertionFailedException $e)
1767 1765
         {
1768 1766
             $message = sprintf(
1769 1767
                 $message
Please login to merge, or discard this patch.