Completed
Push — master ( 6cec72...daf08a )
by Antonio Carlos
01:41
created
src/Generators/AlphaGenerator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Generators/StringGenerator.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Generators/ArrayGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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)];
Please login to merge, or discard this patch.
src/Random.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.