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