Add phpdoc_separation rule
This commit is contained in:
parent
d21740d458
commit
466f9f7edc
@ -52,7 +52,6 @@ abstract class ApplicationApiController extends Controller
|
|||||||
* @template T of \App\Transformers\Api\Application\BaseTransformer
|
* @template T of \App\Transformers\Api\Application\BaseTransformer
|
||||||
*
|
*
|
||||||
* @param class-string<T> $abstract
|
* @param class-string<T> $abstract
|
||||||
*
|
|
||||||
* @return T
|
* @return T
|
||||||
*
|
*
|
||||||
* @noinspection PhpDocSignatureInspection
|
* @noinspection PhpDocSignatureInspection
|
||||||
|
@ -42,7 +42,6 @@ abstract class ClientApiController extends ApplicationApiController
|
|||||||
* @template T of \App\Transformers\Api\Client\BaseClientTransformer
|
* @template T of \App\Transformers\Api\Client\BaseClientTransformer
|
||||||
*
|
*
|
||||||
* @param class-string<T> $abstract
|
* @param class-string<T> $abstract
|
||||||
*
|
|
||||||
* @return T
|
* @return T
|
||||||
*
|
*
|
||||||
* @noinspection PhpDocSignatureInspection
|
* @noinspection PhpDocSignatureInspection
|
||||||
|
@ -75,7 +75,6 @@ abstract class ApplicationApiRequest extends FormRequest
|
|||||||
* @template T of \Illuminate\Database\Eloquent\Model
|
* @template T of \Illuminate\Database\Eloquent\Model
|
||||||
*
|
*
|
||||||
* @param class-string<T> $expect
|
* @param class-string<T> $expect
|
||||||
*
|
|
||||||
* @return T
|
* @return T
|
||||||
*
|
*
|
||||||
* @noinspection PhpDocSignatureInspection
|
* @noinspection PhpDocSignatureInspection
|
||||||
|
@ -71,6 +71,7 @@ use App\Exceptions\Http\Server\ServerStateConflictException;
|
|||||||
* @property \App\Models\User $user
|
* @property \App\Models\User $user
|
||||||
* @property \Illuminate\Database\Eloquent\Collection|\App\Models\EggVariable[] $variables
|
* @property \Illuminate\Database\Eloquent\Collection|\App\Models\EggVariable[] $variables
|
||||||
* @property int|null $variables_count
|
* @property int|null $variables_count
|
||||||
|
*
|
||||||
* @method static \Database\Factories\ServerFactory factory(...$parameters)
|
* @method static \Database\Factories\ServerFactory factory(...$parameters)
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|Server newModelQuery()
|
* @method static \Illuminate\Database\Eloquent\Builder|Server newModelQuery()
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|Server newQuery()
|
* @method static \Illuminate\Database\Eloquent\Builder|Server newQuery()
|
||||||
@ -101,6 +102,7 @@ use App\Exceptions\Http\Server\ServerStateConflictException;
|
|||||||
* @method static \Illuminate\Database\Eloquent\Builder|Server whereUpdatedAt($value)
|
* @method static \Illuminate\Database\Eloquent\Builder|Server whereUpdatedAt($value)
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|Server whereUuid($value)
|
* @method static \Illuminate\Database\Eloquent\Builder|Server whereUuid($value)
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|Server whereuuid_short($value)
|
* @method static \Illuminate\Database\Eloquent\Builder|Server whereuuid_short($value)
|
||||||
|
*
|
||||||
* @property array|null $docker_labels
|
* @property array|null $docker_labels
|
||||||
* @property string|null $ports
|
* @property string|null $ports
|
||||||
* @property-read mixed $condition
|
* @property-read mixed $condition
|
||||||
@ -108,10 +110,12 @@ use App\Exceptions\Http\Server\ServerStateConflictException;
|
|||||||
* @property-read int|null $egg_variables_count
|
* @property-read int|null $egg_variables_count
|
||||||
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\ServerVariable> $serverVariables
|
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\ServerVariable> $serverVariables
|
||||||
* @property-read int|null $server_variables_count
|
* @property-read int|null $server_variables_count
|
||||||
|
*
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|Server whereDockerLabels($value)
|
* @method static \Illuminate\Database\Eloquent\Builder|Server whereDockerLabels($value)
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|Server whereInstalledAt($value)
|
* @method static \Illuminate\Database\Eloquent\Builder|Server whereInstalledAt($value)
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|Server wherePorts($value)
|
* @method static \Illuminate\Database\Eloquent\Builder|Server wherePorts($value)
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|Server whereUuidShort($value)
|
* @method static \Illuminate\Database\Eloquent\Builder|Server whereUuidShort($value)
|
||||||
|
*
|
||||||
* @mixin \Eloquent
|
* @mixin \Eloquent
|
||||||
*/
|
*/
|
||||||
class Server extends Model
|
class Server extends Model
|
||||||
|
@ -19,6 +19,7 @@ class DeleteFilesService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes the given files.
|
* Deletes the given files.
|
||||||
|
*
|
||||||
* @throws DaemonConnectionException
|
* @throws DaemonConnectionException
|
||||||
*/
|
*/
|
||||||
public function handle(Server $server, array $files): void
|
public function handle(Server $server, array $files): void
|
||||||
|
@ -22,6 +22,7 @@ trait EnvironmentWriterTrait
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Update the .env file for the application using the passed in values.
|
* Update the .env file for the application using the passed in values.
|
||||||
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function writeToEnvironment(array $values = []): void
|
public function writeToEnvironment(array $values = []): void
|
||||||
|
@ -90,7 +90,6 @@ abstract class BaseTransformer extends TransformerAbstract
|
|||||||
* @template T of \App\Transformers\Api\Application\BaseTransformer
|
* @template T of \App\Transformers\Api\Application\BaseTransformer
|
||||||
*
|
*
|
||||||
* @param class-string<T> $abstract
|
* @param class-string<T> $abstract
|
||||||
*
|
|
||||||
* @return T
|
* @return T
|
||||||
*
|
*
|
||||||
* @throws \App\Exceptions\Transformer\InvalidTransformerLevelException
|
* @throws \App\Exceptions\Transformer\InvalidTransformerLevelException
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
"preset": "laravel",
|
"preset": "laravel",
|
||||||
"rules": {
|
"rules": {
|
||||||
"not_operator_with_successor_space": false,
|
"not_operator_with_successor_space": false,
|
||||||
"ordered_imports": false,
|
"ordered_imports": false
|
||||||
"phpdoc_separation": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,6 @@ trait CreatesTestModels
|
|||||||
* is assumed that the user is actually a subuser of the server.
|
* is assumed that the user is actually a subuser of the server.
|
||||||
*
|
*
|
||||||
* @param string[] $permissions
|
* @param string[] $permissions
|
||||||
*
|
|
||||||
* @return array{\App\Models\User, \App\Models\Server}
|
* @return array{\App\Models\User, \App\Models\Server}
|
||||||
*/
|
*/
|
||||||
public function generateTestAccount(array $permissions = []): array
|
public function generateTestAccount(array $permissions = []): array
|
||||||
|
Loading…
x
Reference in New Issue
Block a user