@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | ->setName('tvi:monitor:check:generator') |
51 | 51 | ->setDescription('Generate health check skeleton') |
52 | 52 | ->addArgument('check', InputArgument::REQUIRED, 'Check name') |
53 | - ->addOption('check-sapce', 's', InputOption::VALUE_REQUIRED, 'Check spase', 'core') |
|
53 | + ->addOption('check-sapce', 's', InputOption::VALUE_REQUIRED, 'Check spase', 'core') |
|
54 | 54 | ->addOption('group', 'g', InputOption::VALUE_OPTIONAL, 'Check group') |
55 | 55 | ->addOption('no-backup', 'b', InputOption::VALUE_NONE, 'Do not backup existing check files.') |
56 | 56 | ->setHelp( |
@@ -137,11 +137,11 @@ discard block |
||
137 | 137 | |
138 | 138 | $checkSapce = $input->getOption('check-sapce'); |
139 | 139 | $checkSapce = trim($checkSapce); |
140 | - if(preg_match('/[^\w:]/', $checkSapce, $m)) { |
|
140 | + if (preg_match('/[^\w:]/', $checkSapce, $m)) { |
|
141 | 141 | $output->writeln('<error>Bad check-sapce foramt</error>, check-sapce has to be like [:\w+]+.'); |
142 | 142 | exit(1); |
143 | 143 | } |
144 | - if($checkSapce == '') { |
|
144 | + if ($checkSapce == '') { |
|
145 | 145 | $output->writeln('<error>Check-sapce requeaerd</error>. Use --check-sapce=... to set it'); |
146 | 146 | exit(1); |
147 | 147 | } |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | */ |
198 | 198 | private function createFile(string $basePath, string $from, string $to, array $tplData) |
199 | 199 | { |
200 | - $r = array_filter($this->tpls, static function (SplFileInfo $f) use ($from) { |
|
200 | + $r = array_filter($this->tpls, static function(SplFileInfo $f) use ($from) { |
|
201 | 201 | return $f->getBasename() === $from; |
202 | 202 | }); |
203 | 203 |