@@ -83,7 +83,7 @@ |
||
| 83 | 83 | $tableInformation = $this->describe->getTable($tableName); |
| 84 | 84 | |
| 85 | 85 | if (empty($tableInformation)) { |
| 86 | - throw new TableNotFoundException('"' . $tableName . '" table not found in database!'); |
|
| 86 | + throw new TableNotFoundException('"'.$tableName.'" table not found in database!'); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | return $tableInformation; |
@@ -57,10 +57,10 @@ |
||
| 57 | 57 | $index = $this->renderer->render('Views/Index.twig', $contents); |
| 58 | 58 | $show = $this->renderer->render('Views/Show.twig', $contents); |
| 59 | 59 | |
| 60 | - $this->filesystem->write($directory . '/create.php', $create); |
|
| 61 | - $this->filesystem->write($directory . '/edit.php', $edit); |
|
| 62 | - $this->filesystem->write($directory . '/index.php', $index); |
|
| 63 | - $this->filesystem->write($directory . '/show.php', $show); |
|
| 60 | + $this->filesystem->write($directory.'/create.php', $create); |
|
| 61 | + $this->filesystem->write($directory.'/edit.php', $edit); |
|
| 62 | + $this->filesystem->write($directory.'/index.php', $index); |
|
| 63 | + $this->filesystem->write($directory.'/show.php', $show); |
|
| 64 | 64 | |
| 65 | 65 | $output->writeln('<info>Views created successfully!</info>'); |
| 66 | 66 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $filename = $converter->toUnderscoreCase($input->getArgument('table')); |
| 52 | 52 | $rendered = $this->renderer->render('Controller.twig', $contents); |
| 53 | 53 | |
| 54 | - $this->filesystem->write(ucfirst(plural($filename)) . '.php', $rendered); |
|
| 54 | + $this->filesystem->write(ucfirst(plural($filename)).'.php', $rendered); |
|
| 55 | 55 | |
| 56 | 56 | $output->writeln('<info>Controller created successfully!</info>'); |
| 57 | 57 | } |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | // Include the Composer Autoloader |
| 4 | 4 | require 'vendor/autoload.php'; |
| 5 | 5 | |
| 6 | -$codeigniter = Rougin\SparkPlug\Instance::create(__DIR__ . '/../build'); // test |
|
| 6 | +$codeigniter = Rougin\SparkPlug\Instance::create(__DIR__.'/../build'); // test |
|
| 7 | 7 | |
| 8 | 8 | $codeigniter->load->helper('inflector')->database(); |
| 9 | 9 | |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | * Executes the current command. |
| 38 | 38 | * |
| 39 | 39 | * @param \Symfony\Component\Console\Input\InputInterface $input |
| 40 | - * @param \Symfony\Component\Console\Input\OutputInterface $output |
|
| 40 | + * @param OutputInterface $output |
|
| 41 | 41 | * @return void |
| 42 | 42 | */ |
| 43 | 43 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -57,9 +57,9 @@ |
||
| 57 | 57 | $contents = (new DataGenerator($this->describe, $input))->generate(); |
| 58 | 58 | $converter = $this->renderer->getExtension('CaseExtension'); |
| 59 | 59 | $filename = $converter->toUnderscoreCase($input->getArgument('table')); |
| 60 | - $rendered = $this->renderer->render($modelType . '.twig', $contents); |
|
| 60 | + $rendered = $this->renderer->render($modelType.'.twig', $contents); |
|
| 61 | 61 | |
| 62 | - $this->filesystem->write(ucfirst(singular($filename)) . '.php', $rendered); |
|
| 62 | + $this->filesystem->write(ucfirst(singular($filename)).'.php', $rendered); |
|
| 63 | 63 | |
| 64 | 64 | $output->writeln('<info>Model created successfully!</info>'); |
| 65 | 65 | } |