@@ -60,14 +60,14 @@ discard block |
||
| 60 | 60 | * @param string $to |
| 61 | 61 | * @return void |
| 62 | 62 | */ |
| 63 | - protected function publishDirectory($from , $to) |
|
| 63 | + protected function publishDirectory($from, $to) |
|
| 64 | 64 | { |
| 65 | - $exclude = array('..' , '.' , '.DS_Store'); |
|
| 66 | - $source = array_diff(scandir($from) , $exclude); |
|
| 65 | + $exclude = array('..', '.', '.DS_Store'); |
|
| 66 | + $source = array_diff(scandir($from), $exclude); |
|
| 67 | 67 | |
| 68 | 68 | foreach ($source as $item) { |
| 69 | - $this->info("Copying file: " . $to . $item); |
|
| 70 | - File::copy($from . $item , $to . $item); |
|
| 69 | + $this->info("Copying file: ".$to.$item); |
|
| 70 | + File::copy($from.$item, $to.$item); |
|
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | { |
| 81 | 81 | $targetPath = app()->path()."/Models/"; |
| 82 | 82 | |
| 83 | - if (!File::isDirectory($targetPath)){ |
|
| 83 | + if (!File::isDirectory($targetPath)) { |
|
| 84 | 84 | File::makeDirectory($targetPath, 0777, true, true); |
| 85 | 85 | } |
| 86 | 86 | |
@@ -20,9 +20,9 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function up() |
| 22 | 22 | { |
| 23 | - Schema::create('banks', function(Blueprint $table){ |
|
| 23 | + Schema::create('banks', function(Blueprint $table) { |
|
| 24 | 24 | $table->id(); |
| 25 | - $table->string('sandi_bank',20); |
|
| 25 | + $table->string('sandi_bank', 20); |
|
| 26 | 26 | $table->string('nama_bank'); |
| 27 | 27 | }); |
| 28 | 28 | } |