Skip to content

Simplified code by removing unecessary registration

codefactor.io / CodeFactor succeeded Oct 28, 2024 in 26s

1561 issues fixed. 684 issues found. Autofix available.

Annotations

Check warning on line 137 in includes/classes/blocks/class-bindings.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-bindings.php#L137

Expected 0 spaces after opening bracket; 1 found. (Squiz.WhiteSpace.ControlStructureSpacing-[fixable])

Check notice on line 81 in includes/metaboxes/config-accommodation.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/metaboxes/config-accommodation.php#L81

Found precision alignment of 1 spaces. (Universal.WhiteSpace.PrecisionAlignment-[fixable])

Check warning on line 468 in includes/classes/blocks/class-bindings.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-bindings.php#L468

Tabs must be used to indent lines; spaces are not allowed. (Generic.WhiteSpace.DisallowSpaceIndent-[fixable])

Check notice on line 147 in includes/metaboxes/config-tour.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/metaboxes/config-tour.php#L147

Array double arrow not aligned correctly; expected 11 space(s) between "'id'" and double arrow, but found 3. (WordPress.Arrays.MultipleStatementAlignment-[fixable])

Check warning on line 22 in includes/classes/blocks/class-patterns.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-patterns.php#L22

Inline comments must end in full-stops, exclamation marks, or question marks. (Squiz.Commenting.InlineComment)

Check notice on line 56 in includes/classes/blocks/class-templates.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-templates.php#L56

Array double arrow not aligned correctly; expected 3 space(s) between "'archive-destination'" and double arrow, but found 1. (WordPress.Arrays.MultipleStatementAlignment-[fixable])

Check warning on line 1 in includes/classes/blocks/class-patterns.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-patterns.php#L1

Missing file doc comment. (Squiz.Commenting.FileComment)

Check warning on line 120 in includes/classes/blocks/class-templates.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-templates.php#L120

Function return type is void, but function contains return statement. (Squiz.Commenting.FunctionComment)

Check notice on line 548 in includes/classes/blocks/class-bindings.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-bindings.php#L548

The method parameter $block_obj is never used. (Generic.CodeAnalysis.UnusedFunctionParameter)

Check warning on line 288 in includes/classes/blocks/class-bindings.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-bindings.php#L288

Whitespace found at end of line. (Squiz.WhiteSpace.SuperfluousWhitespace-[fixable])

Check warning on line 125 in includes/metaboxes/config-tour.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/metaboxes/config-tour.php#L125

Array closer not aligned correctly; expected 12 space(s) but found 11. (WordPress.Arrays.ArrayIndentation-[fixable])

Check warning on line 86 in includes/metaboxes/config-accommodation.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/metaboxes/config-accommodation.php#L86

Inline comments must end in full-stops, exclamation marks, or question marks. (Squiz.Commenting.InlineComment)

Check warning on line 44 in includes/classes/blocks/class-templates.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-templates.php#L44

Expected 1 space before the array closer in a single line array. Found: no spaces. (NormalizedArrays.Arrays.ArrayBraceSpacing-[fixable])

Check warning on line 103 in includes/metaboxes/config-accommodation.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/metaboxes/config-accommodation.php#L103

Tabs must be used to indent lines; spaces are not allowed. (Generic.WhiteSpace.DisallowSpaceIndent-[fixable])

Check notice on line 139 in includes/classes/admin/class-setup.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/admin/class-setup.php#L139

Array double arrow not aligned correctly; expected 6 space(s) between "'context'" and double arrow, but found 7. (WordPress.Arrays.MultipleStatementAlignment-[fixable])

Check warning on line 372 in includes/classes/blocks/class-bindings.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-bindings.php#L372

Expected 2 spaces after parameter type; 1 found. (Squiz.Commenting.FunctionComment-[fixable])

Check warning on line 303 in includes/classes/legacy/class-tour.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/legacy/class-tour.php#L303

Expected 0 spaces before closing bracket; 1 found. (Squiz.WhiteSpace.ControlStructureSpacing-[fixable])

Check warning on line 97 in includes/classes/blocks/class-templates.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-templates.php#L97

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])

Check warning on line 71 in includes/classes/blocks/class-bindings.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-bindings.php#L71

Expected 0 spaces after opening bracket; 1 found. (Squiz.WhiteSpace.ControlStructureSpacing-[fixable])

Check notice on line 181 in includes/classes/legacy/class-tour.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/legacy/class-tour.php#L181

Array double arrow not aligned correctly; expected 7 space(s) between "'name'" and double arrow, but found 6. (WordPress.Arrays.MultipleStatementAlignment-[fixable])

Check notice on line 403 in includes/classes/blocks/class-bindings.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-bindings.php#L403

Not using strict comparison for in_array; supply true for $strict argument. (WordPress.PHP.StrictInArray)

Check warning on line 186 in includes/classes/blocks/class-bindings.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-bindings.php#L186

Whitespace found at end of line. (Squiz.WhiteSpace.SuperfluousWhitespace-[fixable])

Check notice on line 61 in includes/classes/blocks/class-templates.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-templates.php#L61

Array double arrow not aligned correctly; expected 11 space(s) between "'single-tour'" and double arrow, but found 2. (WordPress.Arrays.MultipleStatementAlignment-[fixable])

Check notice on line 137 in includes/classes/admin/class-setup.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/admin/class-setup.php#L137

Array double arrow not aligned correctly; expected 8 space(s) between "'title'" and double arrow, but found 9. (WordPress.Arrays.MultipleStatementAlignment-[fixable])

Check notice on line 388 in includes/classes/blocks/class-bindings.php

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

includes/classes/blocks/class-bindings.php#L388

Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space. (Generic.Formatting.MultipleStatementAlignment-[fixable])