File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,17 @@ public function handle()
93
93
94
94
// Whether to create contract
95
95
if ($ isContract ) {
96
- $ contractName = str_replace ( $ this ->getNameInput (), $ this -> getNameInput () . 'Contract.php ' , $ this -> getNameInput ()) ;
96
+ $ contractName = $ this ->getNameInput () . 'Contract.php ' ;
97
97
$ contractPath = str_replace ($ this ->getNameInput () . '.php ' , 'Contracts/ ' , $ path );
98
+
98
99
$ this ->makeDirectory ($ contractPath . $ contractName );
99
- $ this ->files ->put ($ contractPath . $ contractName , $ this ->sortImports ($ this ->buildServiceContractInterface ($ this ->getNameInput ())));
100
+
101
+ $ this ->files ->put ($ contractPath . $ contractName ,
102
+ $ this ->sortImports (
103
+ $ this ->buildServiceContractInterface ($ this ->getNameInput ())
104
+ )
105
+ );
106
+
100
107
$ message .= ' and Contract ' ;
101
108
}
102
109
You can’t perform that action at this time.
0 commit comments