@@ -154,7 +154,7 @@ |
||
154 | 154 | * Returns true if valid, of not it returns a string with information about the reason |
155 | 155 | * |
156 | 156 | * @param string $username |
157 | - * @return boolean string |
|
157 | + * @return string|boolean string |
|
158 | 158 | */ |
159 | 159 | private function isUsernameValid($username) { |
160 | 160 | if (strlen($username) <= 2) |
@@ -104,6 +104,9 @@ |
||
104 | 104 | return $usernameDeleted; |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param string $newContent |
|
109 | + */ |
|
107 | 110 | private function replaceHtPasswdContent($newContent) { |
108 | 111 | $fp = fopen($this->filename, 'w'); |
109 | 112 | fwrite($fp, $newContent); |