style(ecs): add easy-coding-standard to enforce coding style rules for php

- update .devcontainer settings: remove auto-formatting
for php + set intelephense as default formatter
- remove prettier php plugin as it lacks php 8 support
- add captain hook action for checking style pre-commit
- fix style with ecs on all files except views
This commit is contained in:
Yassine Doghri 2021-05-19 16:35:13 +00:00
commit aa1612342e
No known key found for this signature in database
GPG key ID: 3E7F89498B960C9F
230 changed files with 3420 additions and 5884 deletions

View file

@ -7,8 +7,8 @@ use CodeIgniter\Config\BaseConfig;
/**
* Encryption configuration.
*
* These are the settings used for encryption, if you don't pass a parameter
* array to the encrypter for creation/initialization.
* These are the settings used for encryption, if you don't pass a parameter array to the encrypter for
* creation/initialization.
*/
class Encryption extends BaseConfig
{
@ -20,7 +20,6 @@ class Encryption extends BaseConfig
* If you use the Encryption class you must set an encryption key (seed).
* You need to ensure it is long enough for the cipher and mode you plan to use.
* See the user guide for more info.
*
*/
public string $key = '';
@ -34,7 +33,6 @@ class Encryption extends BaseConfig
* Available drivers:
* - OpenSSL
* - Sodium
*
*/
public string $driver = 'OpenSSL';
@ -47,7 +45,6 @@ class Encryption extends BaseConfig
* before it is encrypted. This value should be greater than zero.
*
* See the user guide for more information on padding.
*
*/
public int $blockSize = 16;
@ -57,7 +54,6 @@ class Encryption extends BaseConfig
* --------------------------------------------------------------------------
*
* HMAC digest to use, e.g. 'SHA512' or 'SHA256'. Default value is 'SHA512'.
*
*/
public string $digest = 'SHA512';
}