Skip to content

Commit f240366

Browse files
committed
Fix Some Spacing (Scrutinizer Suggestions)
1 parent e151e6d commit f240366

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

src/Commands/MakeFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function handle(): int
4343
$tableName = $this->argument('table_name');
4444
$entityName = str_singular(ucfirst(camel_case($tableName)));
4545
$entityVariableName = camel_case($entityName);
46-
$factoryName = $entityName . "Factory";
46+
$factoryName = $entityName.'Factory';
4747
$entityNamespace = config('repository.path.namespace.entities');
4848
$factoryNamespace = config('repository.path.namespace.factories');
4949
$relativeFactoriesPath = config('repository.path.relative.factories');
@@ -61,15 +61,15 @@ public function handle(): int
6161
return 0;
6262
}
6363

64-
if (class_exists("$relativeFactoriesPath\\$factoryName") && !$this->option('force')) {
64+
if (class_exists("$relativeFactoriesPath\\$factoryName") && ! $this->option('force')) {
6565
$this->alert("Factory $factoryName is already exist!");
6666
return 0;
6767
}
6868

6969
$columns = $this->getAllColumnsInTable($tableName);
7070

7171
if ($columns->isEmpty()) {
72-
$this->alert("Couldn't retrieve columns from table " . $tableName . "! Perhaps table's name is misspelled.");
72+
$this->alert("Couldn't retrieve columns from table ".$tableName."! Perhaps table's name is misspelled.");
7373
die;
7474
}
7575

src/Commands/MakeInterfaceRepository.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

src/Commands/MakeMySqlRepository.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ class MakeMySqlRepository 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 }}', '{{ ColumnName }}', '{{ AttributeType }}', '{{ AttributeNamePlural }}'],
4040
[ucfirst(str_plural(camel_case($columnName))), $columnName, $attributeType, str_plural(camel_case($columnName))],
@@ -65,7 +65,7 @@ public function handle(): int
6565
$entityNamespace = config('repository.path.namespace.entities');
6666
$factoryNamespace = config('repository.path.namespace.factories');
6767
$repositoryNamespace = config('repository.path.namespace.repositories');
68-
$relativeMysqlRepositoryPath = config('repository.path.relative.repositories') . "\\$entityName";
68+
$relativeMysqlRepositoryPath = config('repository.path.relative.repositories')."\\$entityName";
6969
$mysqlRepositoryStubsPath = config('repository.path.stub.repositories.mysql');
7070
$filenameWithPath = $relativeMysqlRepositoryPath.'\\'.$mysqlRepositoryName.'.php';
7171

@@ -80,15 +80,15 @@ public function handle(): int
8080
return 0;
8181
}
8282

83-
if (class_exists("$relativeMysqlRepositoryPath\\$mysqlRepositoryName") && !$this->option('force')) {
83+
if (class_exists("$relativeMysqlRepositoryPath\\$mysqlRepositoryName") && ! $this->option('force')) {
8484
$this->alert("Repository $mysqlRepositoryName is already exist!");
8585
return 0;
8686
}
8787

8888
$columns = $this->getAllColumnsInTable($tableName);
8989

9090
if ($columns->isEmpty()) {
91-
$this->alert("Couldn't retrieve columns from table " . $tableName . "! Perhaps table's name is misspelled.");
91+
$this->alert("Couldn't retrieve columns from table ".$tableName."! Perhaps table's name is misspelled.");
9292
die;
9393
}
9494

src/Commands/MakeRedisRepository.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public function handle(): int
3838
$detectForeignKeys = $this->option('foreign-keys');
3939
$entityName = str_singular(ucfirst(camel_case($tableName)));
4040
$entityVariableName = camel_case($entityName);
41-
$factoryName = $entityName . "Factory";
42-
$interfaceName = "I$entityName" . "Repository";
43-
$redisRepositoryName = "Redis$entityName" . "Repository";
41+
$factoryName = $entityName."Factory";
42+
$interfaceName = "I$entityName"."Repository";
43+
$redisRepositoryName = "Redis$entityName"."Repository";
4444
$redisRepositoryNamespace = config('repository.path.namespace.repositories');
45-
$relativeRedisRepositoryPath = config('repository.path.relative.repositories') . "\\$entityName";
45+
$relativeRedisRepositoryPath = config('repository.path.relative.repositories')."\\$entityName";
4646

4747
if ($this->option('delete')) {
4848
unlink("$relativeRedisRepositoryPath/$redisRepositoryName.php");
@@ -55,15 +55,15 @@ public function handle(): int
5555
return 0;
5656
}
5757

58-
if (class_exists("$relativeRedisRepositoryPath\\$redisRepositoryName") && !$this->option('force')) {
58+
if (class_exists("$relativeRedisRepositoryPath\\$redisRepositoryName") && ! $this->option('force')) {
5959
$this->alert("Repository $redisRepositoryName is already exist!");
6060
return 0;
6161
}
6262

6363
$columns = $this->getAllColumnsInTable($tableName);
6464

6565
if ($columns->isEmpty()) {
66-
$this->alert("Couldn't retrieve columns from table " . $tableName . "! Perhaps table's name is misspelled.");
66+
$this->alert("Couldn't retrieve columns from table ".$tableName."! Perhaps table's name is misspelled.");
6767
die;
6868
}
6969

src/Commands/MakeRepository.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function handle(): int
7474
$entityNamespace = config('repository.path.namespace.entities');
7575
$factoryNamespace = config('repository.path.namespace.factories');
7676
$repositoryNamespace = config('repository.path.namespace.repositories');
77-
$relativeRepositoryPath = config('repository.path.relative.repositories') . "\\$entityName";
77+
$relativeRepositoryPath = config('repository.path.relative.repositories')."\\$entityName";
7878
$repositoryStubsPath = config('repository.path.stub.repositories.base');
7979
$filenameWithPath = $relativeRepositoryPath.'\\'.$repositoryName.'.php';
8080

@@ -89,15 +89,15 @@ public function handle(): int
8989
return 0;
9090
}
9191

92-
if (class_exists("$relativeRepositoryPath\\$repositoryName") && !$this->option('force')) {
92+
if (class_exists("$relativeRepositoryPath\\$repositoryName") && ! $this->option('force')) {
9393
$this->alert("Repository $repositoryName is already exist!");
9494
return 0;
9595
}
9696

9797
$columns = $this->getAllColumnsInTable($tableName);
9898

9999
if ($columns->isEmpty()) {
100-
$this->alert("Couldn't retrieve columns from table " . $tableName . "! Perhaps table's name is misspelled.");
100+
$this->alert("Couldn't retrieve columns from table ".$tableName."! Perhaps table's name is misspelled.");
101101
die;
102102
}
103103

src/Commands/MakeResource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function handle(): int
5353
$entityName = str_singular(ucfirst(camel_case($tableName)));
5454
$entityVariableName = camel_case($entityName);
5555
$entityNamespace = config('repository.path.namespace.entities');
56-
$resourceName = $entityName . "Resource";
56+
$resourceName = $entityName."Resource";
5757
$resourceNamespace = config('repository.path.namespace.resources');
5858
$relativeResourcesPath = config('repository.path.relative.resources');
5959
$resourceStubsPath = config('repository.path.stub.resources');
@@ -70,15 +70,15 @@ public function handle(): int
7070
return 0;
7171
}
7272

73-
if (class_exists("$relativeResourcesPath\\$resourceName") && !$this->option('force')) {
73+
if (class_exists("$relativeResourcesPath\\$resourceName") && ! $this->option('force')) {
7474
$this->alert("Resource $resourceName 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

Comments
 (0)