Passed
Push — master ( 7494de...312a8a )
by Erjan
03:32
created
src/Message.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,8 +116,9 @@
 block discarded – undo
116 116
      */
117 117
     public function send($content = null)
118 118
     {
119
-        if (! is_null($content))
120
-            $this->setContent($content);
119
+        if (! is_null($content)) {
120
+                    $this->setContent($content);
121
+        }
121 122
 
122 123
         return $this->client->api->sendMessage($this);
123 124
     }
Please login to merge, or discard this patch.
src/EventsHandler.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,13 +26,15 @@
 block discarded – undo
26 26
      */
27 27
     public function run($name, $data)
28 28
     {
29
-        if (! array_key_exists($name, $this->events))
30
-            throw new \BadMethodCallException;
29
+        if (! array_key_exists($name, $this->events)) {
30
+                    throw new \BadMethodCallException;
31
+        }
31 32
 
32
-        if (is_callable($this->events[$name]))
33
-            call_user_func($this->events[$name], $data);
34
-        else
35
-            call_user_func([$this, $this->events[$name]], $data);
33
+        if (is_callable($this->events[$name])) {
34
+                    call_user_func($this->events[$name], $data);
35
+        } else {
36
+                    call_user_func([$this, $this->events[$name]], $data);
37
+        }
36 38
     }
37 39
 
38 40
     /**
Please login to merge, or discard this patch.
src/Api.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -137,12 +137,12 @@
 block discarded – undo
137 137
         }
138 138
         
139 139
         $response = json_decode($this->guzzle->post($this->api_url_files, [
140
-             'multipart' => [
141
-                 [
140
+                'multipart' => [
141
+                    [
142 142
                     'name' => 'file',
143 143
                     'contents' => fopen($filename, 'r')
144
-                 ]
145
-             ]
144
+                    ]
145
+                ]
146 146
         ])->getBody());
147 147
 
148 148
         if ((isset($response->success)) && ($response->success)) {
Please login to merge, or discard this patch.