Completed
Pull Request — master (#555)
by
unknown
34s
created
src/migrations/2015_03_07_311093_create_tracker_tables_relations.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function migrateUp()
13 13
     {
14
-        $this->builder->table('tracker_query_arguments', function ($table) {
14
+        $this->builder->table('tracker_query_arguments', function($table) {
15 15
             $table->foreign('query_id')
16 16
                 ->references('id')
17 17
                 ->on('tracker_queries')
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
                 ->onDelete('cascade');
20 20
         });
21 21
 
22
-        $this->builder->table('tracker_route_paths', function ($table) {
22
+        $this->builder->table('tracker_route_paths', function($table) {
23 23
             $table->foreign('route_id')
24 24
                 ->references('id')
25 25
                 ->on('tracker_routes')
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
                 ->onDelete('cascade');
28 28
         });
29 29
 
30
-        $this->builder->table('tracker_route_path_parameters', function ($table) {
30
+        $this->builder->table('tracker_route_path_parameters', function($table) {
31 31
             $table->foreign('route_path_id')
32 32
                 ->references('id')
33 33
                 ->on('tracker_route_paths')
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                 ->onDelete('cascade');
36 36
         });
37 37
 
38
-        $this->builder->table('tracker_referers', function ($table) {
38
+        $this->builder->table('tracker_referers', function($table) {
39 39
             $table->foreign('domain_id')
40 40
                 ->references('id')
41 41
                 ->on('tracker_domains')
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                 ->onDelete('cascade');
44 44
         });
45 45
 
46
-        $this->builder->table('tracker_sessions', function ($table) {
46
+        $this->builder->table('tracker_sessions', function($table) {
47 47
             $table->foreign('device_id')
48 48
                 ->references('id')
49 49
                 ->on('tracker_devices')
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 ->onDelete('cascade');
52 52
         });
53 53
 
54
-        $this->builder->table('tracker_sessions', function ($table) {
54
+        $this->builder->table('tracker_sessions', function($table) {
55 55
             $table->foreign('agent_id')
56 56
                 ->references('id')
57 57
                 ->on('tracker_agents')
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                 ->onDelete('cascade');
60 60
         });
61 61
 
62
-        $this->builder->table('tracker_sessions', function ($table) {
62
+        $this->builder->table('tracker_sessions', function($table) {
63 63
             $table->foreign('referer_id')
64 64
                 ->references('id')
65 65
                 ->on('tracker_referers')
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 ->onDelete('cascade');
68 68
         });
69 69
 
70
-        $this->builder->table('tracker_sessions', function ($table) {
70
+        $this->builder->table('tracker_sessions', function($table) {
71 71
             $table->foreign('cookie_id')
72 72
                 ->references('id')
73 73
                 ->on('tracker_cookies')
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                 ->onDelete('cascade');
76 76
         });
77 77
 
78
-        $this->builder->table('tracker_sessions', function ($table) {
78
+        $this->builder->table('tracker_sessions', function($table) {
79 79
             $table->foreign('geoip_id')
80 80
                 ->references('id')
81 81
                 ->on('tracker_geoip')
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 ->onDelete('cascade');
84 84
         });
85 85
 
86
-        $this->builder->table('tracker_log', function ($table) {
86
+        $this->builder->table('tracker_log', function($table) {
87 87
             $table->foreign('session_id')
88 88
                 ->references('id')
89 89
                 ->on('tracker_sessions')
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 ->onDelete('cascade');
92 92
         });
93 93
 
94
-        $this->builder->table('tracker_log', function ($table) {
94
+        $this->builder->table('tracker_log', function($table) {
95 95
             $table->foreign('path_id')
96 96
                 ->references('id')
97 97
                 ->on('tracker_paths')
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 ->onDelete('cascade');
100 100
         });
101 101
 
102
-        $this->builder->table('tracker_log', function ($table) {
102
+        $this->builder->table('tracker_log', function($table) {
103 103
             $table->foreign('query_id')
104 104
                 ->references('id')
105 105
                 ->on('tracker_queries')
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                 ->onDelete('cascade');
108 108
         });
109 109
 
110
-        $this->builder->table('tracker_log', function ($table) {
110
+        $this->builder->table('tracker_log', function($table) {
111 111
             $table->foreign('route_path_id')
112 112
                 ->references('id')
113 113
                 ->on('tracker_route_paths')
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                 ->onDelete('cascade');
116 116
         });
117 117
 
118
-        $this->builder->table('tracker_log', function ($table) {
118
+        $this->builder->table('tracker_log', function($table) {
119 119
             $table->foreign('error_id')
120 120
                 ->references('id')
121 121
                 ->on('tracker_errors')
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                 ->onDelete('cascade');
124 124
         });
125 125
 
126
-        $this->builder->table('tracker_events_log', function ($table) {
126
+        $this->builder->table('tracker_events_log', function($table) {
127 127
             $table->foreign('event_id')
128 128
                 ->references('id')
129 129
                 ->on('tracker_events')
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                 ->onDelete('cascade');
132 132
         });
133 133
 
134
-        $this->builder->table('tracker_events_log', function ($table) {
134
+        $this->builder->table('tracker_events_log', function($table) {
135 135
             $table->foreign('class_id')
136 136
                 ->references('id')
137 137
                 ->on('tracker_system_classes')
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
                 ->onDelete('cascade');
140 140
         });
141 141
 
142
-        $this->builder->table('tracker_events_log', function ($table) {
142
+        $this->builder->table('tracker_events_log', function($table) {
143 143
             $table->foreign('log_id')
144 144
                 ->references('id')
145 145
                 ->on('tracker_log')
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                 ->onDelete('cascade');
148 148
         });
149 149
 
150
-        $this->builder->table('tracker_sql_query_bindings_parameters', function ($table) {
150
+        $this->builder->table('tracker_sql_query_bindings_parameters', function($table) {
151 151
             $table->foreign('sql_query_bindings_id', 'tracker_sqlqb_parameters')
152 152
                 ->references('id')
153 153
                 ->on('tracker_sql_query_bindings')
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                 ->onDelete('cascade');
156 156
         });
157 157
 
158
-        $this->builder->table('tracker_sql_queries_log', function ($table) {
158
+        $this->builder->table('tracker_sql_queries_log', function($table) {
159 159
             $table->foreign('log_id')
160 160
                 ->references('id')
161 161
                 ->on('tracker_log')
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
                 ->onDelete('cascade');
164 164
         });
165 165
 
166
-        $this->builder->table('tracker_sql_queries_log', function ($table) {
166
+        $this->builder->table('tracker_sql_queries_log', function($table) {
167 167
             $table->foreign('sql_query_id')
168 168
                 ->references('id')
169 169
                 ->on('tracker_sql_queries')
Please login to merge, or discard this patch.
src/migrations/2017_06_20_311102_add_agent_name_hash.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,14 +22,14 @@  discard block
 block discarded – undo
22 22
         try {
23 23
             $this->builder->table(
24 24
                 $this->table,
25
-                function ($table) {
25
+                function($table) {
26 26
                     $table->dropUnique('tracker_agents_name_unique');
27 27
 
28 28
                     $table->string('name_hash', 65)->nullable();
29 29
                 }
30 30
             );
31 31
 
32
-            Agent::all()->each(function ($agent) {
32
+            Agent::all()->each(function($agent) {
33 33
                 $agent->name_hash = hash('sha256', $agent->name);
34 34
 
35 35
                 $agent->save();
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
             $this->builder->table(
39 39
                 $this->table,
40
-                function ($table) {
40
+                function($table) {
41 41
                     $table->unique('name_hash');
42 42
                 }
43 43
             );
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         try {
57 57
             $this->builder->table(
58 58
                 $this->table,
59
-                function ($table) {
59
+                function($table) {
60 60
                     $table->dropUnique('tracker_agents_name_hash_unique');
61 61
 
62 62
                     $table->dropColumn('name_hash');
Please login to merge, or discard this patch.
src/migrations/2017_01_31_311101_fix_agent_name.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,21 +21,21 @@  discard block
 block discarded – undo
21 21
         try {
22 22
             $this->builder->table(
23 23
                 $this->table,
24
-                function ($table) {
24
+                function($table) {
25 25
                     $table->dropUnique('tracker_agents_name_unique');
26 26
                 }
27 27
             );
28 28
 
29 29
             $this->builder->table(
30 30
                 $this->table,
31
-                function ($table) {
31
+                function($table) {
32 32
                     $table->mediumText('name')->change();
33 33
                 }
34 34
             );
35 35
 
36 36
             $this->builder->table(
37 37
                 $this->table,
38
-                function ($table) {
38
+                function($table) {
39 39
                     $table->unique('id', 'tracker_agents_name_unique'); // this is a dummy index
40 40
                 }
41 41
             );
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         try {
55 55
             $this->builder->table(
56 56
                 $this->table,
57
-                function ($table) {
57
+                function($table) {
58 58
                     $table->string('name', 255)->change();
59 59
                     $table->unique('name');
60 60
                 }
Please login to merge, or discard this patch.
src/Repositories/Message.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@
 block discarded – undo
28 28
      */
29 29
     public function addMessage($message)
30 30
     {
31
-        collect((array) $message)->each(function ($item) {
32
-            collect($item)->flatten()->each(function ($flattened) {
31
+        collect((array) $message)->each(function($item) {
32
+            collect($item)->flatten()->each(function($flattened) {
33 33
                 $this->messageList->push($flattened);
34 34
             });
35 35
         });
Please login to merge, or discard this patch.
src/migrations/2017_12_13_150000_fix_query_arguments.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         try {
22 22
             $this->builder->table(
23 23
                 $this->table,
24
-                function ($table) {
24
+                function($table) {
25 25
                     $table->string('value')->nullable()->change();
26 26
                 }
27 27
             );
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         try {
41 41
             $this->builder->table(
42 42
                 $this->table,
43
-                function ($table) {
43
+                function($table) {
44 44
                     $table->string('value')->change();
45 45
                 }
46 46
             );
Please login to merge, or discard this patch.
src/Vendor/Laravel/Controllers/Stats.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         ]);
122 122
 
123 123
         return Datatables::of($query)
124
-            ->edit_column('route_name', function ($row) {
124
+            ->edit_column('route_name', function($row) {
125 125
                 $path = $row->routePath;
126 126
 
127 127
                 return    $row->routePath
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                             : ($row->path ? $row->path->path : '');
130 130
             })
131 131
 
132
-            ->edit_column('route', function ($row) {
132
+            ->edit_column('route', function($row) {
133 133
                 $route = null;
134 134
 
135 135
                 if ($row->routePath) {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                 return $route;
142 142
             })
143 143
 
144
-            ->edit_column('query', function ($row) {
144
+            ->edit_column('query', function($row) {
145 145
                 $query = null;
146 146
 
147 147
                 if ($row->logQuery) {
@@ -153,23 +153,23 @@  discard block
 block discarded – undo
153 153
                 return $query;
154 154
             })
155 155
 
156
-            ->edit_column('is_ajax', function ($row) {
156
+            ->edit_column('is_ajax', function($row) {
157 157
                 return    $row->is_ajax ? 'yes' : 'no';
158 158
             })
159 159
 
160
-            ->edit_column('is_secure', function ($row) {
160
+            ->edit_column('is_secure', function($row) {
161 161
                 return    $row->is_secure ? 'yes' : 'no';
162 162
             })
163 163
 
164
-            ->edit_column('is_json', function ($row) {
164
+            ->edit_column('is_json', function($row) {
165 165
                 return    $row->is_json ? 'yes' : 'no';
166 166
             })
167 167
 
168
-            ->edit_column('wants_json', function ($row) {
168
+            ->edit_column('wants_json', function($row) {
169 169
                 return    $row->wants_json ? 'yes' : 'no';
170 170
             })
171 171
 
172
-            ->edit_column('error', function ($row) {
172
+            ->edit_column('error', function($row) {
173 173
                 return    $row->error ? 'yes' : 'no';
174 174
             })
175 175
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         ]);
212 212
 
213 213
         return Datatables::of($query)
214
-                ->edit_column('updated_at', function ($row) {
214
+                ->edit_column('updated_at', function($row) {
215 215
                     return "{$row->updated_at->diffForHumans()}";
216 216
                 })
217 217
                 ->make(true);
@@ -229,10 +229,10 @@  discard block
 block discarded – undo
229 229
         $username_column = Tracker::getConfig('authenticated_user_username_column');
230 230
 
231 231
         return Datatables::of(Tracker::users($session->getMinutes(), false))
232
-                ->edit_column('user_id', function ($row) use ($username_column) {
232
+                ->edit_column('user_id', function($row) use ($username_column) {
233 233
                     return "{$row->user->$username_column}";
234 234
                 })
235
-                ->edit_column('updated_at', function ($row) {
235
+                ->edit_column('updated_at', function($row) {
236 236
                     return "{$row->updated_at->diffForHumans()}";
237 237
                 })
238 238
                 ->make(true);
@@ -260,13 +260,13 @@  discard block
 block discarded – undo
260 260
         ]);
261 261
 
262 262
         return Datatables::of($query)
263
-                ->edit_column('id', function ($row) {
263
+                ->edit_column('id', function($row) {
264 264
                     $uri = route('tracker.stats.log', $row->uuid);
265 265
 
266 266
                     return '<a href="'.$uri.'">'.$row->id.'</a>';
267 267
                 })
268 268
 
269
-                ->add_column('country', function ($row) {
269
+                ->add_column('country', function($row) {
270 270
                     $cityName = $row->geoip && $row->geoip->city ? ' - '.$row->geoip->city : '';
271 271
 
272 272
                     $countryName = ($row->geoip ? $row->geoip->country_name : '').$cityName;
@@ -280,11 +280,11 @@  discard block
 block discarded – undo
280 280
                     return "$flag $countryName";
281 281
                 })
282 282
 
283
-                ->add_column('user', function ($row) use ($username_column) {
283
+                ->add_column('user', function($row) use ($username_column) {
284 284
                     return $row->user ? $row->user->$username_column : 'guest';
285 285
                 })
286 286
 
287
-                ->add_column('device', function ($row) {
287
+                ->add_column('device', function($row) {
288 288
                     $model = ($row->device && $row->device->model && $row->device->model !== 'unavailable' ? '['.$row->device->model.']' : '');
289 289
 
290 290
                     $platform = ($row->device && $row->device->platform ? ' ['.trim($row->device->platform.' '.$row->device->platform_version).']' : '');
@@ -296,27 +296,27 @@  discard block
 block discarded – undo
296 296
                             : '';
297 297
                 })
298 298
 
299
-                ->add_column('browser', function ($row) {
299
+                ->add_column('browser', function($row) {
300 300
                     return $row->agent && $row->agent
301 301
                             ? $row->agent->browser.' ('.$row->agent->browser_version.')'
302 302
                             : '';
303 303
                 })
304 304
 
305
-                ->add_column('language', function ($row) {
305
+                ->add_column('language', function($row) {
306 306
                     return $row->language && $row->language
307 307
                         ? $row->language->preference
308 308
                         : '';
309 309
                 })
310 310
 
311
-                ->add_column('referer', function ($row) {
311
+                ->add_column('referer', function($row) {
312 312
                     return $row->referer ? $row->referer->domain->name : '';
313 313
                 })
314 314
 
315
-                ->add_column('pageViews', function ($row) {
315
+                ->add_column('pageViews', function($row) {
316 316
                     return $row->page_views;
317 317
                 })
318 318
 
319
-                ->add_column('lastActivity', function ($row) {
319
+                ->add_column('lastActivity', function($row) {
320 320
                     return $row->updated_at->diffForHumans();
321 321
                 })
322 322
 
Please login to merge, or discard this patch.
src/Tracker.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     protected function logUntrackable($item)
213 213
     {
214 214
         if ($this->config->get('log_untrackable_sessions') && !isset($this->loggedItems[$item])) {
215
-            $this->getLogger()->warning('TRACKER (unable to track item): ' . $item);
215
+            $this->getLogger()->warning('TRACKER (unable to track item): '.$item);
216 216
 
217 217
             $this->loggedItems[$item] = $item;
218 218
         }
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         ];
244 244
 
245 245
         $authSessionPrefix = $this->config->get('auth_session_prefix');
246
-        $authSessions      = collect(session()->all())->filter(function ($val, $key) use ($authSessionPrefix) {
246
+        $authSessions      = collect(session()->all())->filter(function($val, $key) use ($authSessionPrefix) {
247 247
             return strpos($key, $authSessionPrefix) !== false;
248 248
         });
249 249
 
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
         );
327 327
 
328 328
         if (!$trackable) {
329
-            $this->logUntrackable('environment ' . $this->laravel->environment() . ' is not trackable.');
329
+            $this->logUntrackable('environment '.$this->laravel->environment().' is not trackable.');
330 330
         }
331 331
 
332 332
         return $trackable;
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
         );
341 341
 
342 342
         if (!$trackable) {
343
-            $this->logUntrackable($ipAddress . ' is not trackable.');
343
+            $this->logUntrackable($ipAddress.' is not trackable.');
344 344
         }
345 345
 
346 346
         return $trackable;
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
         }
452 452
 
453 453
         if (!$trackable = $this->dataRepositoryManager->routeIsTrackable($this->route)) {
454
-            $this->logUntrackable('route ' . $this->route->getCurrentRoute()->getName() . ' is not trackable.');
454
+            $this->logUntrackable('route '.$this->route->getCurrentRoute()->getName().' is not trackable.');
455 455
         }
456 456
 
457 457
         return $trackable;
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
     public function pathIsTrackable()
461 461
     {
462 462
         if (!$trackable = $this->dataRepositoryManager->pathIsTrackable($this->request->path())) {
463
-            $this->logUntrackable('path ' . $this->request->path() . ' is not trackable.');
463
+            $this->logUntrackable('path '.$this->request->path().' is not trackable.');
464 464
         }
465 465
 
466 466
         return $trackable;
Please login to merge, or discard this patch.
src/Vendor/Laravel/ServiceProvider.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     protected function registerTracker()
155 155
     {
156
-        $this->app->singleton('tracker', function ($app) {
156
+        $this->app->singleton('tracker', function($app) {
157 157
             $app['tracker.loaded'] = true;
158 158
 
159 159
             return new Tracker(
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
     public function registerRepositories()
172 172
     {
173
-        $this->app->singleton('tracker.repositories', function ($app) {
173
+        $this->app->singleton('tracker.repositories', function($app) {
174 174
             try {
175 175
                 $uaParser = new UserAgentParser($app->make('path.base'));
176 176
             } catch (\Exception $exception) {
@@ -327,14 +327,14 @@  discard block
 block discarded – undo
327 327
 
328 328
     public function registerAuthentication()
329 329
     {
330
-        $this->app->singleton('tracker.authentication', function ($app) {
330
+        $this->app->singleton('tracker.authentication', function($app) {
331 331
             return new Authentication($app['tracker.config'], $app);
332 332
         });
333 333
     }
334 334
 
335 335
     public function registerCache()
336 336
     {
337
-        $this->app->singleton('tracker.cache', function ($app) {
337
+        $this->app->singleton('tracker.cache', function($app) {
338 338
             return new Cache($app['tracker.config'], $app);
339 339
         });
340 340
     }
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
     protected function registerTablesCommand()
343 343
     {
344 344
         if ($this->app->runningInConsole()) {
345
-            $this->app->singleton('tracker.tables.command', function ($app) {
345
+            $this->app->singleton('tracker.tables.command', function($app) {
346 346
                 return new TablesCommand();
347 347
             });
348 348
 
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
             'Illuminate\Routing\Events\RouteMatched',
360 360
         ];
361 361
 
362
-        $this->app['events']->listen($mathingEvents, function () use ($me) {
362
+        $this->app['events']->listen($mathingEvents, function() use ($me) {
363 363
             $me->getTracker()->routerMatched($me->getConfig('log_routes'));
364 364
         });
365 365
     }
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
         $me = $this;
411 411
 
412 412
         if (!class_exists('Illuminate\Database\Events\QueryExecuted')) {
413
-            $this->app['events']->listen('illuminate.query', function (
413
+            $this->app['events']->listen('illuminate.query', function(
414 414
                 $query,
415 415
                 $bindings,
416 416
                 $time,
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
                 $me->logSqlQuery($query, $bindings, $time, $name);
420 420
             });
421 421
         } else {
422
-            $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function ($query) use ($me) {
422
+            $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function($query) use ($me) {
423 423
                 $me->logSqlQuery($query);
424 424
             });
425 425
         }
@@ -450,11 +450,11 @@  discard block
 block discarded – undo
450 450
     {
451 451
         $me = $this;
452 452
 
453
-        $this->app->singleton('tracker.events', function ($app) {
453
+        $this->app->singleton('tracker.events', function($app) {
454 454
             return new EventStorage();
455 455
         });
456 456
 
457
-        $this->app['events']->listen('*', function ($object = null) use ($me) {
457
+        $this->app['events']->listen('*', function($object = null) use ($me) {
458 458
             if ($me->app['tracker.events']->isOff() || !$me->isFullyBooted()) {
459 459
                 return;
460 460
             }
@@ -506,9 +506,9 @@  discard block
 block discarded – undo
506 506
 
507 507
         $router = $this->app->make('router');
508 508
 
509
-        $router->group(['namespace' => $namespace], function () use ($prefix, $router, $filters) {
510
-            $router->group($filters, function () use ($prefix, $router) {
511
-                $router->group(['prefix' => $prefix], function ($router) {
509
+        $router->group(['namespace' => $namespace], function() use ($prefix, $router, $filters) {
510
+            $router->group($filters, function() use ($prefix, $router) {
511
+                $router->group(['prefix' => $prefix], function($router) {
512 512
                     $router->get('/', ['as' => 'tracker.stats.index', 'uses' => 'Stats@index']);
513 513
 
514 514
                     $router->get('log/{uuid}', ['as' => 'tracker.stats.log', 'uses' => 'Stats@log']);
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
      */
546 546
     public function getPackageDir()
547 547
     {
548
-        return __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..';
548
+        return __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..';
549 549
     }
550 550
 
551 551
     /**
@@ -563,10 +563,10 @@  discard block
 block discarded – undo
563 563
     {
564 564
         $me = $this;
565 565
 
566
-        $this->app->make('view')->composer('pragmarx/tracker::*', function ($view) use ($me) {
566
+        $this->app->make('view')->composer('pragmarx/tracker::*', function($view) use ($me) {
567 567
             $view->with('stats_layout', $me->getConfig('stats_layout'));
568 568
 
569
-            $template_path = url('/') . $me->getConfig('stats_template_path');
569
+            $template_path = url('/').$me->getConfig('stats_template_path');
570 570
 
571 571
             $view->with('stats_template_path', $template_path);
572 572
         });
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
     protected function registerUpdateGeoIpCommand()
576 576
     {
577 577
         if ($this->app->runningInConsole()) {
578
-            $this->app->singleton('tracker.updategeoip.command', function ($app) {
578
+            $this->app->singleton('tracker.updategeoip.command', function($app) {
579 579
                 return new UpdateGeoIp();
580 580
             });
581 581
 
@@ -587,13 +587,13 @@  discard block
 block discarded – undo
587 587
     {
588 588
         $me = $this;
589 589
 
590
-        $this->app['events']->listen('router.before', function ($object = null) use ($me) {
590
+        $this->app['events']->listen('router.before', function($object = null) use ($me) {
591 591
 
592 592
             // get auth bindings to check
593 593
             $bindings = $me->getConfig('authentication_ioc_binding');
594 594
 
595 595
             // check if all bindings are resolved
596
-            $checked_bindings = array_map(function ($abstract) use ($me) {
596
+            $checked_bindings = array_map(function($abstract) use ($me) {
597 597
                 return $me->app->resolved($abstract);
598 598
             }, $bindings);
599 599
 
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
 
625 625
     public function getRootDirectory()
626 626
     {
627
-        return __DIR__ . '/../..';
627
+        return __DIR__.'/../..';
628 628
     }
629 629
 
630 630
     protected function getAppUrl()
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
 
635 635
     public function loadTranslations()
636 636
     {
637
-        $this->loadTranslationsFrom(__DIR__ . '/../../lang', 'tracker');
637
+        $this->loadTranslationsFrom(__DIR__.'/../../lang', 'tracker');
638 638
     }
639 639
 
640 640
     /**
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
      */
643 643
     protected function registerMessageRepository()
644 644
     {
645
-        $this->app->singleton('tracker.messages', function () {
645
+        $this->app->singleton('tracker.messages', function() {
646 646
             return new MessageRepository();
647 647
         });
648 648
     }
Please login to merge, or discard this patch.
src/Support/UserAgentParser.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function getOperatingSystemVersion(): string
41 41
     {
42
-        return $this->operatingSystem->major .
43
-            ($this->operatingSystem->minor !== null ? '.' . $this->operatingSystem->minor : '') .
44
-            ($this->operatingSystem->patch !== null ? '.' . $this->operatingSystem->patch : '');
42
+        return $this->operatingSystem->major.
43
+            ($this->operatingSystem->minor !== null ? '.'.$this->operatingSystem->minor : '').
44
+            ($this->operatingSystem->patch !== null ? '.'.$this->operatingSystem->patch : '');
45 45
     }
46 46
 
47 47
     protected function getUserAgent(string $userAgent)
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function getUserAgentVersion(): string
61 61
     {
62
-        return $this->userAgent->major .
63
-            ($this->userAgent->minor !== null ? '.' . $this->userAgent->minor : '') .
64
-            ($this->userAgent->patch !== null ? '.' . $this->userAgent->patch : '');
62
+        return $this->userAgent->major.
63
+            ($this->userAgent->minor !== null ? '.'.$this->userAgent->minor : '').
64
+            ($this->userAgent->patch !== null ? '.'.$this->userAgent->patch : '');
65 65
     }
66 66
 }
Please login to merge, or discard this patch.