Passed
Push — master ( 5ad2cb...35956d )
by Antonio Carlos
03:45
created
src/Generators.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)];
Please login to merge, or discard this patch.
src/Random.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.