@@ -39,7 +39,7 @@ |
||
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 |
@@ -39,7 +39,7 @@ |
||
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 |
@@ -84,7 +84,7 @@ |
||
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 |
@@ -50,7 +50,7 @@ discard block |
||
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 |
||
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 |
@@ -92,7 +92,7 @@ |
||
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 | } |
@@ -17,11 +17,11 @@ |
||
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', [ |
@@ -26,7 +26,7 @@ |
||
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 |
@@ -3,11 +3,11 @@ |
||
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; |
@@ -39,7 +39,7 @@ |
||
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 |