Completed
Push — master ( dc9a8f...a8cb62 )
by François
02:21
created
src/Identity.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -119,11 +119,19 @@
 block discarded – undo
119 119
         }
120 120
     }
121 121
 
122
+    /**
123
+     * @param string $key
124
+     */
122 125
     public function hasAttribute($key)
123 126
     {
124 127
         return isset($this->$key);
125 128
     }
126 129
 
130
+    /**
131
+     * @param string $key
132
+     *
133
+     * @return string|null
134
+     */
127 135
     public function getAttribute($key)
128 136
     {
129 137
         return isset($this->$key) ? $this->$key : null;
Please login to merge, or discard this patch.
src/Cache/Memcache.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Monolog\Formatter\LogstashFormatter;
15 15
 use Monolog\Handler\StreamHandler;
16 16
 use Monolog\Logger;
17
-
18 17
 use Bouncer\Identity;
19 18
 use Bouncer\Request;
20 19
 
Please login to merge, or discard this patch.
src/Cache/Redis.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Monolog\Formatter\LogstashFormatter;
15 15
 use Monolog\Handler\StreamHandler;
16 16
 use Monolog\Logger;
17
-
18 17
 use Bouncer\Identity;
19 18
 use Bouncer\Request;
20 19
 
Please login to merge, or discard this patch.
src/Bouncer.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -122,6 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
     /**
124 124
      * @throw Exception
125
+     * @param string $message
125 126
      */
126 127
     public function error($message)
127 128
     {
@@ -379,6 +380,10 @@  discard block
 block discarded – undo
379 380
      *
380 381
      * @return array|object
381 382
      */
383
+
384
+    /**
385
+     * @param string $type
386
+     */
382 387
     protected function processAnalyzers($type, $value)
383 388
     {
384 389
         if (isset($this->analyzers[$type])) {
@@ -515,6 +520,10 @@  discard block
 block discarded – undo
515 520
         exit;
516 521
     }
517 522
 
523
+    /**
524
+     * @param string $code
525
+     * @param string $message
526
+     */
518 527
     public static function response_status($code, $message)
519 528
     {
520 529
         if (function_exists('http_response_code')) {
@@ -525,6 +534,9 @@  discard block
 block discarded – undo
525 534
         }
526 535
     }
527 536
 
537
+    /**
538
+     * @param string $string
539
+     */
528 540
     public static function hash($string)
529 541
     {
530 542
         return md5($string);
Please login to merge, or discard this patch.
src/Request.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@  discard block
 block discarded – undo
32 32
         return $userAgent ? $userAgent : '';
33 33
     }
34 34
 
35
+    /**
36
+     * @param string $name
37
+     */
35 38
     public function getHeader($name)
36 39
     {
37 40
         return $this->headers->get($name);
@@ -64,6 +67,9 @@  discard block
 block discarded – undo
64 67
         return $headers;
65 68
     }
66 69
 
70
+    /**
71
+     * @param string $name
72
+     */
67 73
     public function getCookie($name)
68 74
     {
69 75
         return $this->cookies->get($name);
Please login to merge, or discard this patch.