From fc22c3605eaaa05b0e8b1aaae176ea652f8eb260 Mon Sep 17 00:00:00 2001 From: Bas Kamer Date: Mon, 1 May 2017 21:40:18 +0200 Subject: [PATCH] work in php56 --- src/App/Command/ConfigureCommand.php | 2 -- src/App/Command/Container/StatusCommandFactory.php | 2 -- src/App/Command/Container/UploadCommandFactory.php | 2 -- src/App/Command/StatusCommand.php | 13 +++++++------ src/App/Command/UploadCommand.php | 6 ++---- src/App/Exception/InvalidArgumentException.php | 3 --- src/App/Exception/RuntimeException.php | 3 --- 7 files changed, 9 insertions(+), 22 deletions(-) diff --git a/src/App/Command/ConfigureCommand.php b/src/App/Command/ConfigureCommand.php index 99be7ad..1511621 100644 --- a/src/App/Command/ConfigureCommand.php +++ b/src/App/Command/ConfigureCommand.php @@ -1,7 +1,5 @@ writeln(''); @@ -110,7 +107,11 @@ protected function execute(InputInterface $input, OutputInterface $output) return 0; } - private function pollStatus(string $job) + /** + * @param string $job + * @return null + */ + private function pollStatus($job) { $this->client = new Client([ 'base_uri' => $this->config['endpoint'], diff --git a/src/App/Command/UploadCommand.php b/src/App/Command/UploadCommand.php index bb61b04..2268b81 100644 --- a/src/App/Command/UploadCommand.php +++ b/src/App/Command/UploadCommand.php @@ -1,7 +1,5 @@ 'find_by_udid', - 'contents' => $this->config['find_by_udid'] ?? 0, + 'contents' => isset($this->config['find_by_udid']) ? $this->config['find_by_udid'] : 0, ], [ 'name' => 'wall_of_apps', - 'contents' => $this->config['wall_of_apps'] ?? 0, + 'contents' => isset($this->config['wall_of_apps']) ? $this->config['wall_of_apps'] : 0, ], [ 'name' => 'file', diff --git a/src/App/Exception/InvalidArgumentException.php b/src/App/Exception/InvalidArgumentException.php index b5ca9c7..649473d 100644 --- a/src/App/Exception/InvalidArgumentException.php +++ b/src/App/Exception/InvalidArgumentException.php @@ -1,10 +1,7 @@