InputValidator::validateInputParameters()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
/*
4
 * This file is part of gpupo/pipe2
5
 *
6
 * (c) Gilmar Pupo <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * For more information, see
12
 * <https://opensource.gpupo.com/pipe2/>.
13
 */
14
15
namespace Gpupo\Pipe2\Documentor;
16
17
class InputValidator
18
{
19
    public function validateInputParameters(Array $parameters)
20
    {
21
        if (!file_exists($parameters['inputFile'])) {
22
            throw new \InvalidArgumentException('Input File not found');
23
        }
24
25
        return true;
26
    }
27
}
28