| @@ -153,10 +153,10 @@ | ||
| 153 | 153 | $this->settings_selected_plugins( $this->get_default_settings_selected_plugins() ); |
| 154 | 154 | } |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - public function settings_include( $included_settings ) { | |
| 158 | - $this->settings_include = $included_settings; | |
| 157 | + public function settings_include( $include ) { | |
| 158 | + $this->settings_include = $include; | |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | public function get_settings_include() { |
| 162 | 162 | return $this->settings_include; |
| @@ -236,14 +236,12 @@ | ||
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | /** |
| 239 | 239 | * Init the zip archive. |
| 240 | - * | |
| 241 | - * @throws \Error If export process fails, file creation errors occur, or data serialization fails. | |
| 242 | 240 | */ |
| 243 | 241 | private function init_zip_archive() { |
| 244 | 242 | if ( ! class_exists( '\ZipArchive' ) ) { |
| 245 | - throw new \Error( static::ZIP_ARCHIVE_MODULE_MISSING ); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped | |
| 243 | + throw new \Error( static::ZIP_ARCHIVE_MODULE_MISSING ); | |
| 246 | 244 | } |
| 247 | 245 | |
| 248 | 246 | $zip = new \ZipArchive(); |
| 249 | 247 | |
| @@ -312,10 +310,10 @@ | ||
| 312 | 310 | /** |
| 313 | 311 | * Add json file to the zip archive. |
| 314 | 312 | * |
| 315 | 313 | * @param string $path The relative path to the file. |
| 316 | - * @param array $content The content of the file. | |
| 317 | - * @param int $json_flags | |
| 314 | + * @param array $content The content of the file. | |
| 315 | + * @param int $json_flags | |
| 318 | 316 | */ |
| 319 | 317 | private function add_json_file( $path, array $content, $json_flags = 0 ) { |
| 320 | 318 | if ( ! Str::ends_with( $path, '.json' ) ) { |
| 321 | 319 | $path .= '.json'; |