Conditions | 5 |
Paths | 6 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
38 | public function run(): array { |
||
39 | $fileType = []; |
||
40 | |||
41 | /** @var CheckInterface $step */ |
||
42 | foreach ( $this->steps as $step ) { |
||
43 | if ( null !== $step->check( $this->tmp ) ) { |
||
44 | $fileType = $step->check( $this->tmp ); |
||
45 | } |
||
46 | } |
||
47 | |||
48 | if ( !empty( $fileType ) && $this->isValid( $fileType ) ) { |
||
49 | return $fileType; |
||
50 | } |
||
51 | |||
52 | return [ |
||
53 | 'proprietary' => false, |
||
54 | 'proprietary_name' => null, |
||
55 | 'proprietary_short_name' => null, |
||
56 | 'converter_version' => null, |
||
57 | ]; |
||
76 |