Completed
Pull Request — master (#80)
by butschster
03:06
created
app/Domains/Bot/Achievements/Thanks50Achieve.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function handle()
41 41
     {
42
-        Karma::created(function (Karma $karma) {
42
+        Karma::created(function(Karma $karma) {
43 43
 
44 44
             $count = $karma->target->karma->count();
45 45
 
Please login to merge, or discard this patch.
app/Domains/Bot/Achievements/Thanks100Achieve.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function handle()
41 41
     {
42
-        Karma::created(function (Karma $karma) {
42
+        Karma::created(function(Karma $karma) {
43 43
 
44 44
             $count = $karma->target->karma->count();
45 45
 
Please login to merge, or discard this patch.
app/Interfaces/Console/Commands/StartGitterBot.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      */
85 85
     protected function makePidFile()
86 86
     {
87
-        $this->pid = storage_path('pids/' . date('Y_m_d_tis_') . microtime(1) . '.pid');
87
+        $this->pid = storage_path('pids/'.date('Y_m_d_tis_').microtime(1).'.pid');
88 88
         file_put_contents($this->pid, getmypid());
89 89
     }
90 90
 
Please login to merge, or discard this patch.
app/Interfaces/Gitter/Ai/UserChannel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             }
51 51
 
52 52
         } else {
53
-            $this->answer($message, $message->text_without_special_chars . '?');
53
+            $this->answer($message, $message->text_without_special_chars.'?');
54 54
         }
55 55
     }
56 56
 
@@ -71,6 +71,6 @@  discard block
 block discarded – undo
71 71
     protected function answer(Message $message, $text)
72 72
     {
73 73
         $this->lastAnswer = $text;
74
-        $message->italic(sprintf('@%s, ' . $text, $this->user->login));
74
+        $message->italic(sprintf('@%s, '.$text, $this->user->login));
75 75
     }
76 76
 }
77 77
\ No newline at end of file
Please login to merge, or discard this patch.
app/Domains/Analyser/UrlFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         // TODO Add support for non-latin domains
93 93
         // Current RFC 1738
94 94
         $pattern = static::getPattern();
95
-        preg_match_all($pattern, $text . ' ', $matches, PREG_PATTERN_ORDER);
95
+        preg_match_all($pattern, $text.' ', $matches, PREG_PATTERN_ORDER);
96 96
 
97 97
         return $matches[1];
98 98
     }
Please login to merge, or discard this patch.
app/Domains/Bot/Middlewares/InlineDataMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
     {
18 18
         $isImage = preg_match(
19 19
             '/[^`]http(?:s)?:\/\/.*?\.(?:jpg|png|jpeg|svg|bmp)/iu'
20
-        , ' ' . $message->text);
20
+        , ' '.$message->text);
21 21
 
22 22
         $isVideo = preg_match(
23 23
             '/[^`]http(?:s)?:\/\/(?:www\.)?(?:youtube\.com|youtu\.be).*?/iu'
24
-        , ' ' . $message->text);
24
+        , ' '.$message->text);
25 25
 
26 26
         if (($isImage || $isVideo) && $message->user->login !== \Auth::user()->login) {
27 27
             $answer = \Lang::get('gitter.inline', [
Please login to merge, or discard this patch.
app/Domains/Bot/Middlewares/SqlBuilderMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
                 return null;
27 27
 
28 28
             } catch (\Exception $e) {
29
-                $message->pre('SQL Builder error: ' . $e->getMessage());
29
+                $message->pre('SQL Builder error: '.$e->getMessage());
30 30
             }
31 31
         }
32 32
 
Please login to merge, or discard this patch.
app/Core/Support/helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
3 3
 if (!function_exists('asset_ts')) {
4 4
     function asset_ts($path, $secure = false)
5 5
     {
6
-        $url = '/' . $path;
6
+        $url = '/'.$path;
7 7
 
8 8
         if (is_file(public_path($path))) {
9 9
             $time = filemtime(public_path($path));
10
-            $url .= '?' . $time;
10
+            $url .= '?'.$time;
11 11
         }
12 12
 
13 13
         return $url;
Please login to merge, or discard this patch.
app/Domains/Bot/Achievements/Karma1000Achieve.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function handle()
41 41
     {
42
-        Karma::created(function (Karma $karma) {
42
+        Karma::created(function(Karma $karma) {
43 43
 
44 44
             $count = $karma->target->karma->count();
45 45
 
Please login to merge, or discard this patch.