We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
7 | trait SpatieTranslatableAdaptor |
||
8 | { |
||
9 | use HasTranslations; |
||
10 | |||
11 | public $locale = false; |
||
12 | |||
13 | /* |
||
14 | |-------------------------------------------------------------------------- |
||
15 | | SPATIE/LARAVEL-TRANSLATABLE OVERWRITES |
||
16 | |-------------------------------------------------------------------------- |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * Use the forced locale if present. |
||
21 | * |
||
22 | * @param [type] $key [description] |
||
|
|||
23 | * @return [type] [description] |
||
24 | */ |
||
25 | public function getAttributeValue($key) |
||
35 | |||
36 | /* |
||
37 | |-------------------------------------------------------------------------- |
||
38 | | ELOQUENT OVERWRITES |
||
39 | |-------------------------------------------------------------------------- |
||
40 | */ |
||
41 | |||
42 | /** |
||
43 | * Create translated items as json. |
||
44 | * |
||
45 | * @param array $attributes [description] |
||
46 | */ |
||
47 | public static function create(array $attributes = []) |
||
66 | |||
67 | /** |
||
68 | * Update translated items as json. |
||
69 | * |
||
70 | * @param array $attributes |
||
71 | * @param array $options |
||
72 | * @return bool |
||
73 | */ |
||
74 | public function update(array $attributes = [], array $options = []) |
||
95 | |||
96 | /* |
||
97 | |-------------------------------------------------------------------------- |
||
98 | | CUSTOM METHODS |
||
99 | |-------------------------------------------------------------------------- |
||
100 | */ |
||
101 | |||
102 | /** |
||
103 | * Check if a model is translatable, by the adapter's standards. |
||
104 | * |
||
105 | * @return bool |
||
106 | */ |
||
107 | public function translationEnabledForModel() |
||
111 | |||
112 | /** |
||
113 | * Get all locales the admin is allowed to use. |
||
114 | * |
||
115 | * @return array |
||
116 | */ |
||
117 | public function getAvailableLocales() |
||
121 | |||
122 | /** |
||
123 | * Set the locale property. Used in normalizeLocale() to force the translation |
||
124 | * to a different language that the one set in app()->getLocale();. |
||
125 | * |
||
126 | * @param string |
||
127 | */ |
||
128 | public function setLocale($locale) |
||
132 | |||
133 | /** |
||
134 | * Magic method to get the db entries already translated in the wanted locale. |
||
135 | */ |
||
136 | public function __call($method, $parameters) |
||
163 | } |
||
164 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.