@@ -17,7 +17,7 @@  | 
                                                    ||
| 17 | 17 | /**  | 
                                                        
| 18 | 18 | * Get the alpha generator.  | 
                                                        
| 19 | 19 | *  | 
                                                        
| 20 | - * @return mixed  | 
                                                        |
| 20 | + * @return \Closure  | 
                                                        |
| 21 | 21 | */  | 
                                                        
| 22 | 22 | protected function getNumericGenerator()  | 
                                                        
| 23 | 23 |      { | 
                                                        
@@ -21,7 +21,7 @@  | 
                                                    ||
| 21 | 21 | */  | 
                                                        
| 22 | 22 | protected function getNumericGenerator()  | 
                                                        
| 23 | 23 |      { | 
                                                        
| 24 | -        return function () { | 
                                                        |
| 24 | +        return function() { | 
                                                        |
| 25 | 25 | return random_int(0, PHP_INT_MAX);  | 
                                                        
| 26 | 26 | };  | 
                                                        
| 27 | 27 | }  | 
                                                        
@@ -8,7 +8,7 @@ discard block  | 
                                                    ||
| 8 | 8 | * Generate a random string.  | 
                                                        
| 9 | 9 | *  | 
                                                        
| 10 | 10 | * @param \Closure $generator  | 
                                                        
| 11 | - * @return mixed  | 
                                                        |
| 11 | + * @return string  | 
                                                        |
| 12 | 12 | */  | 
                                                        
| 13 | 13 | protected function generateString($generator)  | 
                                                        
| 14 | 14 |      { | 
                                                        
@@ -24,7 +24,7 @@ discard block  | 
                                                    ||
| 24 | 24 | /**  | 
                                                        
| 25 | 25 | * Get the alpha generator.  | 
                                                        
| 26 | 26 | *  | 
                                                        
| 27 | - * @return mixed  | 
                                                        |
| 27 | + * @return \Closure  | 
                                                        |
| 28 | 28 | */  | 
                                                        
| 29 | 29 | protected function getAlphaGenerator()  | 
                                                        
| 30 | 30 |      { | 
                                                        
@@ -59,7 +59,7 @@ discard block  | 
                                                    ||
| 59 | 59 | /**  | 
                                                        
| 60 | 60 | * Trim string to expected size.  | 
                                                        
| 61 | 61 | *  | 
                                                        
| 62 | - * @param $string  | 
                                                        |
| 62 | + * @param string $string  | 
                                                        |
| 63 | 63 | * @param int|null $size  | 
                                                        
| 64 | 64 | * @return string  | 
                                                        
| 65 | 65 | */  | 
                                                        
@@ -28,7 +28,7 @@  | 
                                                    ||
| 28 | 28 | */  | 
                                                        
| 29 | 29 | protected function getAlphaGenerator()  | 
                                                        
| 30 | 30 |      { | 
                                                        
| 31 | -        return function ($size) { | 
                                                        |
| 31 | +        return function($size) { | 
                                                        |
| 32 | 32 | return random_bytes($size);  | 
                                                        
| 33 | 33 | };  | 
                                                        
| 34 | 34 | }  | 
                                                        
@@ -32,7 +32,7 @@  | 
                                                    ||
| 32 | 32 |      { | 
                                                        
| 33 | 33 | $result = [];  | 
                                                        
| 34 | 34 | |
| 35 | - $last = count($this->items)-1;  | 
                                                        |
| 35 | + $last = count($this->items) - 1;  | 
                                                        |
| 36 | 36 | |
| 37 | 37 |          for ($counter = 1; $counter <= $this->count; $counter++) { | 
                                                        
| 38 | 38 | $result[] = $this->items[$this->generateRandomInt(0, $last)];  | 
                                                        
@@ -40,7 +40,7 @@ discard block  | 
                                                    ||
| 40 | 40 | private function addPrefixSuffix($value)  | 
                                                        
| 41 | 41 |      { | 
                                                        
| 42 | 42 |          if (!is_null($this->prefix) || !is_null($this->suffix)) { | 
                                                        
| 43 | - return (string) $this->prefix . $value . (string) $this->suffix;  | 
                                                        |
| 43 | + return (string) $this->prefix.$value.(string) $this->suffix;  | 
                                                        |
| 44 | 44 | }  | 
                                                        
| 45 | 45 | |
| 46 | 46 | return $value;  | 
                                                        
@@ -53,7 +53,7 @@ discard block  | 
                                                    ||
| 53 | 53 | */  | 
                                                        
| 54 | 54 | protected function generate()  | 
                                                        
| 55 | 55 |      { | 
                                                        
| 56 | -        if (! is_null($this->fakerString)) { | 
                                                        |
| 56 | +        if (!is_null($this->fakerString)) { | 
                                                        |
| 57 | 57 | return $this->fakerString;  | 
                                                        
| 58 | 58 | }  | 
                                                        
| 59 | 59 | |