1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-12 08:04:02 +02:00

Fix docblocks

This commit is contained in:
George Mponos
2018-12-10 21:07:13 +02:00
parent d91c4e5c88
commit c99682466f
3 changed files with 2 additions and 8 deletions

View File

@@ -50,7 +50,6 @@ class HtmlFormatter extends NormalizerFormatter
* @param string $th Row header content * @param string $th Row header content
* @param string $td Row standard cell content * @param string $td Row standard cell content
* @param bool $escapeTd false if td content must not be html escaped * @param bool $escapeTd false if td content must not be html escaped
* @return string
*/ */
protected function addRow(string $th, string $td = ' ', bool $escapeTd = true): string protected function addRow(string $th, string $td = ' ', bool $escapeTd = true): string
{ {
@@ -69,7 +68,7 @@ class HtmlFormatter extends NormalizerFormatter
* @param int $level Error level * @param int $level Error level
* @return string * @return string
*/ */
protected function addTitle(string $title, int $level) protected function addTitle(string $title, int $level): string
{ {
$title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8'); $title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8');

View File

@@ -38,9 +38,6 @@ class UidProcessor implements ProcessorInterface, ResettableInterface
return $record; return $record;
} }
/**
* @return string
*/
public function getUid(): string public function getUid(): string
{ {
return $this->uid; return $this->uid;
@@ -51,7 +48,7 @@ class UidProcessor implements ProcessorInterface, ResettableInterface
$this->uid = $this->generateUid(strlen($this->uid)); $this->uid = $this->generateUid(strlen($this->uid));
} }
private function generateUid($length) private function generateUid(int $length): string
{ {
return substr(bin2hex(random_bytes((int) ceil($length / 2))), 0, $length); return substr(bin2hex(random_bytes((int) ceil($length / 2))), 0, $length);
} }

View File

@@ -28,8 +28,6 @@ namespace Monolog;
interface ResettableInterface interface ResettableInterface
{ {
/** /**
* Function that executes the resetting of a Processor
*
* @return void * @return void
*/ */
public function reset(); public function reset();