Skip to content

Commit 6f962e8

Browse files
binarykgithub-actions[bot]
authored andcommitted
Fix styling
1 parent e643df2 commit 6f962e8

38 files changed

+0
-274
lines changed

src/Actions/Action.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,16 @@ abstract class Action implements JsonSerializable
3535

3636
/**
3737
* Number of models into a chunk when action for 'all'.
38-
*
39-
* @var int
4038
*/
4139
public static int $chunkCount = 200;
4240

4341
/**
4442
* Indicated if this action don't require any models.
45-
*
46-
* @var bool
4743
*/
4844
public bool $standalone = false;
4945

5046
/**
5147
* Indicates if Restify should skip the field default update behavior in case it's actionable field.
52-
*
53-
* @var bool
5448
*/
5549
public bool $skipFieldFill = true;
5650

@@ -68,8 +62,6 @@ public static function indexQuery(RestifyRequest $request, $query)
6862

6963
/**
7064
* The callback used to authorize running the action.
71-
*
72-
* @var Closure|null
7365
*/
7466
public ?Closure $runCallback;
7567

@@ -91,7 +83,6 @@ public function uriKey()
9183
/**
9284
* Determine if the action is executable for the given request.
9385
*
94-
* @param Request $request
9586
* @param Model $model
9687
* @return bool
9788
*/
@@ -103,7 +94,6 @@ public function authorizedToRun(Request $request, $model)
10394
/**
10495
* Set the callback to be run to authorize running the action.
10596
*
106-
* @param Closure $callback
10797
* @return $this
10898
*/
10999
public function canRun(Closure $callback)
@@ -116,7 +106,6 @@ public function canRun(Closure $callback)
116106
/**
117107
* Get the payload available on the action.
118108
*
119-
* @return array
120109
*
121110
* @deprecated Use rules instead
122111
*/
@@ -127,8 +116,6 @@ public function payload(): array
127116

128117
/**
129118
* Validation rules to be applied before the action is called.
130-
*
131-
* @return array
132119
*/
133120
public function rules(): array
134121
{
@@ -137,9 +124,6 @@ public function rules(): array
137124

138125
/**
139126
* Make current action being standalone. No model query will be performed.
140-
*
141-
* @param bool $standalone
142-
* @return self
143127
*/
144128
public function standalone(bool $standalone = true): self
145129
{
@@ -150,8 +134,6 @@ public function standalone(bool $standalone = true): self
150134

151135
/**
152136
* Check if the action is standalone.
153-
*
154-
* @return bool
155137
*/
156138
public function isStandalone(): bool
157139
{

src/Commands/PublishAuthCommand.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public function publishEmails(): self
7070
}
7171

7272
/**
73-
* @param string $path
7473
* @return $this
7574
*/
7675
public function checkDirectory(string $path): self
@@ -83,9 +82,6 @@ public function checkDirectory(string $path): self
8382
}
8483

8584
/**
86-
* @param string $path
87-
* @param string $stubDirectory
88-
* @param string $format
8985
* @return $this
9086
*/
9187
protected function copyDirectory(string $path, string $stubDirectory, string $format): self
@@ -105,13 +101,6 @@ protected function copyDirectory(string $path, string $stubDirectory, string $fo
105101
return $this;
106102
}
107103

108-
/**
109-
* @param string $stubDirectory
110-
* @param string $fileName
111-
* @param string $path
112-
* @param string $fullPath
113-
* @return string
114-
*/
115104
protected function setNamespace(string $stubDirectory, string $fileName, string $path, string $fullPath): string
116105
{
117106
$path = substr(str_replace('/', '\\', $path), 0, -1);

src/Contracts/Deletable.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@ interface Deletable
99
/**
1010
* Specify the callback that should be used to delete the field.
1111
*
12-
* @param callable $deleteCallback
1312
* @return $this
1413
*/
1514
public function delete(callable $deleteCallback): self;
1615

1716
/**
1817
* Return the deletable callback.
19-
*
20-
* @return Closure|null
2118
*/
2219
public function getDeleteCallback(): ?Closure;
2320

@@ -31,15 +28,11 @@ public function deletable($deletable = true): self;
3128

3229
/**
3330
* Determine if the field should be pruned when the resource is deleted.
34-
*
35-
* @return bool
3631
*/
3732
public function isPrunable(): bool;
3833

3934
/**
4035
* Determine if the field can be deleted.
41-
*
42-
* @return bool
4336
*/
4437
public function isDeletable(): bool;
4538

src/Contracts/RestifySearchable.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,11 @@ interface RestifySearchable
2525

2626
/**
2727
* Get available attributes for query params search.
28-
*
29-
* @return array
3028
*/
3129
public static function searchables(): array;
3230

3331
/**
3432
* Get relations available for query params.
35-
*
36-
* @return array
3733
*/
3834
public static function withs(): array;
3935

@@ -45,13 +41,8 @@ public static function withs(): array;
4541
*
4642
* To use this filter we have to send in query:
4743
* [ 'match' => [ 'id' => 1 ] ]
48-
*
49-
* @return array
5044
*/
5145
public static function matches(): array;
5246

53-
/**
54-
* @return array
55-
*/
5647
public static function sorts(): array;
5748
}

src/Events/RestifyBeforeEach.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ class RestifyBeforeEach
1515

1616
/**
1717
* RestifyAfterEach constructor.
18-
*
19-
* @param $request
2018
*/
2119
public function __construct($request)
2220
{

src/Events/RestifyRepositoryStored.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ class RestifyRepositoryStored
1313
*/
1414
public $model;
1515

16-
/**
17-
* @param $model
18-
*/
1916
public function __construct($model)
2017
{
2118
$this->model = $model;

src/Events/RestifyStarting.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ class RestifyStarting
1515

1616
/**
1717
* RestifyServing constructor.
18-
*
19-
* @param $request
2018
*/
2119
public function __construct($request)
2220
{

src/Fields/Concerns/Deletable.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,11 @@ trait Deletable
2323

2424
/**
2525
* Indicates if the underlying field is prunable.
26-
*
27-
* @var bool
2826
*/
2927
public bool $prunable = false;
3028

3129
/**
3230
* Specify the callback that should be used to delete the field.
33-
*
34-
* @param callable $deleteCallback
35-
* @return DeletableContract
3631
*/
3732
public function delete(callable $deleteCallback): DeletableContract
3833
{
@@ -56,8 +51,6 @@ public function deletable($deletable = true): DeletableContract
5651

5752
/**
5853
* Determine if the underlying file should be pruned when the resource is deleted.
59-
*
60-
* @return bool
6154
*/
6255
public function isPrunable(): bool
6356
{
@@ -66,8 +59,6 @@ public function isPrunable(): bool
6659

6760
/**
6861
* Determine if the underlying file should be pruned when the resource is deleted.
69-
*
70-
* @return bool
7162
*/
7263
public function isDeletable(): bool
7364
{

src/Fields/Concerns/FileStorable.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ trait FileStorable
2323
/**
2424
* Set the name of the disk the file is stored on by default.
2525
*
26-
* @param string $disk
2726
* @return $this
2827
*/
2928
public function disk(string $disk): self

src/Fields/EagerField.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@ class EagerField extends Field
1818

1919
/**
2020
* Name of the relationship.
21-
*
22-
* @var string
2321
*/
2422
public string $relation;
2523

2624
/**
2725
* The class name of the related repository.
28-
*
29-
* @var string
3026
*/
3127
public string $repositoryClass;
3228

@@ -55,7 +51,6 @@ public function __construct($attribute, string $parentRepository = null)
5551
/**
5652
* Determine if the field should be displayed for the given request.
5753
*
58-
* @param Request $request
5954
* @return bool
6055
*/
6156
public function authorize(Request $request)

0 commit comments

Comments
 (0)