Completed
Push — master ( f6cba5...5dbfda )
by Kacper
04:56
created
Xml/XmlElement.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,6 +159,9 @@  discard block
 block discarded – undo
159 159
         return $this->children;
160 160
     }
161 161
 
162
+    /**
163
+     * @param string $value
164
+     */
162 165
     public function setContent($value)
163 166
     {
164 167
         $this->_children = [];
@@ -259,7 +262,7 @@  discard block
 block discarded – undo
259 262
      *
260 263
      * @param string      $attribute Attribute name, optionally with prefix
261 264
      * @param string|null $uri       XML Namespace URI of attribute, prefix will be automatically looked up
262
-     * @return bool|mixed
265
+     * @return string
263 266
      */
264 267
     public function getAttribute(string $attribute, string $uri = null)
265 268
     {
@@ -481,7 +484,7 @@  discard block
 block discarded – undo
481 484
      *
482 485
      * @param callable|string $predicate Predicate or class name
483 486
      *
484
-     * @return XmlElement|false
487
+     * @return XmlElement|null
485 488
      */
486 489
     public function get($predicate)
487 490
     {
Please login to merge, or discard this patch.
Utils/Enum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     public static function available() {
22 22
         static $reflection = null;
23
-        if(!$reflection) {
23
+        if (!$reflection) {
24 24
             $reflection = new \ReflectionClass(static::class);
25 25
         }
26 26
 
Please login to merge, or discard this patch.
XmppClient.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
             } else {
268 268
                 $deferred->resolve($stanza);
269 269
             }
270
-         }, with\stanza\id($stanza->id));
270
+            }, with\stanza\id($stanza->id));
271 271
         $this->write($stanza);
272 272
 
273 273
         return $deferred->promise();
Please login to merge, or discard this patch.
Stanza/Presence.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function setShow(string $show = 'available')
70 70
     {
71
-        if(!Show::valid($show)) {
71
+        if (!Show::valid($show)) {
72 72
             throw new InvalidArgumentException(format('$show must be one of: {possible}. {show} given.', [
73 73
                 'possible' => implode(', ', Show::available()),
74 74
                 'show'     => $show
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         }
77 77
 
78 78
         $predicate = filter\element('show', 'jabber:client');
79
-        if(in_array($show, ['available', 'unavailable'])) {
79
+        if (in_array($show, ['available', 'unavailable'])) {
80 80
             $this->remove($predicate);
81 81
             $this->type = $show;
82 82
             return;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     public function setStatus(string $status = null)
99 99
     {
100 100
         $predicate = filter\element('status', 'jabber:client');
101
-        if($status === null) {
101
+        if ($status === null) {
102 102
             $this->remove($predicate);
103 103
             return;
104 104
         }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     public function setPriority(int $priority = null)
115 115
     {
116 116
         $predicate = filter\element('status', 'jabber:client');
117
-        if(!$priority) {
117
+        if (!$priority) {
118 118
             $this->remove($predicate);
119 119
         }
120 120
 
Please login to merge, or discard this patch.