Skip to content

Commit

Permalink
work in php56
Browse files Browse the repository at this point in the history
  • Loading branch information
basz committed May 1, 2017
1 parent c184171 commit fc22c36
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 22 deletions.
2 changes: 0 additions & 2 deletions src/App/Command/ConfigureCommand.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types = 1);

namespace App\Command;

use Symfony\Component\Console\Command\Command;
Expand Down
2 changes: 0 additions & 2 deletions src/App/Command/Container/StatusCommandFactory.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types = 1);

namespace App\Command\Container;

use App\Command\StatusCommand;
Expand Down
2 changes: 0 additions & 2 deletions src/App/Command/Container/UploadCommandFactory.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types = 1);

namespace App\Command\Container;

use App\Command\UploadCommand;
Expand Down
13 changes: 7 additions & 6 deletions src/App/Command/StatusCommand.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<?php

declare(strict_types = 1);

namespace App\Command;

use App\Exception\InvalidArgumentException;
use App\Exception\RuntimeException;
use GuzzleHttp\Client;
use Symfony\Component\Console\Command\Command;
Expand Down Expand Up @@ -90,10 +87,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
exit(1);
}

if (!$result) {
if (! $result) {
sleep(1);
}
} while (!$result);
} while (! $result);

$output->writeln('');

Expand All @@ -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'],
Expand Down
6 changes: 2 additions & 4 deletions src/App/Command/UploadCommand.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types = 1);

namespace App\Command;

use App\Exception\InvalidArgumentException;
Expand Down Expand Up @@ -87,11 +85,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
],
[
'name' => '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',
Expand Down
3 changes: 0 additions & 3 deletions src/App/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<?php

declare(strict_types = 1);

namespace App\Exception;

class InvalidArgumentException extends \InvalidArgumentException
{

}
3 changes: 0 additions & 3 deletions src/App/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<?php

declare(strict_types = 1);

namespace App\Exception;

class RuntimeException extends \RuntimeException
{

}

0 comments on commit fc22c36

Please sign in to comment.