Test Failed
Push — master ( 357bf5...71cdad )
by Russell
03:53
created

FileLoader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 2
c 1
b 0
f 1
dl 0
loc 5
rs 10
1
<?php
2
3
use SilverStripe\Assets\Upload;
4
5
/**
6
 * A class for uploading files directly from the filesystem where we don't
7
 * care about is_uploaded_file
8
 *
9
 * @author Marcus Nyeholt <[email protected]>
10
 * @license BSD License http://silverstripe.org/bsd-license
11
 */
12
class FileLoader extends Upload
13
{
14
    public function validate($tmpFile)
15
    {
16
        return true;
17
    }
18
}
19