Skip to content

Commit 4a111aa

Browse files
committed
fix styling
1 parent 2360c12 commit 4a111aa

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Telegram.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ class Telegram
4646
/**
4747
* Create a new Telegram instance.
4848
*
49-
* @param string $token
50-
* @param mixed $chat
51-
* @param string $message
52-
* @param array $options
49+
* @param string $token
50+
* @param mixed $chat
51+
* @param string $message
52+
* @param array $options
5353
* @return void
5454
*/
5555
public function __construct($token, $chat, $message = null, $options = [])
@@ -63,10 +63,10 @@ public function __construct($token, $chat, $message = null, $options = [])
6363
/**
6464
* Create a new Telegram message instance.
6565
*
66-
* @param string $token
67-
* @param string $chat
68-
* @param string $message
69-
* @param array $options
66+
* @param string $token
67+
* @param string $chat
68+
* @param string $message
69+
* @param array $options
7070
* @return \Laravel\Envoy\Telegram
7171
*/
7272
public static function make($token, $chat, $message = null, $options = [])
@@ -87,7 +87,7 @@ public function send()
8787
}
8888

8989
/**
90-
* Get the endpoint for the Send request
90+
* Get the endpoint for the Send request.
9191
*
9292
* @return mixed
9393
*/
@@ -97,21 +97,21 @@ private function getSendMessageEndpoint()
9797
}
9898

9999
/**
100-
* Build the payload to send to the endpoint
100+
* Build the payload to send to the endpoint.
101101
*
102102
* @return array
103103
*/
104104
private function buildPayload()
105105
{
106-
$message = $this->message ?: ($this->task ? ucwords($this->getSystemUser()) . ' ran the [' . $this->task . '] task.' : ucwords($this->getSystemUser()) . ' ran a task.');
106+
$message = $this->message ?: ($this->task ? ucwords($this->getSystemUser()).' ran the ['.$this->task.'] task.' : ucwords($this->getSystemUser()).' ran a task.');
107107

108108
return array_merge(['text' => $message, 'chat_id' => $this->chat], $this->options);
109109
}
110110

111111
/**
112112
* Set the task for the message.
113113
*
114-
* @param string $task
114+
* @param string $task
115115
* @return $this
116116
*/
117117
public function task($task)

0 commit comments

Comments
 (0)