@@ -7,9 +7,13 @@ |
||
| 7 | 7 | |
| 8 | 8 | |
| 9 | 9 | public function createFile(string $fileName){ |
| 10 | - if(!file_exists(CONFIG_PATH)) mkdir(CONFIG_PATH,0777,true); |
|
| 10 | + if(!file_exists(CONFIG_PATH)) { |
|
| 11 | + mkdir(CONFIG_PATH,0777,true); |
|
| 12 | + } |
|
| 11 | 13 | $fileName = ucfirst($fileName); |
| 12 | - if(file_exists(CONFIG_PATH ."/" .$fileName . ".php")) throw new \Exception("Arquivo ja existe"); |
|
| 14 | + if(file_exists(CONFIG_PATH ."/" .$fileName . ".php")) { |
|
| 15 | + throw new \Exception("Arquivo ja existe"); |
|
| 16 | + } |
|
| 13 | 17 | $file = fopen(CONFIG_PATH . "/" . $fileName . ".php",'w+'); |
| 14 | 18 | if($file){ |
| 15 | 19 | $text = $this->copyFile(); |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | if($type == "int"){ |
| 20 | 20 | $this->integer('id')->unsigned()->notNull()->primaryKey(); |
| 21 | - }else{ |
|
| 21 | + } else{ |
|
| 22 | 22 | $this->bigint('id')->unsigned()->notNull()->primaryKey(); |
| 23 | 23 | } |
| 24 | 24 | |