Completed
Push — master ( cffbd5...8909c5 )
by Kirill
03:12
created
app/Domains/Bot/Middlewares/LaravelDocumentationSearcherMiddleware.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,26 +39,26 @@
 block discarded – undo
39 39
 
40 40
             $hits = new Collection($result['hits']);
41 41
 
42
-            $hits->unique(function ($row) {
42
+            $hits->unique(function($row) {
43 43
                 return $row['h1'];
44
-            })->map(function ($row) {
45
-                $row['link'] = 'https://laravel.com/docs/5.2/' . $row['link'];
44
+            })->map(function($row) {
45
+                $row['link'] = 'https://laravel.com/docs/5.2/'.$row['link'];
46 46
 
47 47
                 return $row;
48
-            })->take(3)->each(function ($row) use (&$response) {
48
+            })->take(3)->each(function($row) use (&$response) {
49 49
                 $title = '';
50 50
                 foreach (['h1', 'h2', 'h3', 'h4', 'h5'] as $tag) {
51 51
                     if (isset($row[$tag])) {
52
-                        $title .= ' ' . $row[$tag];
52
+                        $title .= ' '.$row[$tag];
53 53
                     }
54 54
                 }
55 55
 
56
-                $response .= "[*] [i][url={$row['link']}]{$title}[/url][/i]" . PHP_EOL;
56
+                $response .= "[*] [i][url={$row['link']}]{$title}[/url][/i]".PHP_EOL;
57 57
             });
58 58
 
59 59
             if (!empty($response)) {
60 60
                 $message->answer(trans('search.results', [
61
-                    'results' => ' [list]' . PHP_EOL . $response . PHP_EOL . '[/list]',
61
+                    'results' => ' [list]'.PHP_EOL.$response.PHP_EOL.'[/list]',
62 62
                 ]));
63 63
             }
64 64
 
Please login to merge, or discard this patch.
app/Domains/Bot/Middlewares/NewGoogleSearchMiddleware.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,14 +58,14 @@
 block discarded – undo
58 58
                     trans('google.personal', [
59 59
                         'user' => $mention->login,
60 60
                         'query' => urlencode($query),
61
-                    ]) .
62
-                    PHP_EOL . $search
61
+                    ]).
62
+                    PHP_EOL.$search
63 63
                 );
64 64
             }
65 65
 
66 66
             return $message->answer(
67
-                trans('google.common', ['query' => urlencode($query)]) .
68
-                    PHP_EOL . $search
67
+                trans('google.common', ['query' => urlencode($query)]).
68
+                    PHP_EOL.$search
69 69
             );
70 70
         }
71 71
 
Please login to merge, or discard this patch.