@@ -35,8 +35,9 @@ |
||
| 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) |
@@ -68,7 +68,7 @@ |
||
| 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 | } |
@@ -41,7 +41,9 @@ |
||
| 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 | { |