Completed
Push — master ( 0380c2...02776d )
by wen
56:13
created

Images   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A cardListType() 0 6 1
A getDefaultExtensions() 0 4 1
1
<?php
2
3
namespace Sco\Admin\Form\Elements;
4
5
class Images extends File
6
{
7
    protected $type = 'images';
8
9
    protected $listType = 'picture';
10
11
    public function cardListType()
12
    {
13
        $this->listType = 'picture-card';
14
15
        return $this;
16
    }
17
18
    protected function getDefaultExtensions()
19
    {
20
        return config('admin.upload.extensions.image');
21
    }
22
}
23