@@ -42,5 +42,5 @@ |
||
| 42 | 42 | 'replace_host' => 'images.ctfassets.net', |
| 43 | 43 | ], |
| 44 | 44 | |
| 45 | - 'payload_fields_not_fallback' => explode(',',env('CONTENTFUL_PAYLOAD_FIELD_NOT_FALLBACK', '')) |
|
| 45 | + 'payload_fields_not_fallback' => explode(',', env('CONTENTFUL_PAYLOAD_FIELD_NOT_FALLBACK', '')) |
|
| 46 | 46 | ]; |
| 47 | 47 | \ No newline at end of file |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | public function modelGetter() |
| 11 | 11 | { |
| 12 | - $stubPath = __DIR__ . '/stubs/string.stub'; |
|
| 12 | + $stubPath = __DIR__.'/stubs/string.stub'; |
|
| 13 | 13 | |
| 14 | 14 | return self::getStub($stubPath, [ |
| 15 | 15 | 'field_camel' => studly_case($this->id()), |
@@ -132,12 +132,12 @@ |
||
| 132 | 132 | private function fieldsWithFallback(array $fields, string $locale): array |
| 133 | 133 | { |
| 134 | 134 | $fallbackLocale = Locale::fallback($locale); |
| 135 | - $file = $this->getFieldValue($fields, 'file', $locale, $fallbackLocale,[]); |
|
| 135 | + $file = $this->getFieldValue($fields, 'file', $locale, $fallbackLocale, []); |
|
| 136 | 136 | $details = isset($file['details']) ? $file['details'] : []; |
| 137 | 137 | |
| 138 | 138 | return [ |
| 139 | - 'title' => $this->getFieldValue($fields, 'title', $locale, $fallbackLocale,''), |
|
| 140 | - 'description' => $this->getFieldValue($fields, 'description', $locale, $fallbackLocale,''), |
|
| 139 | + 'title' => $this->getFieldValue($fields, 'title', $locale, $fallbackLocale, ''), |
|
| 140 | + 'description' => $this->getFieldValue($fields, 'description', $locale, $fallbackLocale, ''), |
|
| 141 | 141 | 'url' => isset($file['url']) ? $file['url'] : '', |
| 142 | 142 | 'file_name' => isset($file['fileName']) ? $file['fileName'] : '', |
| 143 | 143 | 'content_type' => isset($file['contentType']) ? $file['contentType'] : '', |