@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -42,7 +42,7 @@ |
||
42 | 42 | protected $resource; |
43 | 43 | |
44 | 44 | |
45 | - /** |
|
45 | + /** |
|
46 | 46 | * Logger |
47 | 47 | * |
48 | 48 | * @var Logger |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * @param Logger $logger |
98 | 98 | * @return void |
99 | 99 | */ |
100 | - public function __construct(?Iterable $config, Logger $logger) |
|
100 | + public function __construct(? Iterable $config, Logger $logger) |
|
101 | 101 | { |
102 | 102 | $this->logger = $logger; |
103 | 103 | $this->setOptions($config); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * @param Iterable |
111 | 111 | * @return Oauth2 |
112 | 112 | */ |
113 | - public function setOptions(?Iterable $config): Oauth2 |
|
113 | + public function setOptions(? Iterable $config) : Oauth2 |
|
114 | 114 | { |
115 | 115 | if ($config === null) { |
116 | 116 | return $this; |
@@ -266,9 +266,9 @@ discard block |
||
266 | 266 | $jre = json_decode($re); |
267 | 267 | |
268 | 268 | if ($jre->status == "success") { |
269 | - return (array) $jre->data; |
|
269 | + return (array)$jre->data; |
|
270 | 270 | } elseif ($jre->status == "fail") { |
271 | - throw new Exception('Error while validating the acces token. Auth server responded: ' . $jre->message); |
|
271 | + throw new Exception('Error while validating the acces token. Auth server responded: '.$jre->message); |
|
272 | 272 | } else { |
273 | 273 | throw new Exception('could not decode response: '.$re); |
274 | 274 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |