@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | private function registerAttackBlocker() |
126 | 126 | { |
127 | - $this->app->singleton('firewall.attackBlocker', function () { |
|
127 | + $this->app->singleton('firewall.attackBlocker', function() { |
|
128 | 128 | return new AttackBlocker(); |
129 | 129 | }); |
130 | 130 | } |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | */ |
135 | 135 | private function registerCountriesRepository() |
136 | 136 | { |
137 | - $this->app->singleton('firewall.countries', function () { |
|
137 | + $this->app->singleton('firewall.countries', function() { |
|
138 | 138 | return new Countries(); |
139 | 139 | }); |
140 | 140 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | */ |
147 | 147 | private function registerBlacklistCommand() |
148 | 148 | { |
149 | - $this->app->singleton('firewall.blacklist.command', function () { |
|
149 | + $this->app->singleton('firewall.blacklist.command', function() { |
|
150 | 150 | return new BlacklistCommand(); |
151 | 151 | }); |
152 | 152 | |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | */ |
161 | 161 | private function registerCache() |
162 | 162 | { |
163 | - $this->app->singleton('firewall.cache', function () { |
|
163 | + $this->app->singleton('firewall.cache', function() { |
|
164 | 164 | return new Cache(app('cache')); |
165 | 165 | }); |
166 | 166 | } |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | */ |
173 | 173 | private function registerClearCommand() |
174 | 174 | { |
175 | - $this->app->singleton('firewall.clear.command', function () { |
|
175 | + $this->app->singleton('firewall.clear.command', function() { |
|
176 | 176 | return new ClearCommand(); |
177 | 177 | }); |
178 | 178 | |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | private function registerFlushCommand() |
188 | 188 | { |
189 | - $this->app->singleton('firewall.flush.command', function () { |
|
189 | + $this->app->singleton('firewall.flush.command', function() { |
|
190 | 190 | return new Flush(); |
191 | 191 | }); |
192 | 192 | |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | */ |
201 | 201 | private function registerDataRepository() |
202 | 202 | { |
203 | - $this->app->singleton('firewall.datarepository', function () { |
|
203 | + $this->app->singleton('firewall.datarepository', function() { |
|
204 | 204 | return new DataRepository(); |
205 | 205 | }); |
206 | 206 | } |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | */ |
221 | 221 | private function registerFileSystem() |
222 | 222 | { |
223 | - $this->app->singleton('firewall.filesystem', function () { |
|
223 | + $this->app->singleton('firewall.filesystem', function() { |
|
224 | 224 | return new Filesystem(); |
225 | 225 | }); |
226 | 226 | } |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | */ |
234 | 234 | private function registerFirewall() |
235 | 235 | { |
236 | - $this->app->singleton('firewall', function ($app) { |
|
236 | + $this->app->singleton('firewall', function($app) { |
|
237 | 237 | $app['firewall.loaded'] = true; |
238 | 238 | |
239 | 239 | $this->firewall = new Firewall( |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | |
253 | 253 | private function registerIpAddress() |
254 | 254 | { |
255 | - $this->app->singleton('firewall.ipaddress', function () { |
|
255 | + $this->app->singleton('firewall.ipaddress', function() { |
|
256 | 256 | return new IpAddress(); |
257 | 257 | }); |
258 | 258 | } |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | */ |
263 | 263 | private function registerIpList() |
264 | 264 | { |
265 | - $this->app->singleton('firewall.iplist', function () { |
|
265 | + $this->app->singleton('firewall.iplist', function() { |
|
266 | 266 | return new IpList($this->getFirewallModel()); |
267 | 267 | }); |
268 | 268 | } |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | */ |
273 | 273 | private function registerMessageRepository() |
274 | 274 | { |
275 | - $this->app->singleton('firewall.messages', function () { |
|
275 | + $this->app->singleton('firewall.messages', function() { |
|
276 | 276 | return new Message(); |
277 | 277 | }); |
278 | 278 | } |
@@ -284,11 +284,11 @@ discard block |
||
284 | 284 | */ |
285 | 285 | private function registerMiddleware() |
286 | 286 | { |
287 | - $this->app->singleton('firewall.middleware.blacklist', function () { |
|
287 | + $this->app->singleton('firewall.middleware.blacklist', function() { |
|
288 | 288 | return new FirewallBlacklist(new Blacklist()); |
289 | 289 | }); |
290 | 290 | |
291 | - $this->app->singleton('firewall.middleware.whitelist', function () { |
|
291 | + $this->app->singleton('firewall.middleware.whitelist', function() { |
|
292 | 292 | return new FirewallWhitelist(new Whitelist()); |
293 | 293 | }); |
294 | 294 | } |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | |
301 | 301 | private function registerGeoIp() |
302 | 302 | { |
303 | - $this->app->singleton('firewall.geoip', function () { |
|
303 | + $this->app->singleton('firewall.geoip', function() { |
|
304 | 304 | return new GeoIp($this->getConfig('geoip_database_path')); |
305 | 305 | }); |
306 | 306 | } |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | */ |
313 | 313 | private function registerRemoveCommand() |
314 | 314 | { |
315 | - $this->app->singleton('firewall.remove.command', function () { |
|
315 | + $this->app->singleton('firewall.remove.command', function() { |
|
316 | 316 | return new RemoveCommand(); |
317 | 317 | }); |
318 | 318 | |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | */ |
327 | 327 | private function registerReportCommand() |
328 | 328 | { |
329 | - $this->app->singleton('firewall.list.command', function () { |
|
329 | + $this->app->singleton('firewall.list.command', function() { |
|
330 | 330 | return new ReportCommand(); |
331 | 331 | }); |
332 | 332 | |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | */ |
339 | 339 | private function registerUpdateGeoIpCommand() |
340 | 340 | { |
341 | - $this->app->singleton('firewall.updategeoip.command', function () { |
|
341 | + $this->app->singleton('firewall.updategeoip.command', function() { |
|
342 | 342 | return new UpdateGeoIpCommand(); |
343 | 343 | }); |
344 | 344 | |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | */ |
353 | 353 | private function registerWhitelistCommand() |
354 | 354 | { |
355 | - $this->app->singleton('firewall.whitelist.command', function () { |
|
355 | + $this->app->singleton('firewall.whitelist.command', function() { |
|
356 | 356 | return new WhitelistCommand(); |
357 | 357 | }); |
358 | 358 |