1 | <?php |
||
11 | class Worker implements WorkerInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var \EasyRSA\Interfaces\ConfigInterface |
||
15 | */ |
||
16 | protected $config; |
||
17 | |||
18 | /** |
||
19 | * If need to enable debug mode |
||
20 | */ |
||
21 | public $dryRun = false; |
||
22 | |||
23 | /** |
||
24 | * Wrapper constructor, need configuration for normal usage |
||
25 | * |
||
26 | * @param \EasyRSA\Interfaces\ConfigInterface|array $config |
||
27 | * |
||
28 | * @throws \RuntimeException |
||
29 | */ |
||
30 | public function __construct($config = []) |
||
43 | |||
44 | /** |
||
45 | * @return \EasyRSA\Interfaces\ConfigInterface |
||
46 | */ |
||
47 | public function getConfig(): ConfigInterface |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function getContent(string $filename): ?string |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | * |
||
87 | * @throws \RuntimeException Of folder with certs unable to create or if is not a folder |
||
88 | */ |
||
89 | public function exec(string $cmd): array |
||
112 | } |
||
113 |
The break statement is not necessary if it is preceded for example by a return statement:
If you would like to keep this construct to be consistent with other case statements, you can safely mark this issue as a false-positive.