Completed
Push — master ( 3faeb6...33b5f3 )
by Alan
04:09
created
src/TwigFakerExtension.php 3 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,8 +35,9 @@
 block discarded – undo
35 35
     /**
36 36
      * Generate fake data.
37 37
      *
38
-     * @param $type
38
+     * @param string $type
39 39
      * @param int $count
40
+     * @param string $cache_key
40 41
      * @return array
41 42
      */
42 43
     public function fakerData($type, $count = 1, $cache_key = null)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
         for ($i = 0; $i < $count; $i++)
70 70
         {
71
-            if ( ! file_exists($this->fullFactoryPath($type)))
71
+            if (!file_exists($this->fullFactoryPath($type)))
72 72
             {
73 73
                 throw new InvalidFactoryException('does not exist');
74 74
             }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,9 @@
 block discarded – undo
41 41
      */
42 42
     public function fakerData($type, $count = 1, $cache_key = null)
43 43
     {
44
-        if (isset($cache_key)) $cache_key = "{$type}-$cache_key";
44
+        if (isset($cache_key)) {
45
+            $cache_key = "{$type}-$cache_key";
46
+        }
45 47
 
46 48
         if (isset($this->cache[$cache_key]))
47 49
         {
Please login to merge, or discard this patch.