Skip to content

Commit

Permalink
More labelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaredRogers committed Oct 25, 2024
1 parent b838e5a commit c375369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/classes/blocks/class-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function register_post_type_templates() {
register_block_template( 'lsx-tour-operator//pages', [

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

View check run for this annotation

codefactor.io / CodeFactor

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

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])

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

View check run for this annotation

codefactor.io / CodeFactor

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

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])

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

View check run for this annotation

codefactor.io / CodeFactor

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

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
'title' => __( 'Pages', 'tour-operator' ),
'description' => __( 'A generic page template with a page title displayed', 'tour-operator' ),
'content' => $this->get_template_content( 'no-title.html' ),
'content' => $this->get_template_content( 'pages.html' ),
] );

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

View check run for this annotation

codefactor.io / CodeFactor

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

Closing parenthesis of a multi-line function call must be on a line by itself. (PEAR.Functions.FunctionCallSignature-[fixable])

register_block_template( 'lsx-tour-operator//single-region', [

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

View check run for this annotation

codefactor.io / CodeFactor

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

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

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

View check run for this annotation

codefactor.io / CodeFactor

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

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])

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

View check run for this annotation

codefactor.io / CodeFactor

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

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])
Expand All @@ -121,7 +121,7 @@ public function register_post_type_templates() {
] );

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

View check run for this annotation

codefactor.io / CodeFactor

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

Closing parenthesis of a multi-line function call must be on a line by itself. (PEAR.Functions.FunctionCallSignature-[fixable])

register_block_template( 'lsx-tour-operator//single-country', [

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

View check run for this annotation

codefactor.io / CodeFactor

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

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])

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

View check run for this annotation

codefactor.io / CodeFactor

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

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])

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

View check run for this annotation

codefactor.io / CodeFactor

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

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
'title' => __( 'Single Region', 'tour-operator' ),
'title' => __( 'Single Country', 'tour-operator' ),
'description' => __( 'Used to display a country in the Destination post-type', 'tour-operator' ),
'content' => $this->get_template_content( 'single-country.html' ),
'post_types' => [ 'destination' ]

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

View check run for this annotation

codefactor.io / CodeFactor

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

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

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

View check run for this annotation

codefactor.io / CodeFactor

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

There should be a comma after the last array item in a multi-line array. (NormalizedArrays.Arrays.CommaAfterLast-[fixable])
Expand Down

0 comments on commit c375369

Please sign in to comment.