Completed
Push — master ( fcd09b...a3140b )
by Kacper
08:42
created
Module/Binding.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,18 +31,18 @@  discard block
 block discarded – undo
31 31
     {
32 32
         parent::setClient($client);
33 33
 
34
-        $client->on('features', function (Features $features) {
34
+        $client->on('features', function(Features $features) {
35 35
             return !$this->bind($features);
36 36
         });
37 37
     }
38 38
 
39 39
     public function bind(Features $features)
40 40
     {
41
-        if($features->has(with\element('bind', self::XMLNS))) {
41
+        if ($features->has(with\element('bind', self::XMLNS))) {
42 42
             $stanza = new Stanza('iq', ['attributes' => ['type' => 'set']]);
43 43
             $bind = $stanza->append(new XmlElement('bind', self::XMLNS));
44 44
 
45
-            if(!$this->_client->jid->isBare()) {
45
+            if (!$this->_client->jid->isBare()) {
46 46
                 $bind->append(new XmlElement('resource', null, ['content' => $this->_client->jid->resource]));
47 47
             }
48 48
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function handleResult(Stanza $stanza)
61 61
     {
62
-        if($stanza->type === 'error') {
62
+        if ($stanza->type === 'error') {
63 63
             throw BindingException::fromError($this->_client->jid, $stanza->error);
64 64
         }
65 65
 
Please login to merge, or discard this patch.