@@ -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(); |
@@ -91,6 +91,9 @@ discard block |
||
91 | 91 | return $connector; |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param string $name |
|
96 | + */ |
|
94 | 97 | protected function getHandlerDefaultOption($name) |
95 | 98 | { |
96 | 99 | $handler = new PHPConsoleHandler(array(), $this->connector); |
@@ -137,6 +140,9 @@ discard block |
||
137 | 140 | $this->initLogger()->addDebug($message, $context); |
138 | 141 | } |
139 | 142 | |
143 | + /** |
|
144 | + * @param string[] $tagsContextKeys |
|
145 | + */ |
|
140 | 146 | public function testDebugTags($tagsContextKeys = null) |
141 | 147 | { |
142 | 148 | $expectedTags = mt_rand(); |
@@ -155,6 +161,9 @@ discard block |
||
155 | 161 | } |
156 | 162 | } |
157 | 163 | |
164 | + /** |
|
165 | + * @param string[] $classesPartialsTraceIgnore |
|
166 | + */ |
|
158 | 167 | public function testError($classesPartialsTraceIgnore = null) |
159 | 168 | { |
160 | 169 | $code = E_USER_NOTICE; |
@@ -35,6 +35,9 @@ |
||
35 | 35 | $this->assertInstanceOf('Monolog\Handler\RavenHandler', $handler); |
36 | 36 | } |
37 | 37 | |
38 | + /** |
|
39 | + * @param MockRavenClient $ravenClient |
|
40 | + */ |
|
38 | 41 | protected function getHandler($ravenClient) |
39 | 42 | { |
40 | 43 | $handler = new RavenHandler($ravenClient); |
@@ -282,12 +282,18 @@ |
||
282 | 282 | $this->writeRecord('Hello world'); |
283 | 283 | } |
284 | 284 | |
285 | + /** |
|
286 | + * @param string $connectionString |
|
287 | + */ |
|
285 | 288 | private function createHandler($connectionString) |
286 | 289 | { |
287 | 290 | $this->handler = new SocketHandler($connectionString); |
288 | 291 | $this->handler->setFormatter($this->getIdentityFormatter()); |
289 | 292 | } |
290 | 293 | |
294 | + /** |
|
295 | + * @param string $string |
|
296 | + */ |
|
291 | 297 | private function writeRecord($string) |
292 | 298 | { |
293 | 299 | $this->handler->handle($this->getRecord(Logger::WARNING, $string)); |
@@ -69,6 +69,9 @@ |
||
69 | 69 | $handler->handle($this->getRecordWithMessage(null)); |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string|null $msg |
|
74 | + */ |
|
72 | 75 | protected function getRecordWithMessage($msg) |
73 | 76 | { |
74 | 77 | return array('message' => $msg, 'level' => \Monolog\Logger::WARNING, 'context' => null, 'extra' => array(), 'channel' => 'lol'); |
@@ -55,6 +55,9 @@ |
||
55 | 55 | } |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param integer $handler |
|
60 | + */ |
|
58 | 61 | private function setSignalHandler($signo, $handler = SIG_DFL) { |
59 | 62 | if (function_exists('pcntl_signal_get_handler')) { |
60 | 63 | $this->signalHandlers[$signo] = pcntl_signal_get_handler($signo); |