@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * Create the fake data. |
| 53 | 53 | * |
| 54 | 54 | * @param $type |
| 55 | - * @param $count |
|
| 55 | + * @param integer $count |
|
| 56 | 56 | */ |
| 57 | 57 | private function createNewFakeData($type, $count) |
| 58 | 58 | { |
@@ -40,7 +40,9 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public function fakerData($type, $count = 1, $cache_key = null) |
| 42 | 42 | { |
| 43 | - if (isset($this->cache[$cache_key])) return $this->cache[$cache_key]; |
|
| 43 | + if (isset($this->cache[$cache_key])) { |
|
| 44 | + return $this->cache[$cache_key]; |
|
| 45 | + } |
|
| 44 | 46 | |
| 45 | 47 | $this->createNewFakeData($type, $count); |
| 46 | 48 | $this->cacheNewFakeData($cache_key); |