Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php namespace Arcanedev\Localization\Exceptions; |
||
11 | 4 | public static function make(string $key, array $translatableAttributes) |
|
12 | { |
||
13 | 4 | $translatableAttributes = implode(', ', $translatableAttributes); |
|
14 | |||
15 | 4 | return new static( |
|
16 | 4 | "The attribute `{$key}` is untranslatable because it's not available in the translatable array: `$translatableAttributes`" |
|
17 | ); |
||
18 | } |
||
19 | } |
||
20 |