@@ -92,7 +92,7 @@ |
||
| 92 | 92 | 'Authorization' => "Bearer {$session->getAccessToken()}", |
| 93 | 93 | 'User-Agent' => $user_agent, |
| 94 | 94 | ], |
| 95 | - ]; |
|
| 95 | + ]; |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | public function __construct(array $properties) |
| 66 | 66 | { |
| 67 | 67 | if (isset($properties['account'])) { |
| 68 | - $properties['account'] = map (Account::class, $properties['account']); |
|
| 68 | + $properties['account'] = map(Account::class, $properties['account']); |
|
| 69 | 69 | } |
| 70 | 70 | if (isset($properties['reblog'])) { |
| 71 | 71 | $properties['reblog'] = map(Status::class, $properties['reblog']); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | return [ |
| 106 | 106 | 'access_token' => isset($values[$token_key]) ? $values[$token_key] : null, |
| 107 | 107 | 'scope' => isset($values[$scope_key]) ? $values[$scope_key] : null, |
| 108 | - 'created_at' => isset($values[$cat_key]) ? $values[$cat_key] : null, |
|
| 108 | + 'created_at' => isset($values[$cat_key]) ? $values[$cat_key] : null, |
|
| 109 | 109 | ]; |
| 110 | 110 | } |
| 111 | 111 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $values = $this->getValues(); |
| 149 | 149 | |
| 150 | 150 | return [ |
| 151 | - 'client_id' => isset($values[$id_key]) ? $values[$id_key] : null, |
|
| 151 | + 'client_id' => isset($values[$id_key]) ? $values[$id_key] : null, |
|
| 152 | 152 | 'client_secret' => isset($values[$sec_key]) ? $values[$sec_key] : null, |
| 153 | 153 | ]; |
| 154 | 154 | } |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | { |
| 189 | 189 | v::stringType()->not(v::contains("\n"))->assert($username); |
| 190 | 190 | v::stringType()->not(v::contains("\n"))->assert($password); |
| 191 | - $this->save_values['username'] = $username; |
|
| 191 | + $this->save_values['username'] = $username; |
|
| 192 | 192 | $this->save_values['password'] = $password; |
| 193 | 193 | } |
| 194 | 194 | |