Completed
Push — master ( 573516...7a1ba4 )
by Iurii
04:24
created
vendor/fzaninotto/faker/src/Faker/ORM/Spot/EntityPopulator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      * Class constructor.
47 47
      *
48 48
      * @param Mapper $mapper
49
-     * @param Locator $locator
49
+     * @param null|Locator $locator
50 50
      * @param $useExistingData
51 51
      */
52 52
     public function __construct(Mapper $mapper, Locator $locator, $useExistingData = false)
Please login to merge, or discard this patch.
vendor/fzaninotto/faker/src/Faker/Provider/ar_SA/Person.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
 
126 126
     /**
127 127
      * Check sum the number.
128
-     * @param $number
128
+     * @param string $number
129 129
      *
130 130
      * @return bool
131 131
      */
Please login to merge, or discard this patch.
vendor/fzaninotto/faker/src/Faker/Provider/Base.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * Return a random float number
97 97
      *
98 98
      * @param int       $nbMaxDecimals
99
-     * @param int|float $min
99
+     * @param integer $min
100 100
      * @param int|float $max
101 101
      * @example 48.8932
102 102
      *
@@ -318,6 +318,11 @@  discard block
 block discarded – undo
318 318
         return implode('', static::shuffleArray($array));
319 319
     }
320 320
 
321
+    /**
322
+     * @param string $string
323
+     *
324
+     * @return string
325
+     */
321 326
     private static function replaceWildcard($string, $wildcard = '#', $callback = 'static::randomDigit')
322 327
     {
323 328
         if (($pos = strpos($string, $wildcard)) === false) {
@@ -507,7 +512,7 @@  discard block
 block discarded – undo
507 512
     /**
508 513
      * Chainable method for making any formatter optional.
509 514
      *
510
-     * @param float|integer $weight Set the probability of receiving a null value.
515
+     * @param double $weight Set the probability of receiving a null value.
511 516
      *                              "0" will always return null, "1" will always return the generator.
512 517
      *                              If $weight is an integer value, then the same system works
513 518
      *                              between 0 (always get false) and 100 (always get true).
Please login to merge, or discard this patch.
vendor/fzaninotto/faker/src/Faker/Provider/Biased.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * @param integer $min Minimum value of the generated integers.
18 18
      * @param integer $max Maximum value of the generated integers.
19 19
      * @param callable $function A function mapping x ∈ [0, 1] onto a double ∈ [0, 1]
20
-     * @return integer An integer between $min and $max.
20
+     * @return double An integer between $min and $max.
21 21
      */
22 22
     public function biasedNumberBetween($min = 0, $max = 100, $function = 'sqrt')
23 23
     {
Please login to merge, or discard this patch.
vendor/fzaninotto/faker/src/Faker/Provider/DateTime.php 1 patch
Doc Comments   +18 added lines, -14 removed lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@  discard block
 block discarded – undo
6 6
 {
7 7
     protected static $century = array('I','II','III','IV','V','VI','VII','VIII','IX','X','XI','XII','XIII','XIV','XV','XVI','XVII','XVIII','XIX','XX','XXI');
8 8
 
9
+    /**
10
+     * @return integer
11
+     */
9 12
     protected static function getMaxTimestamp($max = 'now')
10 13
     {
11 14
         if (is_numeric($max)) {
@@ -53,7 +56,7 @@  discard block
 block discarded – undo
53 56
     /**
54 57
      * Get a datetime object for a date between January 1, 001 and now
55 58
      *
56
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
59
+     * @param string $max maximum timestamp used as random end limit, default to "now"
57 60
      * @param string $timezone time zone in which the date time should be set, default to result of `date_default_timezone_get`
58 61
      * @example DateTime('1265-03-22 21:15:52')
59 62
      * @return \DateTime
@@ -71,7 +74,7 @@  discard block
 block discarded – undo
71 74
     /**
72 75
      * get a date string formatted with ISO8601
73 76
      *
74
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
77
+     * @param string $max maximum timestamp used as random end limit, default to "now"
75 78
      * @return string
76 79
      * @example '2003-10-21T16:05:52+0000'
77 80
      */
@@ -97,7 +100,7 @@  discard block
 block discarded – undo
97 100
      * Get a time string (24h format by default)
98 101
      *
99 102
      * @param string               $format
100
-     * @param \DateTime|int|string $max    maximum timestamp used as random end limit, default to "now"
103
+     * @param string $max    maximum timestamp used as random end limit, default to "now"
101 104
      * @return string
102 105
      * @example '15:02:34'
103 106
      */
@@ -166,7 +169,7 @@  discard block
 block discarded – undo
166 169
     }
167 170
 
168 171
     /**
169
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
172
+     * @param string $max maximum timestamp used as random end limit, default to "now"
170 173
      * @example DateTime('1964-04-04 11:02:02')
171 174
      * @return \DateTime
172 175
      */
@@ -176,7 +179,7 @@  discard block
 block discarded – undo
176 179
     }
177 180
 
178 181
     /**
179
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
182
+     * @param string $max maximum timestamp used as random end limit, default to "now"
180 183
      * @example DateTime('2010-03-10 05:18:58')
181 184
      * @return \DateTime
182 185
      */
@@ -186,7 +189,7 @@  discard block
 block discarded – undo
186 189
     }
187 190
 
188 191
     /**
189
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
192
+     * @param string $max maximum timestamp used as random end limit, default to "now"
190 193
      * @example DateTime('2011-09-19 09:24:37')
191 194
      * @return \DateTime
192 195
      */
@@ -196,7 +199,7 @@  discard block
 block discarded – undo
196 199
     }
197 200
 
198 201
     /**
199
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
202
+     * @param string $max maximum timestamp used as random end limit, default to "now"
200 203
      * @example DateTime('2011-10-05 12:51:46')
201 204
      * @return \DateTime
202 205
      */
@@ -206,7 +209,7 @@  discard block
 block discarded – undo
206 209
     }
207 210
 
208 211
     /**
209
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
212
+     * @param string $max maximum timestamp used as random end limit, default to "now"
210 213
      * @return string
211 214
      * @example 'am'
212 215
      */
@@ -216,7 +219,7 @@  discard block
 block discarded – undo
216 219
     }
217 220
 
218 221
     /**
219
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
222
+     * @param string $max maximum timestamp used as random end limit, default to "now"
220 223
      * @return string
221 224
      * @example '22'
222 225
      */
@@ -226,7 +229,7 @@  discard block
 block discarded – undo
226 229
     }
227 230
 
228 231
     /**
229
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
232
+     * @param string $max maximum timestamp used as random end limit, default to "now"
230 233
      * @return string
231 234
      * @example 'Tuesday'
232 235
      */
@@ -236,7 +239,7 @@  discard block
 block discarded – undo
236 239
     }
237 240
 
238 241
     /**
239
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
242
+     * @param string $max maximum timestamp used as random end limit, default to "now"
240 243
      * @return string
241 244
      * @example '7'
242 245
      */
@@ -246,7 +249,7 @@  discard block
 block discarded – undo
246 249
     }
247 250
 
248 251
     /**
249
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
252
+     * @param string $max maximum timestamp used as random end limit, default to "now"
250 253
      * @return string
251 254
      * @example 'September'
252 255
      */
@@ -256,8 +259,8 @@  discard block
 block discarded – undo
256 259
     }
257 260
 
258 261
     /**
259
-     * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
260
-     * @return int
262
+     * @param string $max maximum timestamp used as random end limit, default to "now"
263
+     * @return string
261 264
      * @example 1673
262 265
      */
263 266
     public static function year($max = 'now')
@@ -285,6 +288,7 @@  discard block
 block discarded – undo
285 288
 
286 289
     /**
287 290
      * Internal method to set the time zone on a DateTime.
291
+     * @param string $timezone
288 292
      */
289 293
     private static function setTimezone(\DateTime $dt, $timezone)
290 294
     {
Please login to merge, or discard this patch.
vendor/fzaninotto/faker/src/Faker/Provider/Internet.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -207,6 +207,9 @@
 block discarded – undo
207 207
         return $mac;
208 208
     }
209 209
 
210
+    /**
211
+     * @return string
212
+     */
210 213
     protected static function transliterate($string)
211 214
     {
212 215
         $transId = 'Any-Latin; Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC;';
Please login to merge, or discard this patch.
vendor/fzaninotto/faker/test/Faker/Provider/BarcodeTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
38 38
 
39 39
 class TestableBarcode extends Barcode
40 40
 {
41
+    /**
42
+     * @param string $input
43
+     */
41 44
     public static function eanChecksum($input)
42 45
     {
43 46
         return parent::eanChecksum($input);
Please login to merge, or discard this patch.
vendor/fzaninotto/faker/test/Faker/Provider/zh_TW/TextTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
         $this->textClass = new \ReflectionClass('Faker\Provider\zh_TW\Text');
12 12
     }
13 13
 
14
+    /**
15
+     * @param string $name
16
+     */
14 17
     protected function getMethod($name) {
15 18
         $method = $this->textClass->getMethod($name);
16 19
 
Please login to merge, or discard this patch.