@@ -74,6 +74,9 @@ |
||
74 | 74 | } |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param string $endpoint |
|
79 | + */ |
|
77 | 80 | protected function send($data, $endpoint) |
78 | 81 | { |
79 | 82 | $url = sprintf("https://%s/%s/%s/", self::HOST, $endpoint, $this->token); |
@@ -84,7 +84,7 @@ |
||
84 | 84 | /** |
85 | 85 | * Add headers to the message |
86 | 86 | * |
87 | - * @param string|array $headers Custom added headers |
|
87 | + * @param string $headers Custom added headers |
|
88 | 88 | * @return self |
89 | 89 | */ |
90 | 90 | public function addHeader($headers) |
@@ -212,7 +212,7 @@ |
||
212 | 212 | /** |
213 | 213 | * Gets extra parameters supported by Raven that can be found in "extra" and "context" |
214 | 214 | * |
215 | - * @return array |
|
215 | + * @return string[] |
|
216 | 216 | */ |
217 | 217 | protected function getExtraParameters() |
218 | 218 | { |
@@ -85,6 +85,11 @@ |
||
85 | 85 | */ |
86 | 86 | private $normalizerFormatter; |
87 | 87 | |
88 | + /** |
|
89 | + * @param string $channel |
|
90 | + * @param string $username |
|
91 | + * @param string $userIcon |
|
92 | + */ |
|
88 | 93 | public function __construct($channel = null, $username = null, $useAttachment = true, $userIcon = null, $useShortAttachment = false, $includeContextAndExtra = false, array $excludeFields = array(), FormatterInterface $formatter = null) |
89 | 94 | { |
90 | 95 | $this->channel = $channel; |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * Get current in-transfer timeout |
162 | 162 | * |
163 | - * @return float |
|
163 | + * @return integer |
|
164 | 164 | */ |
165 | 165 | public function getTimeout() |
166 | 166 | { |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | /** |
171 | 171 | * Get current local writing timeout |
172 | 172 | * |
173 | - * @return float |
|
173 | + * @return integer |
|
174 | 174 | */ |
175 | 175 | public function getWritingTimeout() |
176 | 176 | { |
@@ -235,6 +235,9 @@ discard block |
||
235 | 235 | return stream_get_meta_data($this->resource); |
236 | 236 | } |
237 | 237 | |
238 | + /** |
|
239 | + * @param double $value |
|
240 | + */ |
|
238 | 241 | private function validateTimeout($value) |
239 | 242 | { |
240 | 243 | $ok = filter_var($value, FILTER_VALIDATE_FLOAT); |
@@ -290,6 +293,9 @@ discard block |
||
290 | 293 | } |
291 | 294 | } |
292 | 295 | |
296 | + /** |
|
297 | + * @param string $data |
|
298 | + */ |
|
293 | 299 | private function writeToSocket($data) |
294 | 300 | { |
295 | 301 | $length = strlen($data); |
@@ -319,6 +325,9 @@ discard block |
||
319 | 325 | } |
320 | 326 | } |
321 | 327 | |
328 | + /** |
|
329 | + * @param integer $sent |
|
330 | + */ |
|
322 | 331 | private function writingIsTimedOut($sent) |
323 | 332 | { |
324 | 333 | $writingTimeout = (int) floor($this->writingTimeout); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | private $dirCreated; |
31 | 31 | |
32 | 32 | /** |
33 | - * @param resource|string $stream |
|
33 | + * @param string $stream |
|
34 | 34 | * @param int $level The minimum logging level at which this handler will be triggered |
35 | 35 | * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not |
36 | 36 | * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write) |
@@ -288,6 +288,10 @@ discard block |
||
288 | 288 | } |
289 | 289 | } |
290 | 290 | |
291 | + /** |
|
292 | + * @param integer $given |
|
293 | + * @param integer $expected |
|
294 | + */ |
|
291 | 295 | private function validateArity($from, $given, $expected) |
292 | 296 | { |
293 | 297 | if ($given != $expected) { |
@@ -296,6 +300,9 @@ discard block |
||
296 | 300 | } |
297 | 301 | } |
298 | 302 | |
303 | + /** |
|
304 | + * @param string $from |
|
305 | + */ |
|
299 | 306 | private function validate($from, $args, $types = []) |
300 | 307 | { |
301 | 308 | $this->validateArity($from, count($args), count($types)); |
@@ -353,7 +360,7 @@ discard block |
||
353 | 360 | * |
354 | 361 | * @param string $from String of function:argument_position |
355 | 362 | * @param array $values Values to reduce. |
356 | - * @param array $types Array of valid value types. |
|
363 | + * @param string[] $types Array of valid value types. |
|
357 | 364 | * @param callable $reduce Reduce function that accepts ($carry, $item). |
358 | 365 | * |
359 | 366 | * @return mixed |
@@ -377,9 +384,9 @@ discard block |
||
377 | 384 | * |
378 | 385 | * @param string $from Function name : position |
379 | 386 | * @param callable $expr Expression function to validate. |
380 | - * @param array $types Array of acceptable return type values. |
|
387 | + * @param string[] $types Array of acceptable return type values. |
|
381 | 388 | * |
382 | - * @return callable Returns a wrapped function |
|
389 | + * @return \Closure Returns a wrapped function |
|
383 | 390 | */ |
384 | 391 | private function wrapExpression($from, callable $expr, array $types) |
385 | 392 | { |
@@ -184,6 +184,9 @@ discard block |
||
184 | 184 | return $endpoint; |
185 | 185 | } |
186 | 186 | |
187 | + /** |
|
188 | + * @param integer $length |
|
189 | + */ |
|
187 | 190 | private static function adjustSlice($length, $start, $stop, $step) |
188 | 191 | { |
189 | 192 | if ($step === null) { |
@@ -207,6 +210,11 @@ discard block |
||
207 | 210 | return [$start, $stop, $step]; |
208 | 211 | } |
209 | 212 | |
213 | + /** |
|
214 | + * @param integer|null $start |
|
215 | + * @param integer|null $stop |
|
216 | + * @param integer $step |
|
217 | + */ |
|
210 | 218 | private static function sliceIndices($subject, $start, $stop, $step) |
211 | 219 | { |
212 | 220 | $type = gettype($subject); |
@@ -219,7 +219,7 @@ |
||
219 | 219 | * @param string $id The unique identifier for the object |
220 | 220 | * @param callable $callable A service definition to extend the original |
221 | 221 | * |
222 | - * @return callable The wrapped callable |
|
222 | + * @return \Closure The wrapped callable |
|
223 | 223 | * |
224 | 224 | * @throws \InvalidArgumentException if the identifier is not defined or not a service definition |
225 | 225 | */ |