| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function boot() { |
||
| 26 | Blade::directive('translate', function($expression) { |
||
| 27 | |||
| 28 | $expression = $this->stripParentheses($expression); |
||
| 29 | |||
| 30 | // Call the TranslatorFacade to translate the string |
||
| 31 | return "<?php echo Hokan22\\LaravelTranslator\\TranslatorFacade::translate({$expression}); ?>"; |
||
| 32 | } |
||
| 33 | ); |
||
| 34 | |||
| 35 | Blade::directive('t', function($expression) { |
||
| 36 | |||
| 37 | $expression = $this->stripParentheses($expression); |
||
| 38 | |||
| 39 | // Call the TranslatorFacade to translate the string |
||
| 40 | return "<?php echo Hokan22\\LaravelTranslator\\TranslatorFacade::translate({$expression}); ?>"; |
||
| 41 | } |
||
| 59 |