@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * Returns true if valid, of not it returns a String with information about the reason |
153 | 153 | * |
154 | 154 | * @param string $username |
155 | - * @return boolean string |
|
155 | + * @return string|boolean string |
|
156 | 156 | */ |
157 | 157 | private function isUsernameValid($username) { |
158 | 158 | if (strlen ( $username ) <= 2) |
@@ -167,7 +167,6 @@ discard block |
||
167 | 167 | /** |
168 | 168 | * Returns true if valid, of not it returns a String with information about the reason |
169 | 169 | * |
170 | - * @param string $username |
|
171 | 170 | * @return boolean string |
172 | 171 | */ |
173 | 172 | private function isPasswordValid($password) { |
@@ -108,6 +108,9 @@ |
||
108 | 108 | return $usernameDeleted; |
109 | 109 | } |
110 | 110 | |
111 | + /** |
|
112 | + * @param string $newContent |
|
113 | + */ |
|
111 | 114 | private function replaceHtPasswdContent($newContent) { |
112 | 115 | // file_put_contents ( $this->filename, $newContent ); |
113 | 116 | $fp = fopen ( $this->filename, 'w' ); |
@@ -140,6 +140,9 @@ |
||
140 | 140 | $this->assertFalse($service->userExists('not Existant'), "User 'not Existant' should not exist"); |
141 | 141 | } |
142 | 142 | |
143 | + /** |
|
144 | + * @param string $filename |
|
145 | + */ |
|
143 | 146 | protected function getNumberOfLines($filename) { |
144 | 147 | $cont = file_get_contents($filename); |
145 | 148 | $lines = explode("\n", $cont); |