@@ -180,6 +180,9 @@ |
||
| 180 | 180 | return 'https://github.com/'.$username.'/'.$this->ModuleName; |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | + /** |
|
| 184 | + * @param string|null $directory |
|
| 185 | + */ |
|
| 183 | 186 | protected function IsDirGitRepo($directory) |
| 184 | 187 | { |
| 185 | 188 | return file_exists($directory."/.git"); |
@@ -322,6 +322,9 @@ discard block |
||
| 322 | 322 | $configYml = ConfigYML::create($module)->reWrite(); |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | + /** |
|
| 326 | + * @param string $filename |
|
| 327 | + */ |
|
| 325 | 328 | private function checkFile($module, $filename) |
| 326 | 329 | { |
| 327 | 330 | $folder = GitHubModule::Config()->get('absolute_temp_folder'); |
@@ -333,6 +336,9 @@ discard block |
||
| 333 | 336 | return $this->checkFile($module, "README.MD"); |
| 334 | 337 | } |
| 335 | 338 | |
| 339 | + /** |
|
| 340 | + * @param string $directory |
|
| 341 | + */ |
|
| 336 | 342 | private function checkDirExcludedWords($directory, $wordArray) |
| 337 | 343 | { |
| 338 | 344 | $filesAndFolders = scandir($directory); |
@@ -361,6 +367,9 @@ discard block |
||
| 361 | 367 | return $problem_files; |
| 362 | 368 | } |
| 363 | 369 | |
| 370 | + /** |
|
| 371 | + * @param string $fileName |
|
| 372 | + */ |
|
| 364 | 373 | private function checkFileExcludedWords($fileName, $wordArray) |
| 365 | 374 | { |
| 366 | 375 | $matchedWords = array(); |