Skip to content

Commit fb02f83

Browse files
committed
Fix: Update PHPCS configuration to exclude build directory and adjust translation domain in exception message
1 parent 3495a0c commit fb02f83

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<description>Minimal PHPCS configuration for IDE integration using 10up-Default ruleset. Extended project-specific config lives in phpcs.xml.dist.</description>
44
<rule ref="10up-Default" />
55
<arg name="extensions" value="php"/>
6+
<exclude-pattern>plugins/*</exclude-pattern>
67
<exclude-pattern>vendor/*</exclude-pattern>
78
<exclude-pattern>node_modules/*</exclude-pattern>
89
<exclude-pattern>build/*</exclude-pattern>

includes/classes/admin/class-post-expiration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function maybe_schedule_tour_expiration( $post_id ) {
5252
$action_id,
5353
sprintf(
5454
/* translators: %1$s is the name of the hook to be cancelled, %2$s is the exception message. */
55-
__( 'Caught exception while cancelling action "%1$s": %2$s', 'action-scheduler' ),
55+
__( 'Caught exception while cancelling action "%1$s": %2$s', 'tour-operator' ),
5656
'lsx_to_expire_tour',
5757
$exception->getMessage()
5858
)

includes/classes/class-tour-operator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ private function build_asset_args($asset)
193193
*/
194194
public function setup()
195195
{
196-
require_once LSX_TO_PATH . 'plugins/content-models/create-content-model.php';
197196

198197
$this->classes['permalinks'] = new Permalinks();
199198
$this->classes['taxonomies'] = Taxonomies::init();

tour-operator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@
4646
define('LSX_TO_ASSET_DEBUG', '');
4747
}
4848

49+
// phpcs:disable WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
4950
// Plugin dependencies.
51+
require_once LSX_TO_PATH . 'plugins/content-models/create-content-model.php';
5052
require_once LSX_TO_PATH . 'plugins/cmb2/init.php';
5153
require_once LSX_TO_PATH . 'plugins/cmb2-field-map/cmb-field-map.php';
5254
require_once LSX_TO_PATH . 'plugins/cmb-field-select2/cmb-field-select2.php';
55+
// phpcs:enable WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
5356

5457
// Template Tags.
5558
require_once LSX_TO_PATH . 'includes/template-tags/general.php';

0 commit comments

Comments
 (0)