@@ -83,7 +83,7 @@ |
||
| 83 | 83 | |
| 84 | 84 | if (!$response->isValid() || !$json || !array_key_exists('access_token', $json)) { |
| 85 | 85 | return $json['access_token']; |
| 86 | - } else { |
|
| 86 | + }else { |
|
| 87 | 87 | return ''; |
| 88 | 88 | } |
| 89 | 89 | } |
@@ -109,6 +109,6 @@ |
||
| 109 | 109 | */ |
| 110 | 110 | protected function auth_url(string $path): string |
| 111 | 111 | { |
| 112 | - return $this->_auth_domain . '/' . ltrim($path, '/'); |
|
| 112 | + return $this->_auth_domain.'/'.ltrim($path, '/'); |
|
| 113 | 113 | } |
| 114 | 114 | } |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | */ |
| 129 | 129 | public function getIterator(): Generator |
| 130 | 130 | { |
| 131 | - return (function () { |
|
| 131 | + return (function() { |
|
| 132 | 132 | $i = 0; |
| 133 | 133 | $x = 0; |
| 134 | 134 | $m = $this->count(); |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | $t = $this->getItems(ceil($i / self::PAGE_LENGTH)); |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | - yield $i => $t[self::PAGE_LENGTH - $x]; |
|
| 142 | + yield $i => $t[self::PAGE_LENGTH-$x]; |
|
| 143 | 143 | |
| 144 | 144 | $x -= 1; |
| 145 | 145 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class ObjectResource extends ApiResource { |
| 14 | 14 | |
| 15 | - private $_object_data = []; |
|
| 15 | + private $_object_data = []; |
|
| 16 | 16 | |
| 17 | 17 | public function __construct(Connector $connector, array $_object_data = []) |
| 18 | 18 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | public function all(): ListResource |
| 14 | 14 | { |
| 15 | - return new ListResource($this->getClient(), ); |
|
| 15 | + return new ListResource($this->getClient(),); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | } |