Completed
Push — master ( 6b7717...ad9af1 )
by Alexandre
11s
created
src/Application.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     /**
61 61
      * Add a new route.
62 62
      *
63
-     * @param string|Route $pathOrRoute The path to the route or the {@link Route} object itself.
63
+     * @param string $pathOrRoute The path to the route or the {@link Route} object itself.
64 64
      * @param callable|string|null $callback Either a callback to map the route to or a string representing
65 65
      * a format for {@link sprintf()}.
66 66
      * @return Route Returns the route that was added.
Please login to merge, or discard this patch.
src/Db/MySqlDb.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -120,6 +120,7 @@
 block discarded – undo
120 120
 
121 121
     /**
122 122
      * {@inheritdoc}
123
+     * @param string $tablename
123 124
      */
124 125
     public function getTableDef($tablename) {
125 126
         $table = parent::getTableDef($tablename);
Please login to merge, or discard this patch.
src/Password/XenforoPassword.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
      * Split the hash into its calculated hash and salt.
94 94
      *
95 95
      * @param string $hash The hash to split.
96
-     * @return array An array in the form [$hash, $hashFunc, $salt].
96
+     * @return string[] An array in the form [$hash, $hashFunc, $salt].
97 97
      */
98 98
     protected function splitHash($hash) {
99 99
         $parts = @unserialize($hash);
Please login to merge, or discard this patch.
src/Request.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
      *
324 324
      * @param string|null $key The key to get or null to get the entire environment.
325 325
      * @param mixed $default The default value if {@link $key} is not found.
326
-     * @return mixed|array Returns the value at {@link $key}, {$link $default} or the entire environment array.
326
+     * @return string|null Returns the value at {@link $key}, {$link $default} or the entire environment array.
327 327
      * @see Request::setEnv()
328 328
      */
329 329
     public function getEnv($key = null, $default = null) {
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
864 864
     /**
865 865
      * Get the root directory (SCRIPT_NAME) of the request.
866 866
      *
867
-     * @return Returns the root directory of the request as a string.
867
+     * @return string the root directory of the request as a string.
868 868
      * @see Request::setRoot()
869 869
      */
870 870
     public function getRoot() {
@@ -1013,7 +1013,7 @@  discard block
 block discarded – undo
1013 1013
      * Split the file extension off a path.
1014 1014
      *
1015 1015
      * @param string $path The path to split.
1016
-     * @return array Returns an array in the form `['path', 'ext']`.
1016
+     * @return string[] Returns an array in the form `['path', 'ext']`.
1017 1017
      */
1018 1018
     protected static function splitPathExt($path) {
1019 1019
         if (substr($path, -1) !== '/' && ($pos = strrpos($path, '.')) !== false) {
Please login to merge, or discard this patch.
src/Schema.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
259 259
      *
260 260
      * @param array &$data The data to validate.
261 261
      * @param Validation &$validation This argument will be filled with the validation result.
262
-     * @return bool Returns true if the data is valid, false otherwise.
262
+     * @return Schema Returns true if the data is valid, false otherwise.
263 263
      * @throws ValidationException Throws an exception when the data does not validate against the schema.
264 264
      */
265 265
     public function validate(array &$data, Validation &$validation = null) {
Please login to merge, or discard this patch.
src/SecureString.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -405,7 +405,7 @@
 block discarded – undo
405 405
      * @param bool $throw Whether or not to throw an exception.
406 406
      * @param string $message The exception message.
407 407
      * @param int $code The exception code.
408
-     * @return bool Returns false if {@link $throw} is false.
408
+     * @return boolean|null Returns false if {@link $throw} is false.
409 409
      * @throws \Exception Throws an exception with {@link $message} and {@link $code}.
410 410
      */
411 411
     protected function exception($throw, $message, $code) {
Please login to merge, or discard this patch.
src/functions/core-functions.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * A custom implementation of array_column for older versions of php.
99 99
      *
100 100
      * @param array $array The dataset to test.
101
-     * @param int|string $columnKey The column of values to return.
101
+     * @param string $columnKey The column of values to return.
102 102
      * @param int|string|null $indexKey The column to use as the index/keys for the returned array.
103 103
      * @return array Returns the columns from the {@link $input} array.
104 104
      */
@@ -265,9 +265,9 @@  discard block
 block discarded – undo
265 265
 /**
266 266
  * Select the first non-empty value from an array.
267 267
  *
268
- * @param array $keys An array of keys to try.
268
+ * @param string[] $keys An array of keys to try.
269 269
  * @param array $array The array to select from.
270
- * @param mixed $default The default value if non of the keys exist.
270
+ * @param string $default The default value if non of the keys exist.
271 271
  * @return mixed Returns the first non-empty value of {@link $default} if none are found.
272 272
  * @category Array Functions
273 273
  */
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 /**
284 284
  * Make sure that a key exists in an array.
285 285
  *
286
- * @param string|int $key The array key to ensure.
286
+ * @param string $key The array key to ensure.
287 287
  * @param array &$array The array to modify.
288 288
  * @param mixed $default The default value to set if key does not exist.
289 289
  * @category Array Functions
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
  * @param callable $callback A callback to the function.
716 716
  * @param array $args An array of arguments.
717 717
  * @param array $get An optional other array of arguments.
718
- * @return array The arguments in an associative array, in order ready to be passed to call_user_func_array().
718
+ * @return callable The arguments in an associative array, in order ready to be passed to call_user_func_array().
719 719
  * @throws Exception Throws an exception when {@link callback} isn't a valid callback.
720 720
  * @category Type Functions
721 721
  */
@@ -916,7 +916,7 @@  discard block
 block discarded – undo
916 916
  *
917 917
  * This function differs from val() in that $key can be an array that will be used to walk a nested array.
918 918
  *
919
- * @param array|string $keys The keys or property names of the value. This can be an array or dot-seperated string.
919
+ * @param string[] $keys The keys or property names of the value. This can be an array or dot-seperated string.
920 920
  * @param array|object $array The array or object to search.
921 921
  * @param mixed $default The value to return if the key does not exist.
922 922
  * @return mixed The value from the array or object.
Please login to merge, or discard this patch.