|
@@ 533-538 (lines=6) @@
|
| 530 |
|
return $name === null && !empty($pkgName) ? $pkgName : $name; |
| 531 |
|
} |
| 532 |
|
|
| 533 |
|
private function getPackageDescription() { |
| 534 |
|
$input = $this->io->getInput(); |
| 535 |
|
$desc = $input->getOption('description'); |
| 536 |
|
$pkgDesc = $this->package->getDescription(); |
| 537 |
|
return $desc === null && !empty($pkgDesc) ? $pkgDesc : $desc; |
| 538 |
|
} |
| 539 |
|
|
| 540 |
|
private function getPackageLicense() { |
| 541 |
|
$input = $this->io->getInput(); |
|
@@ 540-545 (lines=6) @@
|
| 537 |
|
return $desc === null && !empty($pkgDesc) ? $pkgDesc : $desc; |
| 538 |
|
} |
| 539 |
|
|
| 540 |
|
private function getPackageLicense() { |
| 541 |
|
$input = $this->io->getInput(); |
| 542 |
|
$license = $input->getOption('license'); |
| 543 |
|
$pkgLicense = $this->package->getLicense(); |
| 544 |
|
return $license === null && !empty($pkgLicense) ? $pkgLicense : $license; |
| 545 |
|
} |
| 546 |
|
|
| 547 |
|
private function hasAutoload() { |
| 548 |
|
return NamespaceResolver::getNamespace('src', $this->package); |
|
@@ 517-524 (lines=8) @@
|
| 514 |
|
return $classname; |
| 515 |
|
} |
| 516 |
|
|
| 517 |
|
private function getPackageType() { |
| 518 |
|
$input = $this->io->getInput(); |
| 519 |
|
$type = $input->getOption('type'); |
| 520 |
|
$pkgType = $this->package->getType(); |
| 521 |
|
return $type === null && !empty($pkgType) |
| 522 |
|
? str_replace('keeko-', '', $pkgType) |
| 523 |
|
: $type; |
| 524 |
|
} |
| 525 |
|
|
| 526 |
|
private function getPackageName() { |
| 527 |
|
$input = $this->io->getInput(); |
|
@@ 526-531 (lines=6) @@
|
| 523 |
|
: $type; |
| 524 |
|
} |
| 525 |
|
|
| 526 |
|
private function getPackageName() { |
| 527 |
|
$input = $this->io->getInput(); |
| 528 |
|
$name = $input->getOption('name'); |
| 529 |
|
$pkgName = $this->package->getFullName(); |
| 530 |
|
return $name === null && !empty($pkgName) ? $pkgName : $name; |
| 531 |
|
} |
| 532 |
|
|
| 533 |
|
private function getPackageDescription() { |
| 534 |
|
$input = $this->io->getInput(); |