@@ -180,6 +180,7 @@ discard block |
||
180 | 180 | * @access private |
181 | 181 | * @param string Login |
182 | 182 | * @param integer Key |
183 | + * @param integer $key |
|
183 | 184 | * @return string |
184 | 185 | */ |
185 | 186 | function _xor($login, $key) |
@@ -208,6 +209,7 @@ discard block |
||
208 | 209 | * @access private |
209 | 210 | * @param string Login |
210 | 211 | * @param integer Key |
212 | + * @param integer $key |
|
211 | 213 | * @return string |
212 | 214 | */ |
213 | 215 | function _rotx($login, $key) |
@@ -241,6 +243,7 @@ discard block |
||
241 | 243 | * @access private |
242 | 244 | * @param string Login |
243 | 245 | * @param integer Key |
246 | + * @param integer $key |
|
244 | 247 | * @return string |
245 | 248 | */ |
246 | 249 | function _rotxpp($login, $key) |
@@ -274,6 +277,7 @@ discard block |
||
274 | 277 | * @access private |
275 | 278 | * @param string Login |
276 | 279 | * @param integer Key |
280 | + * @param integer $key |
|
277 | 281 | * @return string |
278 | 282 | */ |
279 | 283 | function _rotxmm($login, $key) |
@@ -306,6 +310,7 @@ discard block |
||
306 | 310 | * @access private |
307 | 311 | * @param string Login |
308 | 312 | * @param integer Key |
313 | + * @param integer $key |
|
309 | 314 | * @return string |
310 | 315 | */ |
311 | 316 | function _asciiRotx($login, $key) |
@@ -340,6 +345,7 @@ discard block |
||
340 | 345 | * @access private |
341 | 346 | * @param string Login |
342 | 347 | * @param integer Key |
348 | + * @param integer $key |
|
343 | 349 | * @return string |
344 | 350 | */ |
345 | 351 | function _asciiRotxpp($login, $key) |
@@ -374,6 +380,7 @@ discard block |
||
374 | 380 | * @access private |
375 | 381 | * @param string Login |
376 | 382 | * @param integer Key |
383 | + * @param integer $key |
|
377 | 384 | * @return string |
378 | 385 | */ |
379 | 386 | function _asciiRotxmm($login, $key) |
@@ -430,6 +437,7 @@ discard block |
||
430 | 437 | * |
431 | 438 | * @access private |
432 | 439 | * @param integer Length of the password |
440 | + * @param integer $length |
|
433 | 441 | * @return string Returns the password |
434 | 442 | */ |
435 | 443 | function _createPronounceable($length) |
@@ -475,6 +483,8 @@ discard block |
||
475 | 483 | * @param string Character which could be use in the |
476 | 484 | * unpronounceable password ex : 'ABCDEFG' |
477 | 485 | * or numeric, alphabetical or alphanumeric. |
486 | + * @param integer $length |
|
487 | + * @param string $chars |
|
478 | 488 | * @return string Returns the password |
479 | 489 | */ |
480 | 490 | function _createUnpronounceable($length, $chars) |
@@ -115,7 +115,7 @@ |
||
115 | 115 | * Setup db connection. |
116 | 116 | * Based on defined options, this method connects to db defined in {@link $dsn} |
117 | 117 | * and creates a {@link $table} table if {@link $createTable} is true. |
118 | - * @return boolean true if all ok. |
|
118 | + * @return boolean|null true if all ok. |
|
119 | 119 | */ |
120 | 120 | function activateOptions() |
121 | 121 | { |
@@ -151,10 +151,16 @@ |
||
151 | 151 | return $this->append; |
152 | 152 | } |
153 | 153 | |
154 | + /** |
|
155 | + * @param boolean $flag |
|
156 | + */ |
|
154 | 157 | public function setAppend($flag) { |
155 | 158 | $this->append = LoggerOptionConverter::toBoolean($flag, true); |
156 | 159 | } |
157 | 160 | |
161 | + /** |
|
162 | + * @param string $fileName |
|
163 | + */ |
|
158 | 164 | public function setFileName($fileName) { |
159 | 165 | $this->fileName = $fileName; |
160 | 166 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | |
93 | 93 | /** |
94 | 94 | * Returns the value of the MaxBackupIndex option. |
95 | - * @return integer |
|
95 | + * @return string |
|
96 | 96 | */ |
97 | 97 | private function getExpandedFileName() { |
98 | 98 | return $this->expandedFileName; |
@@ -225,6 +225,7 @@ |
||
225 | 225 | |
226 | 226 | /** |
227 | 227 | * @param mixed |
228 | + * @param boolean $flag |
|
228 | 229 | */ |
229 | 230 | public function setUseXml($flag) { |
230 | 231 | $this->useXml = LoggerOptionConverter::toBoolean($flag, $this->getUseXml()); |
@@ -279,7 +279,6 @@ |
||
279 | 279 | * |
280 | 280 | * @param string $url The name of the configuration file where the |
281 | 281 | * configuration information is stored. |
282 | - * @param LoggerHierarchy $repository the repository to apply the configuration |
|
283 | 282 | */ |
284 | 283 | public function configure(LoggerHierarchy $hierarchy, $url = '') { |
285 | 284 | $properties = @parse_ini_file($url); |
@@ -237,6 +237,9 @@ |
||
237 | 237 | return $this->head; |
238 | 238 | } |
239 | 239 | |
240 | + /** |
|
241 | + * @param string $c |
|
242 | + */ |
|
240 | 243 | public function finalizeConverter($c) { |
241 | 244 | $pc = null; |
242 | 245 | switch($c) { |
@@ -169,6 +169,7 @@ |
||
169 | 169 | * Set the <b>ConversionPattern</b> option. This is the string which |
170 | 170 | * controls formatting and consists of a mix of literal content and |
171 | 171 | * conversion specifiers. |
172 | + * @param string $conversionPattern |
|
172 | 173 | */ |
173 | 174 | public function setConversionPattern($conversionPattern) { |
174 | 175 | $this->pattern = $conversionPattern; |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | /** |
241 | 241 | * Log a message object with the ERROR level including the caller. |
242 | 242 | * |
243 | - * @param mixed $message message |
|
243 | + * @param string $message message |
|
244 | 244 | * @param mixed $caller caller object or caller string id |
245 | 245 | */ |
246 | 246 | public function error($message, $caller = null) { |
@@ -286,6 +286,7 @@ discard block |
||
286 | 286 | * Check whether this category is enabled for a given Level passed as parameter. |
287 | 287 | * |
288 | 288 | * @param LoggerLevel level |
289 | + * @param LoggerLevel $level |
|
289 | 290 | * @return boolean |
290 | 291 | */ |
291 | 292 | public function isEnabledFor($level) { |
@@ -326,6 +327,9 @@ discard block |
||
326 | 327 | } |
327 | 328 | } |
328 | 329 | |
330 | + /** |
|
331 | + * @param LoggerLevel $level |
|
332 | + */ |
|
329 | 333 | private function logLevel($message, $level, $caller = null) { |
330 | 334 | if($level->isGreaterOrEqual($this->getEffectiveLevel())) { |
331 | 335 | $this->forcedLog($this->fqcn, $caller, $level, $message); |
@@ -338,7 +342,6 @@ discard block |
||
338 | 342 | * Get a Logger by name (Delegate to {@link Logger}) |
339 | 343 | * |
340 | 344 | * @param string $name logger name |
341 | - * @param LoggerFactory $factory a {@link LoggerFactory} instance or null |
|
342 | 345 | * @return Logger |
343 | 346 | * @static |
344 | 347 | */ |
@@ -474,7 +477,7 @@ discard block |
||
474 | 477 | * Clears all logger definitions |
475 | 478 | * |
476 | 479 | * @static |
477 | - * @return boolean |
|
480 | + * @return boolean|null |
|
478 | 481 | */ |
479 | 482 | public static function clear() { |
480 | 483 | return self::getHierarchy()->clear(); |
@@ -484,7 +487,7 @@ discard block |
||
484 | 487 | * Destroy configurations for logger definitions |
485 | 488 | * |
486 | 489 | * @static |
487 | - * @return boolean |
|
490 | + * @return boolean|null |
|
488 | 491 | */ |
489 | 492 | public static function resetConfiguration() { |
490 | 493 | $result = self::getHierarchy()->resetConfiguration(); |
@@ -592,7 +595,7 @@ discard block |
||
592 | 595 | |
593 | 596 | /** |
594 | 597 | * Returns the current configurator |
595 | - * @return the configurator |
|
598 | + * @return string configurator |
|
596 | 599 | */ |
597 | 600 | public static function getConfigurationClass() { |
598 | 601 | return self::$configurationClass; |
@@ -600,7 +603,7 @@ discard block |
||
600 | 603 | |
601 | 604 | /** |
602 | 605 | * Returns the current configuration file |
603 | - * @return the configuration file |
|
606 | + * @return null|string configuration file |
|
604 | 607 | */ |
605 | 608 | public static function getConfigurationFile() { |
606 | 609 | return self::$configurationFile; |