@@ -78,10 +78,10 @@ |
||
| 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 | } |
@@ -6,7 +6,7 @@ |
||
| 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 | { |
@@ -31,7 +31,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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) { |