@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | */ |
143 | 143 | private function registerAttackBlocker() |
144 | 144 | { |
145 | - $this->app->singleton('firewall.attackBlocker', function () { |
|
145 | + $this->app->singleton('firewall.attackBlocker', function() { |
|
146 | 146 | return new AttackBlocker(); |
147 | 147 | }); |
148 | 148 | } |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | */ |
153 | 153 | private function registerCountriesRepository() |
154 | 154 | { |
155 | - $this->app->singleton('firewall.countries', function () { |
|
155 | + $this->app->singleton('firewall.countries', function() { |
|
156 | 156 | return new Countries(); |
157 | 157 | }); |
158 | 158 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | private function registerBlacklistCommand() |
166 | 166 | { |
167 | - $this->app->singleton('firewall.blacklist.command', function () { |
|
167 | + $this->app->singleton('firewall.blacklist.command', function() { |
|
168 | 168 | return new BlacklistCommand(); |
169 | 169 | }); |
170 | 170 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | */ |
179 | 179 | private function registerCache() |
180 | 180 | { |
181 | - $this->app->singleton('firewall.cache', function () { |
|
181 | + $this->app->singleton('firewall.cache', function() { |
|
182 | 182 | return new Cache(app('cache')); |
183 | 183 | }); |
184 | 184 | } |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | private function registerClearCommand() |
192 | 192 | { |
193 | - $this->app->singleton('firewall.clear.command', function () { |
|
193 | + $this->app->singleton('firewall.clear.command', function() { |
|
194 | 194 | return new ClearCommand(); |
195 | 195 | }); |
196 | 196 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | */ |
205 | 205 | private function registerDataRepository() |
206 | 206 | { |
207 | - $this->app->singleton('firewall.datarepository', function () { |
|
207 | + $this->app->singleton('firewall.datarepository', function() { |
|
208 | 208 | return new DataRepository(); |
209 | 209 | }); |
210 | 210 | } |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | */ |
225 | 225 | private function registerFileSystem() |
226 | 226 | { |
227 | - $this->app->singleton('firewall.filesystem', function () { |
|
227 | + $this->app->singleton('firewall.filesystem', function() { |
|
228 | 228 | return new Filesystem(); |
229 | 229 | }); |
230 | 230 | } |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | */ |
238 | 238 | private function registerFirewall() |
239 | 239 | { |
240 | - $this->app->singleton('firewall', function ($app) { |
|
240 | + $this->app->singleton('firewall', function($app) { |
|
241 | 241 | $app['firewall.loaded'] = true; |
242 | 242 | |
243 | 243 | $this->firewall = new Firewall( |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | |
257 | 257 | private function registerIpAddress() |
258 | 258 | { |
259 | - $this->app->singleton('firewall.ipaddress', function () { |
|
259 | + $this->app->singleton('firewall.ipaddress', function() { |
|
260 | 260 | return new IpAddress(); |
261 | 261 | }); |
262 | 262 | } |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | */ |
268 | 268 | private function registerIpList() |
269 | 269 | { |
270 | - $this->app->singleton('firewall.iplist', function () { |
|
270 | + $this->app->singleton('firewall.iplist', function() { |
|
271 | 271 | return new IpList($this->getFirewallModel()); |
272 | 272 | }); |
273 | 273 | } |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | */ |
279 | 279 | private function registerMessageRepository() |
280 | 280 | { |
281 | - $this->app->singleton('firewall.messages', function () { |
|
281 | + $this->app->singleton('firewall.messages', function() { |
|
282 | 282 | return new Message(); |
283 | 283 | }); |
284 | 284 | } |
@@ -290,11 +290,11 @@ discard block |
||
290 | 290 | */ |
291 | 291 | private function registerMiddleware() |
292 | 292 | { |
293 | - $this->app->singleton('firewall.middleware.blacklist', function () { |
|
293 | + $this->app->singleton('firewall.middleware.blacklist', function() { |
|
294 | 294 | return new FirewallBlacklist(new Blacklist()); |
295 | 295 | }); |
296 | 296 | |
297 | - $this->app->singleton('firewall.middleware.whitelist', function () { |
|
297 | + $this->app->singleton('firewall.middleware.whitelist', function() { |
|
298 | 298 | return new FirewallWhitelist(new Whitelist()); |
299 | 299 | }); |
300 | 300 | } |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | |
307 | 307 | private function registerGeoIp() |
308 | 308 | { |
309 | - $this->app->singleton('firewall.geoip', function () { |
|
309 | + $this->app->singleton('firewall.geoip', function() { |
|
310 | 310 | return new GeoIp($this->getConfig('geoip_database_path')); |
311 | 311 | }); |
312 | 312 | } |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | */ |
319 | 319 | private function registerRemoveCommand() |
320 | 320 | { |
321 | - $this->app->singleton('firewall.remove.command', function () { |
|
321 | + $this->app->singleton('firewall.remove.command', function() { |
|
322 | 322 | return new RemoveCommand(); |
323 | 323 | }); |
324 | 324 | |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | */ |
333 | 333 | private function registerReportCommand() |
334 | 334 | { |
335 | - $this->app->singleton('firewall.list.command', function () { |
|
335 | + $this->app->singleton('firewall.list.command', function() { |
|
336 | 336 | return new ReportCommand(); |
337 | 337 | }); |
338 | 338 | |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | */ |
345 | 345 | private function registerUpdateGeoIpCommand() |
346 | 346 | { |
347 | - $this->app->singleton('firewall.updategeoip.command', function () { |
|
347 | + $this->app->singleton('firewall.updategeoip.command', function() { |
|
348 | 348 | return new UpdateGeoIpCommand(); |
349 | 349 | }); |
350 | 350 | |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | */ |
359 | 359 | private function registerWhitelistCommand() |
360 | 360 | { |
361 | - $this->app->singleton('firewall.whitelist.command', function () { |
|
361 | + $this->app->singleton('firewall.whitelist.command', function() { |
|
362 | 362 | return new WhitelistCommand(); |
363 | 363 | }); |
364 | 364 |