@@ -87,12 +87,12 @@ discard block |
||
| 87 | 87 | $cacheKey = substr(sprintf( |
| 88 | 88 | '%s_get_%s', |
| 89 | 89 | self::DATA_SOURCE, |
| 90 | - preg_replace('~[A-Za-z0-9\.\_]~', '_',$name) |
|
| 91 | - ),0,64); |
|
| 90 | + preg_replace('~[A-Za-z0-9\.\_]~', '_', $name) |
|
| 91 | + ), 0, 64); |
|
| 92 | 92 | |
| 93 | 93 | $cachedObject = $this->cache->getItem($cacheKey); |
| 94 | 94 | |
| 95 | - if(!$cachedObject->isHit()) { |
|
| 95 | + if (!$cachedObject->isHit()) { |
|
| 96 | 96 | $result = $this->transform(parent::getByName($name, $complete)); |
| 97 | 97 | $cachedObject->set($result); |
| 98 | 98 | } else { |
@@ -112,12 +112,12 @@ discard block |
||
| 112 | 112 | $cacheKey = substr(sprintf( |
| 113 | 113 | '%s_transform_%s', |
| 114 | 114 | self::DATA_SOURCE, |
| 115 | - preg_replace('~[A-Za-z0-9\.\_]~', '_',$raw->getDefaultName()) |
|
| 116 | - ),0,64); |
|
| 115 | + preg_replace('~[A-Za-z0-9\.\_]~', '_', $raw->getDefaultName()) |
|
| 116 | + ), 0, 64); |
|
| 117 | 117 | |
| 118 | 118 | $cachedObject = $this->cache->getItem($cacheKey); |
| 119 | 119 | |
| 120 | - if(!$cachedObject->isHit()) { |
|
| 120 | + if (!$cachedObject->isHit()) { |
|
| 121 | 121 | $object = new ArtistModel; |
| 122 | 122 | $object |
| 123 | 123 | ->setId($raw->getId()) |