src/Algorithm.php
The parameter $available_algorithms is not named in camelCase. Open
Open
public function __construct(
public readonly string $value,
?array $available_algorithms = null,
) {
if (!in_array($this->value, $available_algorithms ?? hash_hmac_algos())) {
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
public readonly string $value,
- Exclude checks
The variable $available_algorithms is not named in camelCase. Open
Open
public function __construct(
public readonly string $value,
?array $available_algorithms = null,
) {
if (!in_array($this->value, $available_algorithms ?? hash_hmac_algos())) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}