|
@@ 217-222 (lines=6) @@
|
| 214 |
|
//Update Repository description |
| 215 |
|
//$moduleObject->updateGitHubInfo(array()); |
| 216 |
|
|
| 217 |
|
if (! $moduleObject->add()) { |
| 218 |
|
$msg = "Could not add files module to Repo"; |
| 219 |
|
GeneralMethods::output_to_screen($msg); |
| 220 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 221 |
|
return; |
| 222 |
|
} |
| 223 |
|
if (! $moduleObject->commit()) { |
| 224 |
|
$msg = "Could not commit files to Repo"; |
| 225 |
|
GeneralMethods::output_to_screen($msg); |
|
@@ 223-228 (lines=6) @@
|
| 220 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 221 |
|
return; |
| 222 |
|
} |
| 223 |
|
if (! $moduleObject->commit()) { |
| 224 |
|
$msg = "Could not commit files to Repo"; |
| 225 |
|
GeneralMethods::output_to_screen($msg); |
| 226 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 227 |
|
return; |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
if (! $moduleObject->push()) { |
| 231 |
|
$msg = "Could not push files to Repo"; |
|
@@ 230-235 (lines=6) @@
|
| 227 |
|
return; |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
if (! $moduleObject->push()) { |
| 231 |
|
$msg = "Could not push files to Repo"; |
| 232 |
|
GeneralMethods::output_to_screen($msg); |
| 233 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 234 |
|
return; |
| 235 |
|
} |
| 236 |
|
if (! $moduleObject->removeClone()) { |
| 237 |
|
$msg = "Could not remove local copy of repo"; |
| 238 |
|
GeneralMethods::output_to_screen($msg); |
|
@@ 236-240 (lines=5) @@
|
| 233 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 234 |
|
return; |
| 235 |
|
} |
| 236 |
|
if (! $moduleObject->removeClone()) { |
| 237 |
|
$msg = "Could not remove local copy of repo"; |
| 238 |
|
GeneralMethods::output_to_screen($msg); |
| 239 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 240 |
|
} |
| 241 |
|
|
| 242 |
|
$addRepoToScrutinzer = $this->Config()->get('add_to_scrutinizer'); |
| 243 |
|
if ($addRepoToScrutinzer) { |
|
@@ 377-382 (lines=6) @@
|
| 374 |
|
|
| 375 |
|
|
| 376 |
|
$fileContent = file_get_contents($fileName); |
| 377 |
|
if (!$fileContent) { |
| 378 |
|
$msg = "Could not open $fileName to check for excluded words"; |
| 379 |
|
|
| 380 |
|
GeneralMethods::output_to_screen($msg); |
| 381 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 382 |
|
} |
| 383 |
|
|
| 384 |
|
foreach ($wordArray as $word) { |
| 385 |
|
$matches = array(); |