small fixes

This commit is contained in:
Orklah
2020-02-20 21:26:56 +01:00
parent 45e5409b3f
commit 43288974a5
23 changed files with 62 additions and 55 deletions
+2 -8
View File
@@ -98,10 +98,7 @@ class Serializer
return $comment . $indent . ' */';
}
/**
* @return mixed
*/
private function removeTrailingSpaces(string $indent, string $text)
private function removeTrailingSpaces(string $indent, string $text) : string
{
return str_replace(
sprintf("\n%s * \n", $indent),
@@ -110,10 +107,7 @@ class Serializer
);
}
/**
* @return mixed
*/
private function addAsterisksForEachLine(string $indent, string $text)
private function addAsterisksForEachLine(string $indent, string $text) : string
{
return str_replace(
"\n",