Skip to content

Commit 3878d18

Browse files
committed
coding standards fixes
1 parent d5ca1d1 commit 3878d18

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/wp-includes/class-wp-scripts.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,11 +1073,10 @@ private function filter_eligible_strategies( $handle, $eligible_strategies = nul
10731073
* @return string|null Highest fetch priority for the script and its dependents.
10741074
*/
10751075
private function get_highest_fetchpriority_with_dependents( string $handle, array $checked = array(), array &$stored_results = array() ): ?string {
1076-
if(isset($stored_results[$handle]) && !empty($stored_results[$handle])) {
1077-
return $stored_results[$handle];
1076+
if ( isset( $stored_results[ $handle ] ) && ! empty( $stored_results[ $handle ] ) ) {
1077+
return $stored_results[ $handle ];
10781078
}
10791079

1080-
10811080
// If there is a recursive dependency, return early.
10821081
if ( isset( $checked[ $handle ] ) ) {
10831082
return null;
@@ -1118,7 +1117,7 @@ private function get_highest_fetchpriority_with_dependents( string $handle, arra
11181117
}
11191118
}
11201119
}
1121-
$stored_results[$handle] = $priorities[ $highest_priority_index ];
1120+
$stored_results[ $handle ] = $priorities[ $highest_priority_index ];
11221121
return $priorities[ $highest_priority_index ];
11231122
}
11241123

0 commit comments

Comments
 (0)