@@ -65,7 +65,7 @@ |
||
| 65 | 65 | protected $encoding = 'utf-8'; |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * @param string|array $to The receiver of the mail |
|
| 68 | + * @param string $to The receiver of the mail |
|
| 69 | 69 | * @param string $subject The subject of the mail |
| 70 | 70 | * @param string $from The sender of the mail |
| 71 | 71 | * @param int $level The minimum logging level at which this handler will be triggered |
@@ -141,6 +141,9 @@ |
||
| 141 | 141 | return http_build_query($dataArray); |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | + /** |
|
| 145 | + * @param string $content |
|
| 146 | + */ |
|
| 144 | 147 | private function buildHeader($content) |
| 145 | 148 | { |
| 146 | 149 | $header = "POST /1/messages.json HTTP/1.1\r\n"; |
@@ -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 | { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | protected $factor; |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @param callable|HandlerInterface $handler Handler or factory callable($record, $fingersCrossedHandler). |
|
| 41 | + * @param TestHandler $handler Handler or factory callable($record, $fingersCrossedHandler). |
|
| 42 | 42 | * @param int $factor Sample factor |
| 43 | 43 | */ |
| 44 | 44 | public function __construct($handler, $factor) |
@@ -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; |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | /** |
| 172 | 172 | * Get current in-transfer timeout |
| 173 | 173 | * |
| 174 | - * @return float |
|
| 174 | + * @return integer |
|
| 175 | 175 | */ |
| 176 | 176 | public function getTimeout() |
| 177 | 177 | { |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | /** |
| 182 | 182 | * Get current local writing timeout |
| 183 | 183 | * |
| 184 | - * @return float |
|
| 184 | + * @return integer |
|
| 185 | 185 | */ |
| 186 | 186 | public function getWritingTimeout() |
| 187 | 187 | { |
@@ -266,6 +266,9 @@ discard block |
||
| 266 | 266 | return stream_get_meta_data($this->resource); |
| 267 | 267 | } |
| 268 | 268 | |
| 269 | + /** |
|
| 270 | + * @param double $value |
|
| 271 | + */ |
|
| 269 | 272 | private function validateTimeout($value) |
| 270 | 273 | { |
| 271 | 274 | $ok = filter_var($value, FILTER_VALIDATE_FLOAT); |
@@ -329,6 +332,9 @@ discard block |
||
| 329 | 332 | } |
| 330 | 333 | } |
| 331 | 334 | |
| 335 | + /** |
|
| 336 | + * @param string $data |
|
| 337 | + */ |
|
| 332 | 338 | private function writeToSocket($data) |
| 333 | 339 | { |
| 334 | 340 | $length = strlen($data); |
@@ -358,6 +364,9 @@ discard block |
||
| 358 | 364 | } |
| 359 | 365 | } |
| 360 | 366 | |
| 367 | + /** |
|
| 368 | + * @param integer $sent |
|
| 369 | + */ |
|
| 361 | 370 | private function writingIsTimedOut($sent) |
| 362 | 371 | { |
| 363 | 372 | $writingTimeout = (int) floor($this->writingTimeout); |
@@ -119,6 +119,9 @@ |
||
| 119 | 119 | }, $level); |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | + /** |
|
| 123 | + * @param \Closure $predicate |
|
| 124 | + */ |
|
| 122 | 125 | public function hasRecordThatPasses($predicate, $level) |
| 123 | 126 | { |
| 124 | 127 | if (!is_callable($predicate)) { |
@@ -162,6 +162,7 @@ |
||
| 162 | 162 | /** |
| 163 | 163 | * Return a new cloned instance with the name changed |
| 164 | 164 | * |
| 165 | + * @param string $name |
|
| 165 | 166 | * @return static |
| 166 | 167 | */ |
| 167 | 168 | public function withName($name) |
@@ -64,6 +64,9 @@ |
||
| 64 | 64 | return $this; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | + /** |
|
| 68 | + * @param integer $signo |
|
| 69 | + */ |
|
| 67 | 70 | public function handleSignal($signo, array $siginfo = null) |
| 68 | 71 | { |
| 69 | 72 | static $signals = array(); |