@@ -82,12 +82,18 @@ public function __construct($output = null, string $charset = null, int $flags =
8282 $ this ->styles = static ::$ themes ['dark ' ] ?? self ::$ themes ['dark ' ];
8383 }
8484
85+ /**
86+ * @return void
87+ */
8588 public function setStyles (array $ styles )
8689 {
8790 $ this ->headerIsDumped = false ;
8891 $ this ->styles = $ styles + $ this ->styles ;
8992 }
9093
94+ /**
95+ * @return void
96+ */
9197 public function setTheme (string $ themeName )
9298 {
9399 if (!isset (static ::$ themes [$ themeName ])) {
@@ -101,6 +107,8 @@ public function setTheme(string $themeName)
101107 * Configures display options.
102108 *
103109 * @param array $displayOptions A map of display options to customize the behavior
110+ *
111+ * @return void
104112 */
105113 public function setDisplayOptions (array $ displayOptions )
106114 {
@@ -110,6 +118,8 @@ public function setDisplayOptions(array $displayOptions)
110118
111119 /**
112120 * Sets an HTML header that will be dumped once in the output stream.
121+ *
122+ * @return void
113123 */
114124 public function setDumpHeader (?string $ header )
115125 {
@@ -118,6 +128,8 @@ public function setDumpHeader(?string $header)
118128
119129 /**
120130 * Sets an HTML prefix and suffix that will encapse every single dump.
131+ *
132+ * @return void
121133 */
122134 public function setDumpBoundaries (string $ prefix , string $ suffix )
123135 {
@@ -136,6 +148,8 @@ public function dump(Data $data, $output = null, array $extraDisplayOptions = []
136148
137149 /**
138150 * Dumps the HTML header.
151+ *
152+ * @return string
139153 */
140154 protected function getDumpHeader ()
141155 {
@@ -773,6 +787,9 @@ function showCurrent(state)
773787 return $ this ->dumpHeader = preg_replace ('/\s+/ ' , ' ' , $ line ).'</style> ' .$ this ->dumpHeader ;
774788 }
775789
790+ /**
791+ * @return void
792+ */
776793 public function dumpString (Cursor $ cursor , string $ str , bool $ bin , int $ cut )
777794 {
778795 if ('' === $ str && isset ($ cursor ->attr ['img-data ' ], $ cursor ->attr ['content-type ' ])) {
@@ -788,6 +805,9 @@ public function dumpString(Cursor $cursor, string $str, bool $bin, int $cut)
788805 }
789806 }
790807
808+ /**
809+ * @return void
810+ */
791811 public function enterHash (Cursor $ cursor , int $ type , string |int |null $ class , bool $ hasChild )
792812 {
793813 if (Cursor::HASH_OBJECT === $ type ) {
@@ -816,6 +836,9 @@ public function enterHash(Cursor $cursor, int $type, string|int|null $class, boo
816836 }
817837 }
818838
839+ /**
840+ * @return void
841+ */
819842 public function leaveHash (Cursor $ cursor , int $ type , string |int |null $ class , bool $ hasChild , int $ cut )
820843 {
821844 $ this ->dumpEllipsis ($ cursor , $ hasChild , $ cut );
@@ -923,6 +946,9 @@ protected function style(string $style, string $value, array $attr = []): string
923946 return $ v ;
924947 }
925948
949+ /**
950+ * @return void
951+ */
926952 protected function dumpLine (int $ depth , bool $ endOfValue = false )
927953 {
928954 if (-1 === $ this ->lastDepth ) {
@@ -950,7 +976,7 @@ protected function dumpLine(int $depth, bool $endOfValue = false)
950976 AbstractDumper::dumpLine ($ depth );
951977 }
952978
953- private function getSourceLink (string $ file , int $ line )
979+ private function getSourceLink (string $ file , int $ line ): string | false
954980 {
955981 $ options = $ this ->extraDisplayOptions + $ this ->displayOptions ;
956982
0 commit comments