Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Applied fixes from StyleCI #3

Merged
merged 1 commit into from
Aug 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/TodoistChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
namespace NotificationChannels\Todoist;

use GuzzleHttp\Client;
use Illuminate\Support\Arr;
use NotificationChannels\Todoist\Exceptions\CouldNotSendNotification;
use NotificationChannels\Todoist\Events\MessageWasSent;
use NotificationChannels\Todoist\Events\SendingMessage;
use Illuminate\Notifications\Notification;
use NotificationChannels\Todoist\Exceptions\InvalidConfiguration;

class TodoistChannel
{
Expand Down Expand Up @@ -44,8 +40,8 @@ public function send($notifiable, Notification $notification)
$response = $this->client->post(self::API_ENDPOINT, [
'form_params' => [
'commands' => json_encode([$command]),
'token' => $token
]
'token' => $token,
],
]);

if ($response->getStatusCode() !== 200) {
Expand Down
4 changes: 2 additions & 2 deletions src/TodoistMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TodoistMessage
/** @var int */
protected $itemOrder;

/** @var boolean */
/** @var bool */
protected $collapsed;

/** @var string|null */
Expand Down Expand Up @@ -176,7 +176,7 @@ public function toArray()
'priority' => $this->priority,
'indent' => $this->indent,
'collapsed' => $this->collapsed,
]
],
];
}
}
2 changes: 0 additions & 2 deletions tests/ChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

namespace NotificationChannels\Todoist\Test;

use Illuminate\Support\Arr;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Response;
use Illuminate\Notifications\Notification;
use Mockery;
use NotificationChannels\Todoist\Exceptions\CouldNotSendNotification;
use NotificationChannels\Todoist\Exceptions\InvalidConfiguration;
use NotificationChannels\Todoist\TodoistChannel;
use NotificationChannels\Todoist\TodoistMessage;
use Orchestra\Testbench\TestCase;
Expand Down