DummyFileUpload   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A isBetween() 0 4 1
1
<?php
2
/**
3
 * Author: Nil Portugués Calderó <[email protected]>
4
 * Date: 9/26/14
5
 * Time: 8:28 PM
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Tests\NilPortugues\Validator\Resources;
12
13
use NilPortugues\Validator\Validation\FileUpload\FileUploadException;
14
15
/**
16
 * Class DummyFileUpload
17
 * @package Tests\NilPortugues\Validator\Resources
18
 */
19
class DummyFileUpload
20
{
21
    /**
22
     * @param $uploadName
23
     *
24
     * @throws \NilPortugues\Validator\Validation\FileUpload\FileUploadException
25
     */
26
    public static function isBetween($minSize, $maxSize, $format = 'B', $inclusive = false)
0 ignored issues
show
Unused Code introduced by
The parameter $minSize is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $maxSize is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $format is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $inclusive is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
27
    {
28
        throw new FileUploadException($uploadName);
29
    }
30
}
31