src/utils/Conversions.php
Showing 44 of 44 total issues
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
Opening brace of a class must be on the line after the definition Open
Open
class VindiConversions {
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$types = array(
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"day" => 1,
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"year" => 365,
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
Open
return false;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"week" => 7,
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"month" => "months",
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
Open
return false;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$interval_types = array(
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
Open
if(!$get_type || !$get_interval_multiplier) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$verifyType = $types[$type];
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
A closing tag is not permitted at the end of a PHP file Open
Open
?>
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$interval_multiplier = array(
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
return intval($number) * intval($verifyType);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"day" => "days",
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"week" => "days",
- Exclude checks
Opening brace should be on a new line Open
Open
public static function convertTriggerToDay($number, $type = 'month') {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public static function convert_interval($interval_count, $interval_type = 'month') {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$get_type = $interval_types[$interval_type];
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
return array(
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"day" => 1,
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"year" => 12,
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$get_interval_multiplier = $interval_multiplier[$interval_type];
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"month" => 30,
- Exclude checks
Opening brace should be on a new line Open
Open
public static function convert_interval($interval_count, $interval_type = 'month') {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"week" => 7,
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"month" => 1,
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
if(!$verifyType) {
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
Open
if(!$verifyType) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
"year" => "months",
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
if(!$get_type || !$get_interval_multiplier) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
'interval' => $get_type,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public static function convertTriggerToDay($number, $type = 'month') {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
'interval_count' => intval($interval_count) * intval($get_interval_multiplier)
- Exclude checks