@@ -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 | } |
@@ -360,12 +360,18 @@ discard block |
||
| 360 | 360 | |
| 361 | 361 | } |
| 362 | 362 | |
| 363 | + /** |
|
| 364 | + * @param DataObject $module |
|
| 365 | + */ |
|
| 363 | 366 | protected function checkConfigYML($module) |
| 364 | 367 | { |
| 365 | 368 | $configYml = ConfigYML::create($module)->reWrite(); |
| 366 | 369 | |
| 367 | 370 | } |
| 368 | 371 | |
| 372 | + /** |
|
| 373 | + * @param string $filename |
|
| 374 | + */ |
|
| 369 | 375 | private function checkFile($module, $filename) { |
| 370 | 376 | $folder = GitHubModule::Config()->get('absolute_temp_folder'); |
| 371 | 377 | return file_exists($folder.'/'.$module.'/'.$filename); |
@@ -375,6 +381,9 @@ discard block |
||
| 375 | 381 | return $this->checkFile($module, "README.MD"); |
| 376 | 382 | } |
| 377 | 383 | |
| 384 | + /** |
|
| 385 | + * @param string $directory |
|
| 386 | + */ |
|
| 378 | 387 | private function checkDirExcludedWords($directory, $wordArray) { |
| 379 | 388 | $filesAndFolders = scandir ($directory); |
| 380 | 389 | |
@@ -404,6 +413,9 @@ discard block |
||
| 404 | 413 | return $problem_files; |
| 405 | 414 | } |
| 406 | 415 | |
| 416 | + /** |
|
| 417 | + * @param string $fileName |
|
| 418 | + */ |
|
| 407 | 419 | private function checkFileExcludedWords($fileName, $wordArray) { |
| 408 | 420 | |
| 409 | 421 | |
@@ -442,6 +454,9 @@ discard block |
||
| 442 | 454 | |
| 443 | 455 | } |
| 444 | 456 | |
| 457 | + /** |
|
| 458 | + * @param DataObject $moduleObject |
|
| 459 | + */ |
|
| 445 | 460 | private function checkUpdateTag($moduleObject) { |
| 446 | 461 | |
| 447 | 462 | $tagDelayString = $this->Config()->get('tag_delay'); |
@@ -530,6 +545,9 @@ discard block |
||
| 530 | 545 | return $newTagString; |
| 531 | 546 | } |
| 532 | 547 | |
| 548 | + /** |
|
| 549 | + * @param DataObject $moduleObject |
|
| 550 | + */ |
|
| 533 | 551 | protected function moveOldReadMe($moduleObject) { |
| 534 | 552 | $tempDir = GitHubModule::Config()->get('absolute_temp_folder'); |
| 535 | 553 | $oldReadMe = $tempDir . '/' . $moduleObject->ModuleName . '/' .'README.md'; |