Ejemplo n.º 1
0
 public function positiveConversionExamples()
 {
     $colorNames = Badge::getColorNamesAvailable();
     $data = array();
     foreach ($colorNames as $colorName) {
         $data[] = array($colorName, null);
     }
     return $data;
 }
Ejemplo n.º 2
0
 protected function configure()
 {
     $this->init();
     $this->setName('generate')->setDescription('Create a badge you are a Poser.')->addArgument('subject', InputArgument::OPTIONAL, 'The subject eg. `license`')->addArgument('status', InputArgument::OPTIONAL, 'The status example `MIT`')->addArgument('color', InputArgument::OPTIONAL, 'The hexadecimal color eg. `97CA00` or the name [' . join(', ', Badge::getColorNamesAvailable()) . ']')->addOption('format', 'f', InputOption::VALUE_REQUIRED, 'The format of the image eg. `svg`, formats available [' . join(', ', $this->poser->validFormats()) . ']')->addOption('path', 'p', InputOption::VALUE_REQUIRED, 'The path of the file to save the create eg. `/tmp/license.svg`');
 }