Completed
Push — master ( f9982c...f3af33 )
by Rougin
03:48
created
src/Commands/CreateModelCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $fileName = ucfirst($input->getArgument('name'));
86 86
 
87
-        $path = APPPATH . 'models' . DIRECTORY_SEPARATOR . $fileName . '.php';
87
+        $path = APPPATH.'models'.DIRECTORY_SEPARATOR.$fileName.'.php';
88 88
 
89 89
         $fileInformation = [
90 90
             'name' => $fileName,
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         if ($validator->fails()) {
103 103
             $message = $validator->getMessage();
104 104
 
105
-            return $output->writeln('<error>' . $message . '</error>');
105
+            return $output->writeln('<error>'.$message.'</error>');
106 106
         }
107 107
 
108 108
         $data = [
@@ -116,12 +116,12 @@  discard block
 block discarded – undo
116 116
 
117 117
         $result = $generator->generate();
118 118
         $model = $this->renderer->render('Model.template', $result);
119
-        $message = 'The model "' . $fileName . '" has been created successfully!';
119
+        $message = 'The model "'.$fileName.'" has been created successfully!';
120 120
 
121 121
         $file = fopen($path, 'wb');
122 122
         file_put_contents($path, $model);
123 123
         fclose($file);
124 124
 
125
-        return $output->writeln('<info>' . $message . '</info>');
125
+        return $output->writeln('<info>'.$message.'</info>');
126 126
     }
127 127
 }
Please login to merge, or discard this patch.
src/Commands/CreateControllerCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             $fileName = ucfirst(Inflector::plural($input->getArgument('name')));
93 93
         }
94 94
 
95
-        $path = APPPATH . 'controllers' . DIRECTORY_SEPARATOR . $fileName . '.php';
95
+        $path = APPPATH.'controllers'.DIRECTORY_SEPARATOR.$fileName.'.php';
96 96
 
97 97
         $fileInformation = [
98 98
             'name' => $fileName,
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         if ($validator->fails()) {
111 111
             $message = $validator->getMessage();
112 112
 
113
-            return $output->writeln('<error>' . $message . '</error>');
113
+            return $output->writeln('<error>'.$message.'</error>');
114 114
         }
115 115
 
116 116
         $data = [
@@ -125,12 +125,12 @@  discard block
 block discarded – undo
125 125
 
126 126
         $result = $generator->generate();
127 127
         $controller = $this->renderer->render('Controller.template', $result);
128
-        $message = 'The controller "' . $fileName . '" has been created successfully!';
128
+        $message = 'The controller "'.$fileName.'" has been created successfully!';
129 129
 
130 130
         $file = fopen($path, 'wb');
131 131
         file_put_contents($path, $controller);
132 132
         fclose($file);
133 133
 
134
-        return $output->writeln('<info>' . $message . '</info>');
134
+        return $output->writeln('<info>'.$message.'</info>');
135 135
     }
136 136
 }
Please login to merge, or discard this patch.
src/Commands/CreateViewCommand.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         if ($validator->fails()) {
87 87
             $message = $validator->getMessage();
88 88
 
89
-            return $output->writeln('<error>' . $message . '</error>');
89
+            return $output->writeln('<error>'.$message.'</error>');
90 90
         }
91 91
 
92 92
         $data = [
@@ -106,26 +106,26 @@  discard block
 block discarded – undo
106 106
             'show' => $this->renderer->render('Views/show.template', $result)
107 107
         ];
108 108
 
109
-        $filePath = APPPATH . 'views/' . $name;
109
+        $filePath = APPPATH.'views/'.$name;
110 110
 
111
-        $file = fopen($filePath . '/create.php', 'wb');
112
-        file_put_contents($filePath . '/create.php', $results['create']);
111
+        $file = fopen($filePath.'/create.php', 'wb');
112
+        file_put_contents($filePath.'/create.php', $results['create']);
113 113
         fclose($file);
114 114
 
115
-        $file = fopen($filePath . '/edit.php', 'wb');
116
-        file_put_contents($filePath . '/edit.php', $results['edit']);
115
+        $file = fopen($filePath.'/edit.php', 'wb');
116
+        file_put_contents($filePath.'/edit.php', $results['edit']);
117 117
         fclose($file);
118 118
 
119
-        $file = fopen($filePath . '/index.php', 'wb');
120
-        file_put_contents($filePath . '/index.php', $results['index']);
119
+        $file = fopen($filePath.'/index.php', 'wb');
120
+        file_put_contents($filePath.'/index.php', $results['index']);
121 121
         fclose($file);
122 122
 
123
-        $file = fopen($filePath . '/show.php', 'wb');
124
-        file_put_contents($filePath . '/show.php', $results['show']);
123
+        $file = fopen($filePath.'/show.php', 'wb');
124
+        file_put_contents($filePath.'/show.php', $results['show']);
125 125
         fclose($file);
126 126
 
127
-        $message = 'The views folder "' . $name . '" has been created successfully!';
127
+        $message = 'The views folder "'.$name.'" has been created successfully!';
128 128
 
129
-        return $output->writeln('<info>' . $message . '</info>');
129
+        return $output->writeln('<info>'.$message.'</info>');
130 130
     }
131 131
 }
Please login to merge, or discard this patch.
src/Common/Commands/RemoveCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
     protected function configure()
49 49
     {
50 50
         $this
51
-            ->setName('remove:' . $this->library)
52
-            ->setDescription('Removes ' . ucfirst($this->library));
51
+            ->setName('remove:'.$this->library)
52
+            ->setDescription('Removes '.ucfirst($this->library));
53 53
     }
54 54
 
55 55
     /**
@@ -63,6 +63,6 @@  discard block
 block discarded – undo
63 63
     {
64 64
         $message = Tools::removeLibrary($this->library);
65 65
 
66
-        return $output->writeln('<info>' . $message . '</info>');
66
+        return $output->writeln('<info>'.$message.'</info>');
67 67
     }
68 68
 }
Please login to merge, or discard this patch.
src/Validator/BaseValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function fails()
65 65
     {
66
-        $hasDoctrine = file_exists(APPPATH . 'libraries/Doctrine.php');
67
-        $hasWildfire = file_exists(APPPATH . 'libraries/Wildfire.php');
66
+        $hasDoctrine = file_exists(APPPATH.'libraries/Doctrine.php');
67
+        $hasWildfire = file_exists(APPPATH.'libraries/Wildfire.php');
68 68
 
69 69
         if ( ! $hasWildfire && ! $hasDoctrine) {
70 70
             $this->message = 'Please install Wildfire or Doctrine!';
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $name = $this->file['name'];
83 83
             $type = $this->file['type'];
84 84
 
85
-            $this->message = 'The "' . $name . '" ' . $type . ' already exists!';
85
+            $this->message = 'The "'.$name.'" '.$type.' already exists!';
86 86
 
87 87
             return true;
88 88
         }
Please login to merge, or discard this patch.
bin/combustor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
 $app->console->setVersion('1.2.0');
14 14
 
15 15
 $app
16
-    ->setTemplatePath(__DIR__ . '/../src/Templates')
17
-    ->setCommandPath(__DIR__ . '/../src/Commands')
16
+    ->setTemplatePath(__DIR__.'/../src/Templates')
17
+    ->setCommandPath(__DIR__.'/../src/Commands')
18 18
     ->setCommandNamespace('Rougin\Combustor\Commands');
19 19
 
20
-$app->injector->delegate('CI_Controller', function () {
20
+$app->injector->delegate('CI_Controller', function() {
21 21
     $sparkPlug = new Rougin\SparkPlug\SparkPlug($GLOBALS, $_SERVER);
22 22
 
23 23
     return $sparkPlug->getCodeIgniter();
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
 $ci = $app->injector->make('CI_Controller');
27 27
 
28
-$app->injector->delegate('Rougin\Describe\Describe', function () use ($ci) {
28
+$app->injector->delegate('Rougin\Describe\Describe', function() use ($ci) {
29 29
     $ci->load->database();
30 30
 
31 31
     $config['default'] = [
Please login to merge, or discard this patch.
src/Validator/ViewValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
      */
38 38
     public function fails()
39 39
     {
40
-        $filePath = APPPATH . 'views/' . $this->name;
40
+        $filePath = APPPATH.'views/'.$this->name;
41 41
 
42 42
         if ( ! @mkdir($filePath, 0775, true)) {
43
-            $this->message = 'The "' . $this->name . '" views folder already exists!';
43
+            $this->message = 'The "'.$this->name.'" views folder already exists!';
44 44
 
45 45
             return true;
46 46
         }
Please login to merge, or discard this patch.
src/Generator/ModelGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
                 array_push($this->data['indexes'], $field);
61 61
 
62
-                $this->data['primaryKeys'][$field] = 'get_' . 
62
+                $this->data['primaryKeys'][$field] = 'get_'. 
63 63
                     $this->describe->getPrimaryKey(
64 64
                         $column->getReferencedTable()
65 65
                     );
Please login to merge, or discard this patch.
src/Commands/InstallWildfireCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,16 +34,16 @@
 block discarded – undo
34 34
     {
35 35
         $this->addLibrary('wildfire');
36 36
 
37
-        $file = fopen(APPPATH . 'libraries/Wildfire.php', 'wb');
37
+        $file = fopen(APPPATH.'libraries/Wildfire.php', 'wb');
38 38
         $wildfire = $this->renderer->render('Libraries/Wildfire.template');
39 39
 
40
-        file_put_contents(APPPATH . 'libraries/Wildfire.php', $wildfire);
40
+        file_put_contents(APPPATH.'libraries/Wildfire.php', $wildfire);
41 41
         fclose($file);
42 42
 
43 43
         Tools::ignite();
44 44
 
45 45
         $message = 'Wildfire is now installed successfully!';
46 46
 
47
-        return $output->writeln('<info>' . $message . '</info>');
47
+        return $output->writeln('<info>'.$message.'</info>');
48 48
     }
49 49
 }
Please login to merge, or discard this patch.