Passed
Push — master ( 7f4da8...1c40c3 )
by Antonio Carlos
12:03
created
src/Repositories/IpList.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * Remove the ip address from an array list.
66 66
      *
67
-     * @param $type
67
+     * @param string $type
68 68
      * @param $ip
69 69
      *
70 70
      * @return bool
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @param \Illuminate\Database\Eloquent\Model $ip
93 93
      *
94
-     * @return bool
94
+     * @return boolean|null
95 95
      */
96 96
     private function removeFromDatabaseList($ip)
97 97
     {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     /**
138 138
      * Read a file contents.
139 139
      *
140
-     * @param $file
140
+     * @param string $file
141 141
      *
142 142
      * @return array
143 143
      */
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
     /**
247 247
      * Merge IP lists.
248 248
      *
249
-     * @param $database_ips
250
-     * @param $config_ips
249
+     * @param \Illuminate\Support\Collection $database_ips
250
+     * @param \Illuminate\Support\Collection $config_ips
251 251
      *
252 252
      * @return \Illuminate\Support\Collection
253 253
      */
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
      * Add ip or range to array list.
368 368
      *
369 369
      * @param $whitelist
370
-     * @param $ip
370
+     * @param string $ip
371 371
      *
372 372
      * @return array|mixed
373 373
      */
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
     /**
477 477
      * Find ip address in all lists.
478 478
      *
479
-     * @param $ip
479
+     * @param string $ip
480 480
      *
481 481
      * @return \Illuminate\Database\Eloquent\Model|null|static
482 482
      */
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
      *
497 497
      * @param $ip
498 498
      *
499
-     * @return \Illuminate\Database\Eloquent\Model
499
+     * @return FirewallModel|null
500 500
      */
501 501
     private function nonDatabaseFind($ip)
502 502
     {
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
      * Add ip or range to database.
512 512
      *
513 513
      * @param $whitelist
514
-     * @param $ip
514
+     * @param string $ip
515 515
      *
516 516
      * @return \Illuminate\Database\Eloquent\Model
517 517
      */
Please login to merge, or discard this patch.
src/Support/IpAddress.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     /**
61 61
      * Check if an ip v4 is valid.
62 62
      *
63
-     * @param $item
63
+     * @param string $item
64 64
      *
65 65
      * @return bool
66 66
      */
Please login to merge, or discard this patch.
src/Support/AttackBlocker.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     /**
232 232
      * Check for attacks.
233 233
      *
234
-     * @param $ipAddress
234
+     * @param null|string $ipAddress
235 235
      *
236 236
      * @return bool
237 237
      */
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
     /**
368 368
      * Make the cache key to record countries.
369 369
      *
370
-     * @param $ipAddress
370
+     * @param string $ipAddress
371 371
      *
372 372
      * @return string|null
373 373
      */
Please login to merge, or discard this patch.
src/Repositories/Cache/Cache.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * Check if cache has key.
57 57
      *
58
-     * @param $key
58
+     * @param string $key
59 59
      *
60 60
      * @return bool
61 61
      */
@@ -71,10 +71,10 @@  discard block
 block discarded – undo
71 71
     /**
72 72
      * Get a value from the cache.
73 73
      *
74
-     * @param $key
74
+     * @param string|null $key
75 75
      * @param null $default
76 76
      *
77
-     * @return mixed|null
77
+     * @return \Illuminate\Contracts\Cache\Repository|null
78 78
      */
79 79
     public function get($key, $default = null)
80 80
     {
Please login to merge, or discard this patch.
src/Firewall.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     /**
131 131
      * Clear firewall table.
132 132
      *
133
-     * @return mixed
133
+     * @return integer
134 134
      */
135 135
     public function clear()
136 136
     {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     /**
240 240
      * Get the list of all IP addresses stored.
241 241
      *
242
-     * @return mixed
242
+     * @return \Illuminate\Support\Collection
243 243
      */
244 244
     public function report()
245 245
     {
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
      *
276 276
      * @param $ip
277 277
      *
278
-     * @return bool|string
278
+     * @return null|string
279 279
      */
280 280
     public function whichList($ip)
281 281
     {
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
      *
339 339
      * @param $ip
340 340
      *
341
-     * @return bool|string
341
+     * @return string|null
342 342
      */
343 343
     public function getCountryFromIp($ip)
344 344
     {
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
     /**
361 361
      * Get the GeoIP instance.
362 362
      *
363
-     * @return object
363
+     * @return \PragmaRX\Support\GeoIp\GeoIp
364 364
      */
365 365
     public function getGeoIp()
366 366
     {
Please login to merge, or discard this patch.