Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans authored and github-actions[bot] committed Jun 2, 2023
1 parent 962409b commit 7f593ae
Show file tree
Hide file tree
Showing 19 changed files with 1 addition and 69 deletions.
3 changes: 0 additions & 3 deletions src/Clients/BarkClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ public function getBaseUri(): string
return $this->getOption('base_uri');
}

/**
* {@inheritDoc}
*/
public function getRequestUrl(): string
{
return sprintf(
Expand Down
6 changes: 0 additions & 6 deletions src/Clients/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ protected function callSendedCallbacks()
}
}

/**
* @return mixed
*/
protected function wrapSendCallbacks(\Closure $handler)
{
$this->callSendingCallbacks();
Expand All @@ -176,9 +173,6 @@ protected function wrapSendCallbacks(\Closure $handler)
return $handled;
}

/**
* @return mixed
*/
protected function wrapSendCallbacksWithRequestAsync(\Closure $handler)
{
return $this->wrapSendCallbacks(function () use ($handler) {
Expand Down
3 changes: 0 additions & 3 deletions src/Clients/FeiShuClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ public function setSecret(string $secret): self
return $this;
}

/**
* {@inheritDoc}
*/
public function getRequestParams(): array
{
$requestParams = parent::getRequestParams();
Expand Down
6 changes: 0 additions & 6 deletions src/Clients/IGotClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,8 @@ class IGotClient extends Client
*/
public const REQUEST_URL_TEMPLATE = 'https://push.hellyw.com/%s';

/**
* {@inheritdoc}
*/
protected $requestMethod = 'postJson';

/**
* {@inheritdoc}
*/
public function getRequestUrl(): string
{
return sprintf(self::REQUEST_URL_TEMPLATE, $this->getToken());
Expand Down
3 changes: 0 additions & 3 deletions src/Clients/NowPushClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ public function getRequestUrl(): string
return sprintf(self::REQUEST_URL_TEMPLATE, 'sendMessage');
}

/**
* @return mixed
*/
public function getUser()
{
return $this->wrapSendCallbacksWithRequestAsync(function () {
Expand Down
6 changes: 0 additions & 6 deletions src/Clients/PushBackClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ class PushBackClient extends Client
'synchronous_mode' => 'bool',
];

/**
* {@inheritdoc}
*/
public function __construct(array $options = [])
{
$this->sending(function (self $client): void {
Expand All @@ -73,9 +70,6 @@ public function __construct(array $options = [])
parent::__construct($options);
}

/**
* {@inheritdoc}
*/
public function getRequestUrl(): string
{
return sprintf(self::REQUEST_URL_TEMPLATE, $this->isSynchronousMode() ? 'send_sync' : 'send');
Expand Down
3 changes: 0 additions & 3 deletions src/Clients/PushPlusClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ class PushPlusClient extends Client
*/
public const REQUEST_URL_TEMPLATE = 'https://pushplus.hxtrip.com/send?token=%s';

/**
* {@inheritdoc}
*/
public function getRequestUrl(): string
{
return sprintf(self::REQUEST_URL_TEMPLATE, $this->getToken());
Expand Down
6 changes: 0 additions & 6 deletions src/Clients/PushoverClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,11 @@ public function getUserToken(): string
return $this->getOption('user_token');
}

/**
* {@inheritDoc}
*/
public function getRequestUrl(): string
{
return static::REQUEST_URL_TEMPLATE;
}

/**
* {@inheritDoc}
*/
public function getRequestParams(): array
{
return parent::getRequestParams() + [
Expand Down
2 changes: 0 additions & 2 deletions src/Contracts/GatewayInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ public function getName(): string;

/**
* @param \Guanguans\Notify\Contracts\MessageInterface|null $message
*
* @return mixed
*/
public function send(MessageInterface $message = null);
}
3 changes: 0 additions & 3 deletions src/Contracts/MessageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@

interface MessageInterface
{
/**
* @return mixed
*/
public function transformToRequestParams();
}
3 changes: 0 additions & 3 deletions src/Contracts/RequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@ public function getRequestMethod(): string;

public function getRequestUrl(): string;

/**
* @return mixed
*/
public function getRequestParams();
}
3 changes: 0 additions & 3 deletions src/Messages/Chanify/TextMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ class TextMessage extends Message
'priority' => 10,
];

/**
* {@inheritDoc}
*/
protected function configureOptionsResolver(OptionsResolver $optionsResolver): OptionsResolver
{
return tap(parent::configureOptionsResolver($optionsResolver), static function (OptionsResolver $optionsResolver): void {
Expand Down
3 changes: 0 additions & 3 deletions src/Messages/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ public function __construct(array $options = [])
$this->setOptions($options);
}

/**
* {@inheritDoc}
*/
public function transformToRequestParams()
{
return $this->getOptions();
Expand Down
3 changes: 0 additions & 3 deletions src/Messages/NowPush/ImageMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ class ImageMessage extends Message
'message_type' => 'nowpush_img',
];

/**
* {@inheritdoc}
*/
public function __construct(string $url, string $deviceType = 'api')
{
parent::__construct([
Expand Down
3 changes: 0 additions & 3 deletions src/Messages/NowPush/LinkMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ class LinkMessage extends Message
'message_type' => 'nowpush_link',
];

/**
* {@inheritdoc}
*/
public function __construct(string $url, string $deviceType = 'api')
{
parent::__construct([
Expand Down
3 changes: 0 additions & 3 deletions src/Messages/NowPush/NoteMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ class NoteMessage extends Message
'message_type' => 'nowpush_note',
];

/**
* {@inheritdoc}
*/
public function __construct(string $note, string $deviceType = 'api')
{
parent::__construct([
Expand Down
6 changes: 0 additions & 6 deletions src/Proxy/HigherOrderTapProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
*/
class HigherOrderTapProxy
{
/**
* @var mixed
*/
public $target;

/**
Expand All @@ -30,9 +27,6 @@ public function __construct($target)
$this->target = $target;
}

/**
* @return mixed
*/
public function __call($method, $parameters)
{
$this->target->{$method}(...$parameters);
Expand Down
3 changes: 0 additions & 3 deletions src/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ function base64_file(string $file): string
/**
* Call the given Closure with the given value then return the value.
*
* @param mixed $value
* @param callable|null $callback
*
* @return mixed
*/
function tap($value, $callback = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HasOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function setOptions(array $options)
*
* @return array|mixed
*/
public function getOption(?string $option = null, $default = null)
public function getOption(string $option = null, $default = null)
{
if (null === $option) {
return $this->options;
Expand Down

0 comments on commit 7f593ae

Please sign in to comment.