@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * Get the alpha generator. |
| 48 | 48 | * |
| 49 | - * @return mixed |
|
| 49 | + * @return \Closure |
|
| 50 | 50 | */ |
| 51 | 51 | protected function getAlphaGenerator() |
| 52 | 52 | { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | /** |
| 59 | 59 | * Get the alpha generator. |
| 60 | 60 | * |
| 61 | - * @return mixed |
|
| 61 | + * @return \Closure |
|
| 62 | 62 | */ |
| 63 | 63 | protected function getNumericGenerator() |
| 64 | 64 | { |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | protected function generate() |
| 15 | 15 | { |
| 16 | - if (! is_null($this->fakerString)) { |
|
| 16 | + if (!is_null($this->fakerString)) { |
|
| 17 | 17 | return $this->fakerString; |
| 18 | 18 | } |
| 19 | 19 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | protected function getAlphaGenerator() |
| 72 | 72 | { |
| 73 | - return function ($size) { |
|
| 73 | + return function($size) { |
|
| 74 | 74 | return random_bytes($size); |
| 75 | 75 | }; |
| 76 | 76 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | protected function getNumericGenerator() |
| 84 | 84 | { |
| 85 | - return function () { |
|
| 85 | + return function() { |
|
| 86 | 86 | return random_int(0, PHP_INT_MAX); |
| 87 | 87 | }; |
| 88 | 88 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $result = []; |
| 108 | 108 | |
| 109 | - $last = count($this->items)-1; |
|
| 109 | + $last = count($this->items) - 1; |
|
| 110 | 110 | |
| 111 | 111 | foreach (range(1, $this->count) as $counter) { |
| 112 | 112 | $result[] = $this->items[$this->generateRandomInt(0, $last)]; |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | private function addPrefixSuffix($value) |
| 34 | 34 | { |
| 35 | 35 | if (!is_null($this->prefix) || !is_null($this->suffix)) { |
| 36 | - return (string) $this->prefix . $value . (string) $this->suffix; |
|
| 36 | + return (string) $this->prefix.$value.(string) $this->suffix; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | return $value; |