Skip to content

Commit b43c404

Browse files
committed
CS fixes
1 parent 4899d23 commit b43c404

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

classes/admin/widgets/class-activity-scores.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function get_checklist_results() {
9898
$items = $this->get_checklist();
9999
$results = [];
100100
foreach ( $items as $item ) {
101-
$label = (string) $item['label']; // @phpstan-ignore offsetAccess.invalidOffset
101+
$label = (string) $item['label']; // @phpstan-ignore offsetAccess.invalidOffset
102102
$results[ $label ] = $item['callback'](); // @phpstan-ignore offsetAccess.invalidOffset
103103
}
104104
return $results;

classes/class-suggested-tasks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ public function rest_api_tax_query( $args, $request ) {
480480
// Handle sorting parameters.
481481
if ( isset( $request['filter']['orderby'] ) ) {
482482
// @phpstan-ignore-next-line argument.templateType
483-
$orderby = \sanitize_sql_orderby( $request['filter']['orderby'] ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
483+
$orderby = \sanitize_sql_orderby( $request['filter']['orderby'] ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
484484
$args['orderby'] = $orderby !== false ? $orderby : 'date';
485485
}
486486
if ( isset( $request['filter']['order'] ) ) {

classes/ui/class-chart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function get_chart_data( $args = [] ) {
125125
$previous_period_activities = $period_data['previous_period_activities'];
126126
$period_data_filtered = [];
127127
foreach ( $args['return_data'] as $key ) {
128-
$key_string = (string) $key; // @phpstan-ignore offsetAccess.invalidOffset
128+
$key_string = (string) $key; // @phpstan-ignore offsetAccess.invalidOffset
129129
$period_data_filtered[ $key_string ] = $period_data[ $key_string ]; // @phpstan-ignore offsetAccess.invalidOffset
130130
}
131131
$data[] = $period_data_filtered;

classes/update/class-update-140.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ private function rename_tasks_option() {
4141
// This is to ensure that we don't lose any tasks, and at the same time we don't have duplicate tasks.
4242
$tasks = [];
4343
foreach ( $new_tasks as $new_task ) {
44-
$key = isset( $new_task['task_id'] ) ? (string) $new_task['task_id'] : \md5( \maybe_serialize( $new_task ) ); // @phpstan-ignore offsetAccess.invalidOffset
44+
$key = isset( $new_task['task_id'] ) ? (string) $new_task['task_id'] : \md5( \maybe_serialize( $new_task ) ); // @phpstan-ignore offsetAccess.invalidOffset
4545
$tasks[ $key ] = $new_task;
4646
}
4747
foreach ( $old_tasks as $old_task ) {
48-
$key = isset( $old_task['task_id'] ) ? (string) $old_task['task_id'] : \md5( \maybe_serialize( $old_task ) ); // @phpstan-ignore offsetAccess.invalidOffset
48+
$key = isset( $old_task['task_id'] ) ? (string) $old_task['task_id'] : \md5( \maybe_serialize( $old_task ) ); // @phpstan-ignore offsetAccess.invalidOffset
4949
$tasks[ $key ] = $old_task;
5050
}
5151

classes/utils/class-color-customizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private function save_colors() {
126126
foreach ( $color_variables as $section => $variables ) {
127127
foreach ( $variables as $variable => $default_value ) {
128128
$variable_string = (string) $variable; // @phpstan-ignore offsetAccess.invalidOffset
129-
$key = "color_{$variable_string}";
129+
$key = "color_{$variable_string}";
130130
if ( isset( $_POST[ $key ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
131131
$post_value = isset( $_POST[ $key ] ) ? \sanitize_text_field( \wp_unslash( $_POST[ $key ] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Missing
132132
$color_value = \sanitize_text_field( \wp_unslash( $post_value ) );

0 commit comments

Comments
 (0)