@@ -28,7 +28,7 @@ |
||
28 | 28 | * Constructor |
29 | 29 | * |
30 | 30 | * @throws Exception |
31 | - * @param string|ConditionInterface $target |
|
31 | + * @param string $target |
|
32 | 32 | * @param Closure $closure |
33 | 33 | */ |
34 | 34 | public function __construct( $target, Closure $closure ) { |
@@ -82,7 +82,6 @@ |
||
82 | 82 | /** |
83 | 83 | * Execute the parsed handler with any provided arguments and return the result |
84 | 84 | * |
85 | - * @param mixed $arguments,... |
|
86 | 85 | * @return mixed |
87 | 86 | */ |
88 | 87 | public function execute() { |
@@ -26,7 +26,6 @@ |
||
26 | 26 | * Constructor |
27 | 27 | * |
28 | 28 | * @param callable $callable |
29 | - * @param mixed $arguments,... |
|
30 | 29 | */ |
31 | 30 | public function __construct( $callable ) { |
32 | 31 | $this->callable = $callable; |
@@ -36,7 +36,6 @@ |
||
36 | 36 | /** |
37 | 37 | * Execute the handler |
38 | 38 | * |
39 | - * @param mixed $arguments,... |
|
40 | 39 | * @return mixed |
41 | 40 | */ |
42 | 41 | public function execute() { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | /** |
99 | 99 | * Check if the request method is GET. |
100 | 100 | * |
101 | - * @return string |
|
101 | + * @return boolean |
|
102 | 102 | */ |
103 | 103 | public function isGet() { |
104 | 104 | return $this->getMethod() === 'GET'; |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | /** |
108 | 108 | * Check if the request method is HEAD. |
109 | 109 | * |
110 | - * @return string |
|
110 | + * @return boolean |
|
111 | 111 | */ |
112 | 112 | public function isHead() { |
113 | 113 | return $this->getMethod() === 'HEAD'; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * Check if the request method is POST. |
118 | 118 | * |
119 | - * @return string |
|
119 | + * @return boolean |
|
120 | 120 | */ |
121 | 121 | public function isPost() { |
122 | 122 | return $this->getMethod() === 'POST'; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | /** |
126 | 126 | * Check if the request method is PUT. |
127 | 127 | * |
128 | - * @return string |
|
128 | + * @return boolean |
|
129 | 129 | */ |
130 | 130 | public function isPut() { |
131 | 131 | return $this->getMethod() === 'PUT'; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | /** |
135 | 135 | * Check if the request method is PATCH. |
136 | 136 | * |
137 | - * @return string |
|
137 | + * @return boolean |
|
138 | 138 | */ |
139 | 139 | public function isPatch() { |
140 | 140 | return $this->getMethod() === 'PATCH'; |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | /** |
144 | 144 | * Check if the request method is DELETE. |
145 | 145 | * |
146 | - * @return string |
|
146 | + * @return boolean |
|
147 | 147 | */ |
148 | 148 | public function isDelete() { |
149 | 149 | return $this->getMethod() === 'DELETE'; |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | /** |
153 | 153 | * Check if the request method is OPTIONS. |
154 | 154 | * |
155 | - * @return string |
|
155 | + * @return boolean |
|
156 | 156 | */ |
157 | 157 | public function isOptions() { |
158 | 158 | return $this->getMethod() === 'OPTIONS'; |