Passed
Push — master ( 3256e3...60c4f2 )
by Georgi
03:14
created

FileStorageList::displayGrid()   A

Complexity

Conditions 4
Paths 2

Size

Total Lines 53
Code Lines 34

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 34
c 1
b 0
f 0
dl 0
loc 53
rs 9.376
cc 4
nc 2
nop 0

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
namespace Epesi\FileStorage;
4
5
use Epesi\Core\System\Integration\Modules\ModuleView;
6
use Illuminate\Support\Facades\Auth;
7
use Epesi\Core\Layout\Seeds\ActionBar;
8
9
class FileStorageList extends ModuleView
10
{
11
	protected $label = 'File Storage';
12
	
13
	public static function access()
14
	{
15
		return Auth::user()->can('modify system settings');
16
	}
17
	
18
	public function body()
19
	{
20
		ActionBar::addButton('back')->link(url('view/system'));
21
22
// 		$this->displayGrid();
23
	}
24
25
}
26