@@ -175,6 +175,9 @@ |
||
| 175 | 175 | return 'https://github.com/'.$username.'/'.$this->ModuleName; |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | + /** |
|
| 179 | + * @param string|null $directory |
|
| 180 | + */ |
|
| 178 | 181 | protected function IsDirGitRepo ($directory) { |
| 179 | 182 | return file_exists($directory."/.git"); |
| 180 | 183 | } |
@@ -317,6 +317,9 @@ discard block |
||
| 317 | 317 | |
| 318 | 318 | } |
| 319 | 319 | |
| 320 | + /** |
|
| 321 | + * @param string $filename |
|
| 322 | + */ |
|
| 320 | 323 | private function checkFile($module, $filename) { |
| 321 | 324 | $folder = GitHubModule::Config()->get('absolute_temp_folder'); |
| 322 | 325 | return file_exists($folder.'/'.$module.'/'.$filename); |
@@ -326,6 +329,9 @@ discard block |
||
| 326 | 329 | return $this->checkFile($module, "README.MD"); |
| 327 | 330 | } |
| 328 | 331 | |
| 332 | + /** |
|
| 333 | + * @param string $directory |
|
| 334 | + */ |
|
| 329 | 335 | private function checkDirExcludedWords($directory, $wordArray) { |
| 330 | 336 | $filesAndFolders = scandir ($directory); |
| 331 | 337 | |
@@ -355,6 +361,9 @@ discard block |
||
| 355 | 361 | return $problem_files; |
| 356 | 362 | } |
| 357 | 363 | |
| 364 | + /** |
|
| 365 | + * @param string $fileName |
|
| 366 | + */ |
|
| 358 | 367 | private function checkFileExcludedWords($fileName, $wordArray) { |
| 359 | 368 | |
| 360 | 369 | |