|
@@ 236-243 (lines=8) @@
|
| 233 |
|
//Update Repository description |
| 234 |
|
//$moduleObject->updateGitHubInfo(array()); |
| 235 |
|
|
| 236 |
|
if( ! $moduleObject->add()) { |
| 237 |
|
|
| 238 |
|
$msg = "Could not add files module to Repo"; |
| 239 |
|
GeneralMethods::outputToScreen ($msg); |
| 240 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 241 |
|
continue; |
| 242 |
|
|
| 243 |
|
} |
| 244 |
|
if( ! $moduleObject->commit()) { |
| 245 |
|
$msg = "Could not commit files to Repo"; |
| 246 |
|
GeneralMethods::outputToScreen ($msg); |
|
@@ 244-249 (lines=6) @@
|
| 241 |
|
continue; |
| 242 |
|
|
| 243 |
|
} |
| 244 |
|
if( ! $moduleObject->commit()) { |
| 245 |
|
$msg = "Could not commit files to Repo"; |
| 246 |
|
GeneralMethods::outputToScreen ($msg); |
| 247 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 248 |
|
continue; |
| 249 |
|
} |
| 250 |
|
|
| 251 |
|
if( ! $moduleObject->push()) { |
| 252 |
|
$msg = "Could not push files to Repo"; |
|
@@ 251-256 (lines=6) @@
|
| 248 |
|
continue; |
| 249 |
|
} |
| 250 |
|
|
| 251 |
|
if( ! $moduleObject->push()) { |
| 252 |
|
$msg = "Could not push files to Repo"; |
| 253 |
|
GeneralMethods::outputToScreen ($msg); |
| 254 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 255 |
|
continue; |
| 256 |
|
} |
| 257 |
|
if( ! $moduleObject->removeClone()) |
| 258 |
|
{ |
| 259 |
|
$msg = "Could not remove local copy of repo"; |
|
@@ 257-262 (lines=6) @@
|
| 254 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 255 |
|
continue; |
| 256 |
|
} |
| 257 |
|
if( ! $moduleObject->removeClone()) |
| 258 |
|
{ |
| 259 |
|
$msg = "Could not remove local copy of repo"; |
| 260 |
|
GeneralMethods::outputToScreen ($msg); |
| 261 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 262 |
|
} |
| 263 |
|
|
| 264 |
|
$moduleObject->addRepoToScrutinzer(); |
| 265 |
|
|
|
@@ 408-414 (lines=7) @@
|
| 405 |
|
|
| 406 |
|
|
| 407 |
|
$fileContent = file_get_contents($fileName); |
| 408 |
|
if (!$fileContent) { |
| 409 |
|
|
| 410 |
|
$msg = "Could not open $fileName to check for excluded words"; |
| 411 |
|
|
| 412 |
|
GeneralMethods::outputToScreen ($msg); |
| 413 |
|
UpdateModules::$unsolvedItems[$moduleObject->ModuleName] = $msg; |
| 414 |
|
} |
| 415 |
|
|
| 416 |
|
foreach ($wordArray as $word) { |
| 417 |
|
|