@@ -27,14 +27,14 @@ class MakeInterfaceRepository extends Command
2727
2828 use CustomMySqlQueries;
2929
30- private function writeGetOneFunction (string $ getOneStub , string $ columnName , string $ attributeType ): string
30+ private function writeGetOneFunction (string $ getOneStub , string $ columnName , string $ attributeType ): string
3131 {
3232 return str_replace (['{{ FunctionName }} ' , '{{ ColumnName }} ' , '{{ AttributeType }} ' , '{{ AttributeName }} ' ],
3333 [ucfirst (camel_case ($ columnName )), $ columnName , $ attributeType , camel_case ($ columnName )],
3434 $ getOneStub );
3535 }
3636
37- private function writeGetAllFunction (string $ getOneStub , string $ columnName , string $ attributeType ): string
37+ private function writeGetAllFunction (string $ getOneStub , string $ columnName , string $ attributeType ): string
3838 {
3939 return str_replace (['{{ FunctionNamePlural }} ' , '{{ AttributeType }} ' , '{{ AttributeNamePlural }} ' ],
4040 [ucfirst (str_plural (camel_case ($ columnName ))), $ attributeType , str_plural (camel_case ($ columnName ))],
@@ -52,10 +52,10 @@ public function handle(): int
5252 $ detectForeignKeys = $ this ->option ('foreign-keys ' );
5353 $ entityName = str_singular (ucfirst (camel_case ($ tableName )));
5454 $ entityVariableName = camel_case ($ entityName );
55- $ interfaceName = "I $ entityName " . "Repository " ;
55+ $ interfaceName = "I $ entityName " . "Repository " ;
5656 $ entityNamespace = config ('repository.path.namespace.entities ' );
5757 $ repositoryNamespace = config ('repository.path.namespace.repositories ' );
58- $ relativeInterfacePath = config ('repository.path.relative.repositories ' ) . "\\$ entityName " ;
58+ $ relativeInterfacePath = config ('repository.path.relative.repositories ' ). "\\$ entityName " ;
5959 $ interfaceRepositoryStubsPath = config ('repository.path.stub.repositories.interface ' );
6060 $ filenameWithPath = $ relativeInterfacePath .'\\' .$ interfaceName .'.php ' ;
6161
@@ -70,15 +70,15 @@ public function handle(): int
7070 return 0 ;
7171 }
7272
73- if (class_exists ("$ relativeInterfacePath \\$ interfaceName " ) && !$ this ->option ('force ' )) {
73+ if (class_exists ("$ relativeInterfacePath \\$ interfaceName " ) && ! $ this ->option ('force ' )) {
7474 $ this ->alert ("Interface $ interfaceName is already exist! " );
7575 return 0 ;
7676 }
7777
7878 $ columns = $ this ->getAllColumnsInTable ($ tableName );
7979
8080 if ($ columns ->isEmpty ()) {
81- $ this ->alert ("Couldn't retrieve columns from table " . $ tableName . "! Perhaps table's name is misspelled. " );
81+ $ this ->alert ("Couldn't retrieve columns from table " . $ tableName. "! Perhaps table's name is misspelled. " );
8282 die;
8383 }
8484
0 commit comments