Completed
Branch master (a42ab4)
by samayo
64:27 queued 29:30
created

BulletProofOverride::moveUploadedFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 2
b 0
f 0
1
<?php
2
3
namespace BulletProofTest;
4
5
require __DIR__ . '../../src/bulletproof.php';
6
7
class BulletProofOverride extends \Bulletproof\Image
8
{
9
10
	// prevent class from using move_file_upload(); function
11
    public function moveUploadedFile($tmp, $desination)
12
    {
13
        return true;
14
    }
15
16
    /* prevent class from creating a folder */
17
    public function setLocation($dir = "bulletproof", $optionalPermision = 0666){
18
    	$this->location = $dir;
19
    	return $this; 
20
    }
21
}
22
23