@@ -51,21 +51,21 @@ |
||
51 | 51 | }) |
52 | 52 | ->attachment(function ($attachment) use ($item) { |
53 | 53 | $attachment->title($title = config('firewall.notifications.message.uri.title')) |
54 | - ->content($item['server']['REQUEST_URI']); |
|
54 | + ->content($item['server']['REQUEST_URI']); |
|
55 | 55 | }) |
56 | 56 | ->attachment(function ($attachment) use ($item) { |
57 | 57 | $attachment->title(config('firewall.notifications.message.user_agent.title')) |
58 | - ->content($item['userAgent']); |
|
58 | + ->content($item['userAgent']); |
|
59 | 59 | }) |
60 | 60 | ->attachment(function ($attachment) use ($item) { |
61 | 61 | $attachment->title(config('firewall.notifications.message.blacklisted.title')) |
62 | - ->content($item['isBlacklisted'] ? 'YES' : 'NO'); |
|
62 | + ->content($item['isBlacklisted'] ? 'YES' : 'NO'); |
|
63 | 63 | }); |
64 | 64 | |
65 | 65 | if ($item['geoIp']) { |
66 | 66 | $message->attachment(function ($attachment) use ($item) { |
67 | 67 | $attachment->title(config('firewall.notifications.message.geolocation.title')) |
68 | - ->fields($this->getGeolocation($item)); |
|
68 | + ->fields($this->getGeolocation($item)); |
|
69 | 69 | }); |
70 | 70 | } |
71 | 71 |
@@ -116,11 +116,11 @@ |
||
116 | 116 | $class = new ReflectionClass(get_class($this->model)); |
117 | 117 | |
118 | 118 | $model = $class->newInstanceArgs([ |
119 | - [ |
|
120 | - 'ip_address' => $ip, |
|
121 | - 'whitelisted' => $whitelist, |
|
122 | - ], |
|
123 | - ]); |
|
119 | + [ |
|
120 | + 'ip_address' => $ip, |
|
121 | + 'whitelisted' => $whitelist, |
|
122 | + ], |
|
123 | + ]); |
|
124 | 124 | |
125 | 125 | return $model; |
126 | 126 | } |
@@ -6,13 +6,13 @@ discard block |
||
6 | 6 | |
7 | 7 | class CreateFirewallTable extends Migration { |
8 | 8 | |
9 | - /** |
|
10 | - * Run the migration. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function up() |
|
15 | - { |
|
9 | + /** |
|
10 | + * Run the migration. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function up() |
|
15 | + { |
|
16 | 16 | Schema::create('firewall', function (Blueprint $table) { |
17 | 17 | $table->increments('id'); |
18 | 18 | |
@@ -22,16 +22,16 @@ discard block |
||
22 | 22 | |
23 | 23 | $table->timestamps(); |
24 | 24 | }); |
25 | - } |
|
26 | - |
|
27 | - /** |
|
28 | - * Reverse the migration. |
|
29 | - * |
|
30 | - * @return void |
|
31 | - */ |
|
32 | - public function down() |
|
33 | - { |
|
25 | + } |
|
26 | + |
|
27 | + /** |
|
28 | + * Reverse the migration. |
|
29 | + * |
|
30 | + * @return void |
|
31 | + */ |
|
32 | + public function down() |
|
33 | + { |
|
34 | 34 | Schema::dropIfExists('firewall'); |
35 | - } |
|
35 | + } |
|
36 | 36 | |
37 | 37 | } |