FileSystem::clearCache()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
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