Пример #1
0
 /**
  * Formats a display label for the given scaffold location
  *
  * @param ScaffoldLocation $location
  *
  * @return string
  */
 protected function formatLabel(ScaffoldLocation $location)
 {
     // Default name formatting
     $name = $location->getName() . str_repeat(' ', 50 - strlen($location->getName()));
     // If end-user has selected to see all the scaffolds,
     // then it is very useful to include the vendor and package
     if ($this->input->getOption('show-all') == true) {
         $name = trim($name) . ' (' . $location->getVendor() . '/' . $location->getPackage() . ')';
         $name = $name . str_repeat(' ', 50 - strlen($name));
     }
     // Return the label
     return $name . $location->getDescription();
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function unregister(ScaffoldLocation $location)
 {
     return $this->remove($location->hash());
 }