Completed
Push — master ( dd7177...241235 )
by Kacper
04:07
created
Component/Roster.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     private function handleSet(Iq\Query\Roster $query)
63 63
     {
64 64
         foreach ($query->items as $item) {
65
-            if($item->subscription == 'remove') {
65
+            if ($item->subscription == 'remove') {
66 66
                 $this->removeItem($item->jid);
67 67
             } else {
68 68
                 $this->setItem($item);
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
         $iq = new Iq('remove', ['query' => new Iq\Query\Roster()]);
153 153
         /** @var Iq\Query\Roster\Item $item */
154
-        foreach($remove as $item) {
154
+        foreach ($remove as $item) {
155 155
             $iq->query->append(new Iq\Query\Roster\Item($item->jid, ['subscription' => 'remove']));
156 156
         }
157 157
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     public function update(Iq\Query\Roster\Item $item)
162 162
     {
163 163
         $iq = new Iq('set', ['query' => new Iq\Query\Roster([
164
-            'items' => [ $item ]
164
+            'items' => [$item]
165 165
         ])]);
166 166
         return $this->_client->send($iq);
167 167
     }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 
242 242
     private function setItem(Iq\Query\Roster\Item $item)
243 243
     {
244
-        $this->emit('item', [ $item ]);
244
+        $this->emit('item', [$item]);
245 245
         $this->_items[(string)$item->jid] = $item;
246 246
     }
247 247
 
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
             return;
255 255
         }
256 256
 
257
-        $this->emit('remove', [ $this->_items[(string)$jid] ]);
257
+        $this->emit('remove', [$this->_items[(string)$jid]]);
258 258
         unset($this->_items[(string)$jid]);
259 259
     }
260 260
 }
Please login to merge, or discard this patch.