Completed
Pull Request — master (#16)
by Rougin
15:32
created
src/Common/DataGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Commands/MakeViewCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Commands/MakeControllerCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Commands/MakeModelCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@
 block discarded – undo
49 49
         $contents  = (new DataGenerator($this->describe, $input))->generate();
50 50
         $converter = $this->renderer->getExtension('CaseExtension');
51 51
         $filename  = $converter->toUnderscoreCase($input->getArgument('table'));
52
-        $rendered  = $this->renderer->render($this->getModelType() . '.twig', $contents);
52
+        $rendered  = $this->renderer->render($this->getModelType().'.twig', $contents);
53 53
 
54
-        $this->filesystem->write(ucfirst(singular($filename)) . '.php', $rendered);
54
+        $this->filesystem->write(ucfirst(singular($filename)).'.php', $rendered);
55 55
 
56 56
         $output->writeln('<info>Model created successfully!</info>');
57 57
     }
Please login to merge, or discard this patch.
bin/combustor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.