Skip to content

Commit 2e95f20

Browse files
committed
[BF] fix Docs
1 parent 4872afe commit 2e95f20

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/Services/BackpackCrudRequestService.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@ public function call()
2525
$this->fillRulesInGeneratedRequest();
2626
}
2727

28+
/**
29+
* @param string $entity
30+
* @return string
31+
*/
2832
public function getName(string $entity): string
2933
{
3034
return ucfirst($entity);
3135
}
3236

33-
private function fillRulesInGeneratedRequest()
37+
private function fillRulesInGeneratedRequest(): void
3438
{
3539
$requestFile = end($this->command->filesToBeOpened);
3640

@@ -39,17 +43,17 @@ private function fillRulesInGeneratedRequest()
3943
$this->filesystem->put($requestFile, $request);
4044
}
4145

42-
/**
43-
* @return string
44-
*/
45-
private function setRulesFromSchema()
46+
private function setRulesFromSchema(): void
4647
{
4748
$this->command->schema->getStructure()->each(function ($field) {
4849
array_push($this->rules, new ValidationRule($field));
4950
});
5051
}
5152

52-
private function getRulesAsString()
53+
/**
54+
* @return string
55+
*/
56+
private function getRulesAsString(): string
5357
{
5458
$rulesArray = [];
5559

0 commit comments

Comments
 (0)