| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Blok\JavaScript; |
||
| 17 | public function boot() |
||
| 18 | { |
||
| 19 | require_once __DIR__ . '/helpers.php'; |
||
| 20 | |||
| 21 | $this->publishes([ |
||
| 22 | __DIR__ . '/config/javascript.php' => config_path('javascript.php'), |
||
| 23 | ], 'config'); |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @example |
||
| 27 | * @javascript($namespace, (optional) $array) |
||
| 28 | */ |
||
| 29 | Blade::directive('javascript', function ($expression) { |
||
| 30 | return "<?php echo JavaScript::render({$expression}); ?>"; |
||
| 31 | }); |
||
| 33 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.