Completed
Push — master ( 3d43ea...9ca864 )
by George
02:30
created
src/Console/Commands/ScaffoldGenerate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,10 +78,10 @@
 block discarded – undo
78 78
         $files = $finder->files()
79 79
             ->name('*table.php')
80 80
             ->notName('2014*')
81
-            ->in(database_path() . '/migrations');
81
+            ->in(database_path().'/migrations');
82 82
 
83 83
         foreach ($files as $file) {
84
-            $this->migrations[] = $file->getRealPath() ;
84
+            $this->migrations[] = $file->getRealPath();
85 85
         }
86 86
     }
87 87
 }
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 class ServiceProvider extends \Illuminate\Support\ServiceProvider
8 8
 {
9
-    const CONFIG_PATH = __DIR__ . '/../config/scaffold.php';
9
+    const CONFIG_PATH = __DIR__.'/../config/scaffold.php';
10 10
 
11 11
     public function boot()
12 12
     {
Please login to merge, or discard this patch.
src/Scaffold.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         $this->template = new \Mustache_Engine([
33 33
             'delimiters' => '<% %>',
34
-            'escape' => function ($value) {
34
+            'escape' => function($value) {
35 35
                 return $value; //no escaping.
36 36
             }
37 37
         ]);
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function getMigrationFiles($paths)
91 91
     {
92
-        return Collection::make($paths)->flatMap(function ($path) {
92
+        return Collection::make($paths)->flatMap(function($path) {
93 93
             return $this->files->glob($path.'/*_*.php');
94
-        })->filter()->sortBy(function ($file) {
94
+        })->filter()->sortBy(function($file) {
95 95
             return $this->getMigrationName($file);
96
-        })->values()->keyBy(function ($file) {
96
+        })->values()->keyBy(function($file) {
97 97
             return $this->getMigrationName($file);
98 98
         })->all();
99 99
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     {
143 143
         $this->variables['modelName'] = $this->model->name;
144 144
 
145
-        $this->variables['modelVariable'] = "$" . Str::camel($this->model->name);
145
+        $this->variables['modelVariable'] = "$".Str::camel($this->model->name);
146 146
 
147 147
 
148 148
         if ($this->rules) {
Please login to merge, or discard this patch.