Total Complexity | 4 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class CacheFlushCommand extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The console command name. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $name = 'translator:flush'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = "Flush the translation cache."; |
||
23 | |||
24 | /** |
||
25 | * Create the cache flushed command |
||
26 | * |
||
27 | * @param \Waavi\Lang\Providers\LanguageProvider $languageRepository |
||
28 | * @param \Waavi\Lang\Providers\LanguageEntryProvider $translationRepository |
||
29 | * @param \Illuminate\Foundation\Application $app |
||
30 | */ |
||
31 | public function __construct(CacheRepository $cacheRepository, $cacheEnabled) |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Execute the console command. |
||
40 | * |
||
41 | * @return void |
||
42 | */ |
||
43 | public function fire() |
||
50 | } |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Execute the console command for Laravel 5.5 |
||
55 | * this laravel version call handle intead of fire |
||
56 | */ |
||
57 | public function handle() |
||
62 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths