@@ -36,39 +36,39 @@ |
||
36 | 36 | */ |
37 | 37 | class CheckApp extends Base { |
38 | 38 | |
39 | - /** |
|
40 | - * @var Checker |
|
41 | - */ |
|
42 | - private $checker; |
|
39 | + /** |
|
40 | + * @var Checker |
|
41 | + */ |
|
42 | + private $checker; |
|
43 | 43 | |
44 | - public function __construct(Checker $checker) { |
|
45 | - parent::__construct(); |
|
46 | - $this->checker = $checker; |
|
47 | - } |
|
44 | + public function __construct(Checker $checker) { |
|
45 | + parent::__construct(); |
|
46 | + $this->checker = $checker; |
|
47 | + } |
|
48 | 48 | |
49 | - /** |
|
50 | - * {@inheritdoc } |
|
51 | - */ |
|
52 | - protected function configure() { |
|
53 | - parent::configure(); |
|
54 | - $this |
|
55 | - ->setName('integrity:check-app') |
|
56 | - ->setDescription('Check integrity of an app using a signature.') |
|
57 | - ->addArgument('appid', InputArgument::REQUIRED, 'Application to check') |
|
58 | - ->addOption('path', null, InputOption::VALUE_OPTIONAL, 'Path to application. If none is given it will be guessed.'); |
|
59 | - } |
|
49 | + /** |
|
50 | + * {@inheritdoc } |
|
51 | + */ |
|
52 | + protected function configure() { |
|
53 | + parent::configure(); |
|
54 | + $this |
|
55 | + ->setName('integrity:check-app') |
|
56 | + ->setDescription('Check integrity of an app using a signature.') |
|
57 | + ->addArgument('appid', InputArgument::REQUIRED, 'Application to check') |
|
58 | + ->addOption('path', null, InputOption::VALUE_OPTIONAL, 'Path to application. If none is given it will be guessed.'); |
|
59 | + } |
|
60 | 60 | |
61 | - /** |
|
62 | - * {@inheritdoc } |
|
63 | - */ |
|
64 | - protected function execute(InputInterface $input, OutputInterface $output) { |
|
65 | - $appid = $input->getArgument('appid'); |
|
66 | - $path = (string)$input->getOption('path'); |
|
67 | - $result = $this->checker->verifyAppSignature($appid, $path); |
|
68 | - $this->writeArrayInOutputFormat($input, $output, $result); |
|
69 | - if (count($result)>0){ |
|
70 | - return 1; |
|
71 | - } |
|
72 | - } |
|
61 | + /** |
|
62 | + * {@inheritdoc } |
|
63 | + */ |
|
64 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
65 | + $appid = $input->getArgument('appid'); |
|
66 | + $path = (string)$input->getOption('path'); |
|
67 | + $result = $this->checker->verifyAppSignature($appid, $path); |
|
68 | + $this->writeArrayInOutputFormat($input, $output, $result); |
|
69 | + if (count($result)>0){ |
|
70 | + return 1; |
|
71 | + } |
|
72 | + } |
|
73 | 73 | |
74 | 74 | } |