mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 14:06:15 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -8,6 +8,11 @@
|
||||
|
||||
class EditSourceControl
|
||||
{
|
||||
/**
|
||||
* @param array<string, mixed> $input
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
public function edit(SourceControl $sourceControl, Project $project, array $input): SourceControl
|
||||
{
|
||||
$sourceControl->profile = $input['name'];
|
||||
@ -27,6 +32,10 @@ public function edit(SourceControl $sourceControl, Project $project, array $inpu
|
||||
return $sourceControl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $input
|
||||
* @return array<string, array<int, mixed>>
|
||||
*/
|
||||
public static function rules(SourceControl $sourceControl, array $input): array
|
||||
{
|
||||
$rules = [
|
||||
@ -35,10 +44,13 @@ public static function rules(SourceControl $sourceControl, array $input): array
|
||||
],
|
||||
];
|
||||
|
||||
return array_merge($rules, static::providerRules($sourceControl, $input));
|
||||
return array_merge($rules, self::providerRules($sourceControl, $input));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $input
|
||||
* @return array<string, array<int, mixed>>
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
private static function providerRules(SourceControl $sourceControl, array $input): array
|
||||
|
Reference in New Issue
Block a user