@@ -119,7 +119,7 @@ |
||
119 | 119 | /** |
120 | 120 | * Sets minimum logging level at which this handler will be triggered. |
121 | 121 | * |
122 | - * @param int|string $level Level or level name |
|
122 | + * @param integer $level Level or level name |
|
123 | 123 | * @return self |
124 | 124 | */ |
125 | 125 | public function setLevel($level) |
@@ -181,6 +181,10 @@ discard block |
||
181 | 181 | return $args; |
182 | 182 | } |
183 | 183 | |
184 | + /** |
|
185 | + * @param string $style |
|
186 | + * @param string $string |
|
187 | + */ |
|
184 | 188 | private static function handleCustomStyles($style, $string) |
185 | 189 | { |
186 | 190 | static $colors = array('blue', 'green', 'red', 'magenta', 'orange', 'black', 'grey'); |
@@ -201,6 +205,9 @@ discard block |
||
201 | 205 | }, $style); |
202 | 206 | } |
203 | 207 | |
208 | + /** |
|
209 | + * @param string $title |
|
210 | + */ |
|
204 | 211 | private static function dump($title, array $dict) |
205 | 212 | { |
206 | 213 | $script = array(); |
@@ -47,7 +47,7 @@ |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | - * @return array With all available types |
|
50 | + * @return integer[] With all available types |
|
51 | 51 | */ |
52 | 52 | public static function getAvailableTypes() |
53 | 53 | { |
@@ -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); |
@@ -29,6 +29,10 @@ |
||
29 | 29 | { |
30 | 30 | protected $mongoCollection; |
31 | 31 | |
32 | + /** |
|
33 | + * @param string $database |
|
34 | + * @param string $collection |
|
35 | + */ |
|
32 | 36 | public function __construct($mongo, $database, $collection, $level = Logger::DEBUG, $bubble = true) |
33 | 37 | { |
34 | 38 | if (!($mongo instanceof \MongoClient || $mongo instanceof \Mongo || $mongo instanceof \MongoDB\Client)) { |
@@ -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) |