FileSystem   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A clearCache() 0 6 1
1
<?php
2
3
namespace Maestriam\Samurai\Foundation;
4
5
use Illuminate\Support\Facades\Artisan;
6
7
class FileSystem
8
{
9
    /**
10
     * Limpa o cache do projeto
11
     *
12
     * @return void
13
     */
14
    public function clearCache()
15
    {
16
        Artisan::call('view:clear');
17
        Artisan::call('cache:clear');
18
19
        return true;
0 ignored issues
show
Bug Best Practice introduced by
The expression return true returns the type true which is incompatible with the documented return type void.
Loading history...
20
    }
21
}
22