@@ -53,11 +53,9 @@ discard block |
||
| 53 | 53 | * |
| 54 | 54 | * @return void |
| 55 | 55 | */ |
| 56 | - public function refreshCache() |
|
| 57 | - { |
|
| 56 | + public function refreshCache() { |
|
| 58 | 57 | $translations = new TranslationIdentifier(); |
| 59 | - $translations = $translations->leftJoin('translations', function($join) |
|
| 60 | - { |
|
| 58 | + $translations = $translations->leftJoin('translations', function($join) { |
|
| 61 | 59 | $join->on('translation_identifiers.id', '=', 'translations.translation_identifier_id') |
| 62 | 60 | ->where('locale', $this->locale); |
| 63 | 61 | } |
@@ -93,8 +91,7 @@ discard block |
||
| 93 | 91 | * @throws NotFoundResourceException |
| 94 | 92 | * @return integer |
| 95 | 93 | */ |
| 96 | - function getDatabaseID($identifier) |
|
| 97 | - { |
|
| 94 | + function getDatabaseID($identifier) { |
|
| 98 | 95 | if (isset($this->translations[$identifier])) { |
| 99 | 96 | return $this->translations[$identifier]->id; |
| 100 | 97 | } else { |