mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-10-15 19:22:01 +00:00
[twitter] Update abraham/twitteroauth dependency
This commit is contained in:
parent
30445b3c85
commit
569e3f4831
167 changed files with 11848 additions and 2157 deletions
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Abraham\TwitterOAuth;
|
||||
|
||||
/**
|
||||
|
@ -23,7 +25,7 @@ class Response
|
|||
/**
|
||||
* @param string $apiPath
|
||||
*/
|
||||
public function setApiPath($apiPath)
|
||||
public function setApiPath(string $apiPath): void
|
||||
{
|
||||
$this->apiPath = $apiPath;
|
||||
}
|
||||
|
@ -31,7 +33,7 @@ class Response
|
|||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getApiPath()
|
||||
public function getApiPath(): ?string
|
||||
{
|
||||
return $this->apiPath;
|
||||
}
|
||||
|
@ -55,7 +57,7 @@ class Response
|
|||
/**
|
||||
* @param int $httpCode
|
||||
*/
|
||||
public function setHttpCode($httpCode)
|
||||
public function setHttpCode(int $httpCode): void
|
||||
{
|
||||
$this->httpCode = $httpCode;
|
||||
}
|
||||
|
@ -63,7 +65,7 @@ class Response
|
|||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getHttpCode()
|
||||
public function getHttpCode(): int
|
||||
{
|
||||
return $this->httpCode;
|
||||
}
|
||||
|
@ -71,7 +73,7 @@ class Response
|
|||
/**
|
||||
* @param array $headers
|
||||
*/
|
||||
public function setHeaders(array $headers)
|
||||
public function setHeaders(array $headers): void
|
||||
{
|
||||
foreach ($headers as $key => $value) {
|
||||
if (substr($key, 0, 1) == 'x') {
|
||||
|
@ -84,7 +86,7 @@ class Response
|
|||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getsHeaders()
|
||||
public function getsHeaders(): array
|
||||
{
|
||||
return $this->headers;
|
||||
}
|
||||
|
@ -92,7 +94,7 @@ class Response
|
|||
/**
|
||||
* @param array $xHeaders
|
||||
*/
|
||||
public function setXHeaders(array $xHeaders = [])
|
||||
public function setXHeaders(array $xHeaders = []): void
|
||||
{
|
||||
$this->xHeaders = $xHeaders;
|
||||
}
|
||||
|
@ -100,7 +102,7 @@ class Response
|
|||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getXHeaders()
|
||||
public function getXHeaders(): array
|
||||
{
|
||||
return $this->xHeaders;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue