Completed
Push — master ( d56647...5f1d83 )
by Kirill
11s
created
app/Domains/RoomManager.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use Domains\Room\RoomInterface;
15 15
 use Illuminate\Support\Collection;
16
-use Interfaces\Gitter\StandartGitterRoom;
17 16
 
18 17
 /**
19 18
  * Class RoomManager
Please login to merge, or discard this patch.
app/Interfaces/Slack/TextParser.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,10 +22,11 @@
 block discarded – undo
22 22
         $this->text = preg_replace_callback('%\[url\s*=\s*("(?:[^"]*")|\A[^\']*\Z|(?:[^\'">\]\s]+))\s*(?:[^]\s]*)\]([\W\D\w\s]*?)\[/url\]%iu',
23 23
 
24 24
             function ($matches) {
25
-                if (isset($matches[1]) && isset($matches[2]))
26
-                    return "<".$matches[1]."|".$matches[2].">";
27
-                else
28
-                    throw new \RuntimeException(sprintf("Text identified by '%d' has malformed BBCode urls", $this->id));
25
+                if (isset($matches[1]) && isset($matches[2])) {
26
+                                    return "<".$matches[1]."|".$matches[2].">";
27
+                } else {
28
+                                    throw new \RuntimeException(sprintf("Text identified by '%d' has malformed BBCode urls", $this->id));
29
+                }
29 30
             },
30 31
 
31 32
             $this->text
Please login to merge, or discard this patch.