Conditions | 4 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 2 | final protected static function tempnamCheck(OutputInterface $output) : ? string |
|
23 | { |
||
24 | 2 | $tempnam = static::tempnam(); |
|
25 | |||
26 | 2 | if (is_dir($tempnam) || ! is_file($tempnam) || ! is_writable($tempnam)) { |
|
27 | 1 | $output->writeln('could not get temporary filename!'); |
|
28 | |||
29 | 1 | return null; |
|
30 | } |
||
31 | |||
32 | 1 | return $tempnam; |
|
33 | } |
||
35 |