Completed
Pull Request — master (#24)
by
unknown
03:52
created

FileSizeTester   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 16
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test() 0 5 2
1
<?php
2
3
namespace Wandu\Validator\Testers;
4
5
class FileSizeTester extends PropertyTesterAbstract
6
{
7
    
8
    /**
9
	 * [test :: check the file size]
10
	 * @param  [type] $data   [description]
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
11
	 * @param  [type] $origin [description]
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
12
	 * @param  [type] $keys   [description]
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
13
	 * @return bool           [a]
14
	 */
15
    public function test(array $data = [], $origin = null, array $keys = []): bool
16
    {
17
        $checkIsMax = ( $data['max'] );
18
        return (  $checkIsMax ? $checkMax > $data['value'] :  $checkIsMax < $data['value'] );
0 ignored issues
show
Bug introduced by
The variable $checkMax does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
19
    }
20
}
21
22
/* End of file FileSizeTester.php */
23
/* Location: application/controllers/FileSizeTester.php */
24