*/ protected function input_properties(): array { return array( ); } /** * @since 0.0.35 * @return array */ protected function required_input(): array { return array(); } /** * @since 0.0.35 * @return array */ protected function output_properties(): array { return array( 'server' => array( 'type' => 'string' ), 'htaccess_honoured' => array( 'type' => 'boolean', 'description' => __( 'False on nginx, IIS and Caddy, where a .htaccess in the backup directory has no effect.', 'acrossai-abilities-manager' ), ), 'directories' => array( 'type' => 'array', 'items' => array( 'type' => 'object', 'additionalProperties' => true ), ), 'exposed_count' => array( 'type' => 'integer' ), 'note' => array( 'type' => 'string' ), ); } /** * @since 0.0.35 * @return array */ protected function annotations(): array { return array( 'readonly' => true, 'destructive' => false, 'idempotent' => true, ); } /** * @since 0.0.35 * @param array $input Input. * @return array|WP_Error */ protected function run( array $input ) { unset( $input ); return Backup_Exposure::scan( 'UpdraftPlus', Backup_Repository::storage_paths() ); } }