فهرست منبع

Fix docblocks

George Mponos 7 سال پیش
والد
کامیت
c99682466f
3فایلهای تغییر یافته به همراه2 افزوده شده و 8 حذف شده
  1. 1 2
      src/Monolog/Formatter/HtmlFormatter.php
  2. 1 4
      src/Monolog/Processor/UidProcessor.php
  3. 0 2
      src/Monolog/ResettableInterface.php

+ 1 - 2
src/Monolog/Formatter/HtmlFormatter.php

@@ -50,7 +50,6 @@ class HtmlFormatter extends NormalizerFormatter
      * @param string $th       Row header content
      * @param string $td       Row standard cell content
      * @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
     {
@@ -69,7 +68,7 @@ class HtmlFormatter extends NormalizerFormatter
      * @param  int    $level Error level
      * @return string
      */
-    protected function addTitle(string $title, int $level)
+    protected function addTitle(string $title, int $level): string
     {
         $title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8');
 

+ 1 - 4
src/Monolog/Processor/UidProcessor.php

@@ -38,9 +38,6 @@ class UidProcessor implements ProcessorInterface, ResettableInterface
         return $record;
     }
 
-    /**
-     * @return string
-     */
     public function getUid(): string
     {
         return $this->uid;
@@ -51,7 +48,7 @@ class UidProcessor implements ProcessorInterface, ResettableInterface
         $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);
     }

+ 0 - 2
src/Monolog/ResettableInterface.php

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