@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | /** |
134 | 134 | * Clear firewall table. |
135 | 135 | * |
136 | - * @return mixed |
|
136 | + * @return integer |
|
137 | 137 | */ |
138 | 138 | public function clear() |
139 | 139 | { |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | /** |
241 | 241 | * Get the list of all IP addresses stored. |
242 | 242 | * |
243 | - * @return mixed |
|
243 | + * @return \Illuminate\Support\Collection |
|
244 | 244 | */ |
245 | 245 | public function report() |
246 | 246 | { |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | * |
277 | 277 | * @param $ip_address |
278 | 278 | * |
279 | - * @return bool|string |
|
279 | + * @return null|string |
|
280 | 280 | */ |
281 | 281 | public function whichList($ip_address) |
282 | 282 | { |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | /** |
326 | 326 | * Get a response to the attack. |
327 | 327 | * |
328 | - * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse|null |
|
328 | + * @return null|\Illuminate\Http\Response |
|
329 | 329 | */ |
330 | 330 | public function responseToAttack() |
331 | 331 | { |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | * |
338 | 338 | * @param $ip_address |
339 | 339 | * |
340 | - * @return bool|string |
|
340 | + * @return string|null |
|
341 | 341 | */ |
342 | 342 | public function getCountryFromIp($ip_address) |
343 | 343 | { |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | /** |
360 | 360 | * Get the GeoIP instance. |
361 | 361 | * |
362 | - * @return object |
|
362 | + * @return \PragmaRX\Support\GeoIp\GeoIp |
|
363 | 363 | */ |
364 | 364 | public function getGeoIp() |
365 | 365 | { |
@@ -79,6 +79,7 @@ discard block |
||
79 | 79 | * Check if cache has key. |
80 | 80 | * |
81 | 81 | * @param $ip |
82 | + * @param string $key |
|
82 | 83 | * |
83 | 84 | * @return bool |
84 | 85 | */ |
@@ -96,7 +97,7 @@ discard block |
||
96 | 97 | * |
97 | 98 | * @param $key |
98 | 99 | * |
99 | - * @return mixed|null |
|
100 | + * @return \Illuminate\Contracts\Cache\Repository|null |
|
100 | 101 | */ |
101 | 102 | public function get($key) |
102 | 103 | { |
@@ -108,7 +109,6 @@ discard block |
||
108 | 109 | /** |
109 | 110 | * Remove an ip address from cache. |
110 | 111 | * |
111 | - * @param string $ip |
|
112 | 112 | * |
113 | 113 | * @return void |
114 | 114 | */ |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | /** |
65 | 65 | * Remove the ip address from an array list. |
66 | 66 | * |
67 | - * @param $type |
|
67 | + * @param string $type |
|
68 | 68 | * @param $ipAddress |
69 | 69 | * |
70 | 70 | * @return bool |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | /** |
136 | 136 | * Read a file contents. |
137 | 137 | * |
138 | - * @param $file |
|
138 | + * @param string $file |
|
139 | 139 | * |
140 | 140 | * @return array |
141 | 141 | */ |
@@ -244,8 +244,8 @@ discard block |
||
244 | 244 | /** |
245 | 245 | * Merge IP lists. |
246 | 246 | * |
247 | - * @param $database_ips |
|
248 | - * @param $config_ips |
|
247 | + * @param \Illuminate\Support\Collection $database_ips |
|
248 | + * @param \Illuminate\Support\Collection $config_ips |
|
249 | 249 | * |
250 | 250 | * @return \Illuminate\Support\Collection |
251 | 251 | */ |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | * Add ip or range to array list. |
370 | 370 | * |
371 | 371 | * @param $whitelist |
372 | - * @param $ip |
|
372 | + * @param string $ip |
|
373 | 373 | * |
374 | 374 | * @return array|mixed |
375 | 375 | */ |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | /** |
479 | 479 | * Find ip address in all lists. |
480 | 480 | * |
481 | - * @param $ip |
|
481 | + * @param string $ip |
|
482 | 482 | * |
483 | 483 | * @return \Illuminate\Database\Eloquent\Model|null|static |
484 | 484 | */ |
@@ -498,7 +498,7 @@ discard block |
||
498 | 498 | * |
499 | 499 | * @param $ip |
500 | 500 | * |
501 | - * @return \Illuminate\Database\Eloquent\Model |
|
501 | + * @return FirewallModel|null |
|
502 | 502 | */ |
503 | 503 | private function nonDatabaseFind($ip) |
504 | 504 | { |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | * Add ip or range to database. |
514 | 514 | * |
515 | 515 | * @param $whitelist |
516 | - * @param $ip |
|
516 | + * @param string $ip |
|
517 | 517 | * |
518 | 518 | * @return \Illuminate\Database\Eloquent\Model |
519 | 519 | */ |
@@ -399,7 +399,7 @@ |
||
399 | 399 | /** |
400 | 400 | * Make the cache key to record countries. |
401 | 401 | * |
402 | - * @param $ipAddress |
|
402 | + * @param string $ipAddress |
|
403 | 403 | * |
404 | 404 | * @return string|null |
405 | 405 | */ |
@@ -79,7 +79,7 @@ |
||
79 | 79 | /** |
80 | 80 | * Get the services provided by the provider. |
81 | 81 | * |
82 | - * @return array |
|
82 | + * @return string[] |
|
83 | 83 | */ |
84 | 84 | public function provides() |
85 | 85 | { |