@@ -20,7 +20,7 @@ |
||
| 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 | |
@@ -68,7 +68,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |