Use more standardized phpcs
This commit is contained in:
parent
a043071e3c
commit
c449ca5155
493 changed files with 1116 additions and 3903 deletions
|
@ -32,7 +32,6 @@ abstract class AdminFormRequest extends FormRequest
|
|||
* Return only the fields that we are interested in from the request.
|
||||
* This will include empty fields as a null value.
|
||||
*
|
||||
* @param array|null $only
|
||||
* @return array
|
||||
*/
|
||||
public function normalize(array $only = null)
|
||||
|
|
|
@ -10,6 +10,7 @@ class StoreApplicationApiKeyRequest extends AdminFormRequest
|
|||
{
|
||||
/**
|
||||
* @return array
|
||||
*
|
||||
* @throws \ReflectionException
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
|
|
|
@ -25,7 +25,7 @@ class DatabaseHostFormRequest extends AdminFormRequest
|
|||
*/
|
||||
protected function getValidatorInstance()
|
||||
{
|
||||
if (! $this->filled('node_id')) {
|
||||
if (!$this->filled('node_id')) {
|
||||
$this->merge(['node_id' => null]);
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ class NodeFormRequest extends AdminFormRequest
|
|||
{
|
||||
$validator->after(function ($validator) {
|
||||
// Check that the FQDN is a valid IP address.
|
||||
if (! filter_var(gethostbyname($this->input('fqdn')), FILTER_VALIDATE_IP)) {
|
||||
if (!filter_var(gethostbyname($this->input('fqdn')), FILTER_VALIDATE_IP)) {
|
||||
$validator->errors()->add('fqdn', trans('admin/node.validation.fqdn_not_resolvable'));
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class ServerFormRequest extends AdminFormRequest
|
|||
{
|
||||
$validator->after(function ($validator) {
|
||||
$validator->sometimes('node_id', 'required|numeric|bail|exists:nodes,id', function ($input) {
|
||||
return ! ($input->auto_deploy);
|
||||
return !($input->auto_deploy);
|
||||
});
|
||||
|
||||
$validator->sometimes('allocation_id', [
|
||||
|
@ -42,7 +42,7 @@ class ServerFormRequest extends AdminFormRequest
|
|||
$query->whereNull('server_id');
|
||||
}),
|
||||
], function ($input) {
|
||||
return ! ($input->auto_deploy);
|
||||
return !($input->auto_deploy);
|
||||
});
|
||||
|
||||
$validator->sometimes('allocation_additional.*', [
|
||||
|
@ -54,7 +54,7 @@ class ServerFormRequest extends AdminFormRequest
|
|||
$query->whereNull('server_id');
|
||||
}),
|
||||
], function ($input) {
|
||||
return ! ($input->auto_deploy);
|
||||
return !($input->auto_deploy);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -10,8 +10,6 @@ class StoreServerDatabaseRequest extends AdminFormRequest
|
|||
{
|
||||
/**
|
||||
* Validation rules for database creation.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
|
|
|
@ -30,6 +30,7 @@ class MailSettingsFormRequest extends AdminFormRequest
|
|||
* as we need to accept empty values on the keys.
|
||||
*
|
||||
* @param array $only
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function normalize(array $only = null)
|
||||
|
|
Reference in a new issue