| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1.008 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | 6 | public function boot() |
|
| 10 | { |
||
| 11 | /* @deprecated - phpstorm not supports num regex */ |
||
| 12 | 6 | Blade::directive('i18nBatch', function ($expression) { |
|
| 13 | return "<?php echo i18n_strings_batch_json($expression); ?>"; |
||
| 14 | 6 | }); |
|
| 15 | |||
| 16 | 6 | Blade::directive('transBatch', function ($expression) { |
|
| 17 | return "<?php echo i18n_strings_batch_json($expression); ?>"; |
||
| 18 | 6 | }); |
|
| 19 | |||
| 20 | 6 | $this->publishes([ |
|
| 21 | 6 | __DIR__ . '/../resources/' => public_path('vendor/i18n_strings_batch'), |
|
| 22 | 6 | ], 'i18n-string-batch-resources'); |
|
| 23 | } |
||
| 32 |