| @@ -103,19 +103,4 @@ | ||
| 103 | 103 | } |
| 104 | 104 | // phpcs:enable |
| 105 | 105 | return false; |
| 106 | 106 | } |
| 107 | - | |
| 108 | -/** | |
| 109 | - * Returns an empty array if the value is null. | |
| 110 | - * | |
| 111 | - * @param mixed $value The value to check. | |
| 112 | - * | |
| 113 | - * @return array | |
| 114 | - */ | |
| 115 | -if ( ! function_exists( '__return_array_if_null' ) ) { | |
| 116 | - // phpcs:disable | |
| 117 | - function __return_array_if_null( $value ): array { | |
| 118 | - return $value ?? []; | |
| 119 | - } | |
| 120 | - // phpcs:enable | |
| 121 | -} | |