fix php cs fixer concat operator to use space

This commit is contained in:
osaajani 2020-01-17 18:47:08 +01:00
parent 9de6697752
commit 08bf5a878a
26 changed files with 113 additions and 109 deletions

View File

@ -302,7 +302,7 @@ namespace controllers\internals;
'headers' => [
'Content-Disposition: attachment; filename=contacts.csv',
'Content-Type: text/csv',
'Content-Length: '.\mb_strlen($csv_string),
'Content-Length: ' . mb_strlen($csv_string),
],
'content' => $csv_string,
];
@ -331,7 +331,7 @@ namespace controllers\internals;
'headers' => [
'Content-Disposition: attachment; filename=contacts.json',
'Content-Type: application/json',
'Content-Length: '.\mb_strlen($content),
'Content-Length: ' . mb_strlen($content),
],
'content' => $content,
];

View File

@ -260,6 +260,7 @@ namespace controllers\publics;
* Delete a scheduled message.
*
* @param int $id : Id of scheduled message to delete
*
* @return bool : void
*/
public function delete_scheduled(int $id)
@ -274,6 +275,7 @@ namespace controllers\publics;
}
$this->auto_http_code(true);
return true;
}
}

View File

@ -24,8 +24,10 @@ $config = PhpCsFixer\Config::create()
'@PhpCsFixer:risky' => true,
'header_comment' => ['header' => $header],
'list_syntax' => ['syntax' => 'long'],
'array_syntax' => ['syntax' => 'short'],
'mb_str_functions' => true,
'method_separation' => true,
'concat_space' => ['spacing' => 'one'],
'braces' => [
'position_after_anonymous_constructs' => 'next',
'position_after_control_structures' => 'next',