Plugin Directory

Changeset 3415744


Ignore:
Timestamp:
12/09/2025 07:30:00 PM (5 weeks ago)
Author:
webdevstudios
Message:

release version 2.11.0

Location:
wp-search-with-algolia
Files:
1301 added
117 edited

Legend:

Unmodified
Added
Removed
  • wp-search-with-algolia/trunk/README.txt

    r3395185 r3415744  
    33Tags: algolia, autocomplete, instantsearch, relevance search, ai search
    44Requires at least: 5.3
    5 Tested up to: 6.8
     5Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 2.10.4
     7Stable tag: 2.11.0
    88License: GNU General Public License v2.0, MIT License
    99
     
    118118
    119119Follow along with the changelog on [Github](https://github.com/WebDevStudios/wp-search-with-algolia/releases).
     120
     121= 2.11.0 =
     122* Updated: Algolia PHP client (addresses PHP 8.4 compatibility notices)
     123* Updated: UI wording to match Algolia references and Instantsearch notes.
     124* Fixed: Return JSON error instead of echo exception message and continue to throw exception.
     125* Added: Inline documentation for various custom filters and actions.
     126* Added: Output custom debounce values in Autocomplete settings UI.
     127
    120128
    121129= 2.10.4 =
  • wp-search-with-algolia/trunk/algolia.php

    r3395185 r3415744  
    44 * Plugin URI:        https://github.com/WebDevStudios/wp-search-with-algolia
    55 * Description:       Integrate the powerful Algolia search service with WordPress
    6  * Version:           2.10.4
    7  * Requires at least: 5.3
     6 * Version:           2.11.0
     7 * Requires at least: 6.7.2
    88 * Requires PHP:      7.4
    99 * Author:            WebDevStudios
     
    2727
    2828// The Algolia Search plugin version.
    29 define( 'ALGOLIA_VERSION', '2.10.4' );
     29define( 'ALGOLIA_VERSION', '2.11.0' );
    3030
    3131// The minmum required PHP version.
  • wp-search-with-algolia/trunk/includes/admin/class-algolia-admin-page-settings.php

    r3335504 r3415744  
    161161        add_settings_field(
    162162            'algolia_search_api_key',
    163             esc_html__( 'Search-only API key', 'wp-search-with-algolia' ),
     163            esc_html__( 'Search API key', 'wp-search-with-algolia' ),
    164164            array( $this, 'search_api_key_callback' ),
    165165            $this->slug,
     
    240240        <input type="text" name="algolia_search_api_key" class="regular-text" value="<?php echo esc_attr( $setting ); ?>" <?php echo esc_html( $disabled_html ); ?>/>
    241241        <p class="description" id="home-description">
    242             <?php esc_html_e( 'Your Algolia Search-only API key (public).', 'wp-search-with-algolia' ); ?>
     242            <?php esc_html_e( 'Your Algolia Search API key (public).', 'wp-search-with-algolia' ); ?>
    243243        </p>
    244244        <?php
     
    358358                $this->option_group,
    359359                'empty',
    360                 esc_html__( 'Search-only API key should not be empty.', 'wp-search-with-algolia' )
     360                esc_html__( 'Search API key should not be empty.', 'wp-search-with-algolia' )
    361361            );
    362362        }
  • wp-search-with-algolia/trunk/includes/admin/class-algolia-admin.php

    r3196600 r3415744  
    88 * @package WebDevStudios\WPSWA
    99 */
     10
     11// phpcs:disable Squiz.Commenting.FunctionCommentThrowTag.WrongNumber -- We're using RuntimeException.
    1012
    1113/**
     
    273275            wp_send_json( $response );
    274276        } catch ( Exception $exception ) {
    275             echo esc_html( $exception->getMessage() );
    276             throw $exception;
     277            wp_send_json_error( array( 'message' => $exception->getMessage() ) );
    277278        }
    278279    }
     
    308309            wp_send_json( $response );
    309310        } catch ( Exception $exception ) {
    310             echo esc_html( $exception->getMessage() );
    311             throw $exception;
     311            wp_send_json_error( array( 'message' => $exception->getMessage() ) );
    312312        }
    313313    }
     
    400400    }
    401401}
     402
     403// phpcs:enable Squiz.Commenting.FunctionCommentThrowTag.WrongNumber -- We're using RuntimeException.
  • wp-search-with-algolia/trunk/includes/admin/partials/form-options.php

    r2931510 r3415744  
    2222        </form>
    2323    <?php else : ?>
    24         <?php do_action( 'wpswa_pro_override_settings_output' ); ?>
     24        <?php
     25        /**
     26         * Allows for custom output of settings page content.
     27         *
     28         * Most specifically used for WP Search with Algolia Pro
     29         *
     30         * @since 2.5.2
     31         */
     32        do_action( 'wpswa_pro_override_settings_output' ); ?>
    2533    <?php endif; ?>
    2634</div>
  • wp-search-with-algolia/trunk/includes/admin/partials/form-override-search-version-option.php

    r3297631 r3415744  
    1515        <input type="radio" value="legacy"
    1616            name="algolia_instantsearch_template_version" <?php checked( $value, 'legacy' ); ?>>
    17         <?php esc_html_e( 'Legacy', 'wp-search-with-algolia' ); ?>
     17        <?php esc_html_e( 'Legacy (instantsearch.php)', 'wp-search-with-algolia' ); ?>
    1818    </label>
    1919    <div class="radio-info">
     
    3434        <input type="radio" value="modern"
    3535            name="algolia_instantsearch_template_version" <?php checked( $value, 'modern' ); ?>>
    36         <?php esc_html_e( 'Modern', 'wp-search-with-algolia' ); ?>
     36        <?php esc_html_e( 'Modern (instantsearch-modern.php)', 'wp-search-with-algolia' ); ?>
    3737    </label>
    3838    <div class="radio-info">
     
    4949        ?>
    5050    </div>
     51    <p><strong><?php esc_html_e( 'Leave on current setting if you have InstantSearch customized via files in your active theme.', 'wp-search-with-algolia' ); ?></strong></p>
    5152</div>
  • wp-search-with-algolia/trunk/includes/admin/partials/page-autocomplete-config.php

    r3395185 r3415744  
    6262                    ?>
    6363                </small>
     64                <?php if ( $index['debounce'] > 0 ) : ?>
     65                    <br /><small>
     66                        <?php
     67                        printf(
     68                            // translators: placeholder is the custom debounce value.
     69                            esc_html__( 'Custom debounce timing: %s ms', 'wp-search-with-algolia' ),
     70                            esc_html( $index['debounce'] )
     71                        );
     72                        ?>
     73                    </small>
     74                <?php endif; ?>
    6475            </td>
    6576            <td>
  • wp-search-with-algolia/trunk/includes/class-algolia-autocomplete-config.php

    r2571200 r3415744  
    173173        }
    174174
     175        /**
     176         * Filters the configuration settings for Autocomplete.
     177         *
     178         * @since 1.0.0
     179         *
     180         * @param array $config Array of configuration options to be used with Autocomplete javascript configuration.
     181         */
    175182        $config = (array) apply_filters( 'algolia_autocomplete_config', $config );
    176183
  • wp-search-with-algolia/trunk/includes/class-algolia-plugin.php

    r3312717 r3415744  
    298298            'names'
    299299        );
     300
     301        /**
     302         * Filters the array of searchable post types.
     303         *
     304         * @since 1.0.0
     305         *
     306         * @param  array $searchable_post_types Array of registered post types that are not excluded from search.
     307         * @return array $value                 Filtered array of post types.
     308         */
    300309        $searchable_post_types = (array) apply_filters( 'algolia_searchable_post_types', $searchable_post_types );
    301310        $this->indices[]       = new Algolia_Searchable_Posts_Index( $searchable_post_types );
     
    329338        $this->indices[] = new Algolia_Users_Index();
    330339
    331         // Allow developers to filter the indices.
     340        /**
     341         * Filters the array of indices to load.
     342         *
     343         * @since 1.0.0
     344         *
     345         * @param  array $indices Array of indices to load.
     346         * @return array $value   Filtered array of indices.
     347         */
    332348        $this->indices = (array) apply_filters( 'algolia_indices', $this->indices );
    333349
     
    349365        }
    350366
     367        /**
     368         * Filters the array of changes watchers to work with.
     369         *
     370         * @since 1.0.0
     371         *
     372         * @param  array $change_watchers Array of watchers to work with.
     373         * @param  array $indices         Array of indices.
     374         * @return array $value           Filtered array of watchers.
     375         */
    351376        $this->changes_watchers = (array) apply_filters( 'algolia_changes_watchers', $this->changes_watchers, $this->indices );
    352377
  • wp-search-with-algolia/trunk/includes/class-algolia-search.php

    r2872613 r3415744  
    142142        );
    143143
     144        /**
     145         * Filters the order by clause for our backend search query.
     146         *
     147         * @since 1.0.0
     148         *
     149         * @param  null   $value Order by parameter. Default null.
     150         * @return string $value Filtered order by parameter.
     151         */
    144152        $order_by = apply_filters( 'algolia_search_order_by', null );
     153
     154        /**
     155         * Filters the order clause for our backend search query.
     156         *
     157         * @since 1.0.0
     158         *
     159         * @param  string $value Order parameter. Default 'desc'.
     160         * @return string $value Filtered order parameter.
     161         */
    145162        $order    = apply_filters( 'algolia_search_order', 'desc' );
    146163
     
    236253     *
    237254     * @author WebDevStudios <contact@webdevstudios.com>
    238      * @since  1.0.0
     255     * @since  1.2.0
    239256     *
    240257     * @return void
     
    245262        }
    246263
     264        /**
     265         * Filters whether or not to output styling for search highlight.
     266         *
     267         * @since 1.2.0
     268         *
     269         * @param  bool $value Whether or not to output styling CSS
     270         * @return bool $value Filtered determination.
     271         */
    247272        if ( ! apply_filters( 'algolia_search_highlighting_enable_bundled_styles', true ) ) {
    248273            return;
     
    355380     */
    356381    private function highlighting_enabled() : bool {
     382
     383        /**
     384         * Filters whether or not highlighting is enabled.
     385         *
     386         * @since 1.2.0
     387         *
     388         * @param  bool  $value Whether or not highlighting is enabled.
     389         * @return mixed $value Determined highlight enabled status.
     390         */
    357391        return apply_filters( 'algolia_search_highlighting_enabled', true );
    358392    }
  • wp-search-with-algolia/trunk/includes/class-algolia-settings.php

    r3335504 r3415744  
    198198        }
    199199
     200        /**
     201         * Filters the indices IDs that will be synced.
     202         *
     203         * @since 1.0.0
     204         *
     205         * @param  array $ids   Array of IDs to sync.
     206         * @return array $value Filtered array of IDs.
     207         */
    200208        return (array) apply_filters( 'algolia_get_synced_indices_ids', $ids );
    201209    }
     
    255263        );
    256264
     265        /**
     266         * Filters the array of taxonomies to be excluded from syncing.
     267         *
     268         * @since 1.7.0
     269         *
     270         * @param  array $excluded Array of taxonomies to exclude.
     271         * @return array $value    Filtered array of taxonomies.
     272         */
    257273        $excluded = (array) apply_filters( 'algolia_excluded_taxonomies', $excluded );
    258274
     
    357373        $value = $this->get_override_native_search() === 'instantsearch';
    358374
     375        /**
     376         * Filters whether or not we should override search with instantsearch.js
     377         *
     378         * @since 1.0.0
     379         *
     380         * @param  bool $value Whether or not we should override.
     381         * @return bool $value Filtered determination of override.
     382         */
    359383        return (bool) apply_filters( 'algolia_should_override_search_with_instantsearch', $value );
    360384    }
     
    369393     */
    370394    public function get_native_search_index_id() {
     395
     396        /**
     397         * Filters the native search index ID.
     398         *
     399         * @since 1.0.0
     400         *
     401         * @param  string $value The index ID for native search.
     402         * @return string $vaule The filtered index ID.
     403         */
    371404        return (string) apply_filters( 'algolia_native_search_index_id', 'searchable_posts' );
    372405    }
     
    542575        $chosen = get_option( 'algolia_instantsearch_template_version', 'legacy' );
    543576
     577        /**
     578         * Filters the chosen InstantSearch template version. Non-numerical.
     579         *
     580         * @since 2.9.0
     581         *
     582         * @param  string $chosen Current template version.
     583         * @return string $value  Final template version.
     584         */
    544585        return apply_filters( 'algolia_instantsearch_template_version', $chosen );
    545586    }
  • wp-search-with-algolia/trunk/includes/class-algolia-template-loader.php

    r3395185 r3415744  
    4141            ! $this->should_load_autocomplete() &&
    4242            ! $settings->should_override_search_with_instantsearch() &&
    43             ! $is_fse
     43            /**
     44             * Filters whether or not the current theme is a block based theme.
     45             *
     46             * WP Search with Algolia will help automatically detect and use this filter.
     47             *
     48             * @since 2.10.3
     49             *
     50             * @param bool $value Whether or not the current theme is block based. Default false.
     51             */
     52            ! apply_filters( 'algolia_is_block_theme', false )
    4453        ) {
    4554            return;
     
    97106            'autocomplete'         => [
    98107                'sources'        => $autocomplete_config->get_config(),
     108
     109                /**
     110                 * Filters the CSS-style selector used to locate search inputs to add Autocomplete to.
     111                 *
     112                 * @since 1.0.0
     113                 *
     114                 * @param  string $value Selector to target with.
     115                 * @return string $value Updated selector.
     116                 */
    99117                'input_selector' => (string) apply_filters( 'algolia_autocomplete_input_selector', "input[name='s']:not(.no-autocomplete):not(#adminbar-search)" ),
    100118            ],
     
    111129        }
    112130
    113         // Give developers a last chance to alter the configuration.
     131        /**
     132         * Filters the final result of the algolia config object to be used.
     133         *
     134         * Gives developers one last change to alter the configuration.
     135         *
     136         * @since 1.0.0
     137         *
     138         * @param  array $config Array of configuration options
     139         * @return array $config Final configuration.
     140         */
    114141        $config = (array) apply_filters( 'algolia_config', $config );
    115142
     
    160187        wp_enqueue_script( 'algolia-autocomplete-noconflict' );
    161188
    162         // Allow users to easily enqueue custom styles and scripts.
     189        /**
     190         * Fires after Algolia Autocomplete assets have been enqueued.
     191         *
     192         * Allows users to easily enqueue custom styles and scripts that could depend on Autocomplete.
     193         *
     194         * @since 1.0.0
     195         */
    163196        do_action( 'algolia_autocomplete_scripts' );
    164197    }
     
    211244                wp_enqueue_script( 'algolia-instantsearch' );
    212245
    213                 // Allow users to easily enqueue custom styles and scripts.
     246                /**
     247                 * Fires after Algolia Instantsearch assets have been enqueued.
     248                 *
     249                 * Allow users to easily enqueue custom styles and scripts that could depend on InstantSearch.
     250                 *
     251                 * @since 1.0.0
     252                 */
    214253                do_action( 'algolia_instantsearch_scripts' );
    215254            }
  • wp-search-with-algolia/trunk/includes/class-algolia-utils.php

    r3312717 r3415744  
    123123
    124124        if ( $post_thumbnail_id ) {
     125
     126            /**
     127             * Filters the sizes to fetch image paths for.
     128             *
     129             * @since 1.0.0
     130             *
     131             * @param  array $value Array of image sizes to fetch. Default: thumbnail.
     132             * @return array $value Amended array of images sizes.
     133             */
    125134            $sizes = (array) apply_filters( 'algolia_post_images_sizes', array( 'thumbnail' ) );
    126135            foreach ( $sizes as $size ) {
     
    206215        }
    207216
     217        /**
     218         * Filters the "noise" patterns to run content through.
     219         *
     220         * @since 1.0.0
     221         *
     222         * @param  array $value Array of REGEX patterns to use.
     223         * @return array Amended array of patterns.
     224         */
    208225        $noise_patterns = (array) apply_filters( 'algolia_strip_patterns', $noise_patterns );
    209226
     
    270287     */
    271288    public static function get_scripts_in_footer_argument() {
     289
    272290        /**
    273291         * Filters the `$in_footer` argument to `wp_register_script()` for Algolia Scripts.
  • wp-search-with-algolia/trunk/includes/factories/class-algolia-search-client-factory.php

    r3335504 r3415744  
    3232    public static function create( string $app_id, string $api_key ): SearchClient {
    3333
     34        /**
     35         * Filters the UA Integration name value.
     36         *
     37         * @since 1.0.0
     38         *
     39         * @param  string $value Default: "WP Search with Algolia"
     40         * @return string $value New UA integration name.
     41         */
    3442        $integration_name = (string) apply_filters(
    3543            'algolia_ua_integration_name',
     
    3745        );
    3846
     47        /**
     48         * Filters the UA Integration version value.
     49         *
     50         * @since 1.0.0
     51         *
     52         * @param  string $value Default: Current Algolia plugin version.
     53         * @return string $value Custom UA integration version.
     54         */
    3955        $integration_version = (string) apply_filters(
    4056            'algolia_ua_integration_version',
     
    6278         *
    6379         * @see https://www.algolia.com/doc/api-reference/api-methods/configuring-timeouts/
     80         *
    6481         * @since 2.8.0
    6582         *
     
    7592         *
    7693         * @see https://www.algolia.com/doc/api-reference/api-methods/generate-secured-api-key/
     94         *
     95         * @since 2.9.0
    7796         *
    7897         * @param array $value Array of secured API key arguments. Default empty array.
  • wp-search-with-algolia/trunk/includes/indices/class-algolia-index.php

    r3317213 r3415744  
    286286        $this->assert_is_supported( $item );
    287287        if ( $this->should_index( $item ) ) {
     288
     289            /**
     290             * Fires before the sync of an item.
     291             *
     292             * @since 1.0.0
     293             *
     294             * @param mixed $item The item to sync.
     295             */
    288296            do_action( 'algolia_before_get_records', $item );
    289297            $records = $this->get_records( $item );
     298
     299            /**
     300             * Fires after the sync of an item.
     301             *
     302             * @since 1.0.0
     303             *
     304             * @param mixed $item The item that was sync'd.
     305             */
    290306            do_action( 'algolia_after_get_records', $item );
    291307
     
    462478            }
    463479
     480            /**
     481             * Fires before the retrieval of a record to be re-indexed.
     482             *
     483             * @since 1.0.0
     484             *
     485             * @param mixed $item The item to be re-indexed.
     486             */
    464487            do_action( 'algolia_before_get_records', $item );
    465488            $item_records = $this->get_records( $item );
    466489            $records      = array_merge( $records, $item_records );
     490
     491            /**
     492             * Fires after the retrieval of a record to be re-indexed.
     493             *
     494             * @since 1.0.0
     495             *
     496             * @param mixed $item The item to be re-indexed.
     497             */
    467498            do_action( 'algolia_after_get_records', $item );
    468499
     
    513544
    514545        if ( $page === $max_num_pages ) {
     546
     547            /**
     548             * Fires at the end of the re-index process when all items have been processed.
     549             *
     550             * @since 1.0.0
     551             *
     552             * @param string $value The ID of the index being re-indexed.
     553             */
    515554            do_action( 'algolia_re_indexed_items', $this->get_id() );
    516555        }
     
    555594            }
    556595
     596            /**
     597             * Filters whether or not to force through settings for an existing index.
     598             *
     599             * @since 1.0.0
     600             *
     601             * @param bool   $value    Whether or not to force through settings. Default false.
     602             * @param string $index_id The ID of the index being considered.
     603             * @return bool  $value    Whether or not to force through settings.
     604             */
    557605            $force_settings_update = (bool) apply_filters( 'algolia_should_force_settings_update', false, $this->get_id() );
    558606
     
    657705     *
    658706     * @author WebDevStudios <contact@webdevstudios.com>
     707     *
    659708     * @since  1.0.0
    660709     */
     
    663712        $this->client->deleteIndex( $index_name );
    664713
     714        /**
     715         * Fires inside the de_index_items method.
     716         *
     717         * @since 1.0.0
     718         *
     719         * @param string $value The ID of the index being de-indexed
     720         */
    665721        do_action( 'algolia_de_indexed_items', $this->get_id() );
    666722    }
     
    675731     */
    676732    public function get_re_index_batch_size() {
     733
     734        /**
     735         * Filters the batch size to use for reindexing.
     736         *
     737         * @since 1.0.0
     738         *
     739         * @param  int $value Amount of items per batch. Default 100.
     740         * @return int $value Amount of items per batch.
     741         */
    677742        $batch_size = (int) apply_filters( 'algolia_indexing_batch_size', 100 );
     743
     744        /**
     745         * Filters the batch size to use for re-indexing.
     746         *
     747         * This is a dynamic filter with `$this->get_id()` portion allowing to filter batch size for specific indexes.
     748         *
     749         * @since 1.0.0
     750         *
     751         * @param int $value      Amount of items per batch. Default 100.
     752         * @param int $batch_size Amount of items per batch.
     753         */
    678754        $batch_size = (int) apply_filters( 'algolia_' . $this->get_id() . '_indexing_batch_size', $batch_size );
    679755
     
    784860     */
    785861    public function get_replicas() {
     862
     863        /**
     864         * Filters the array of index replicas.
     865         *
     866         * @since 1.0.0
     867         *
     868         * @param  array  $value Array of replicas. Default empty array.
     869         * @param  object $this  Current class instance.
     870         * @return array  $value Array of replicas to use.
     871         */
    786872        $replicas = (array) apply_filters( 'algolia_index_replicas', array(), $this );
     873
     874        /**
     875         * Filters the array of index replicas
     876         *
     877         * This is a dynamic filter with the `$this->get_id()` portion allowing to filter replicas for specific indexes.
     878         *
     879         * @since 1.0.0
     880         *
     881         * @param  array  $value Array of replicas. Default empty array.
     882         * @param  object $this  Current class instance.
     883         * @return array  $value Array of replicas to use.
     884         */
    787885        $replicas = (array) apply_filters( 'algolia_' . $this->get_id() . '_index_replicas', $replicas, $this );
    788886
  • wp-search-with-algolia/trunk/includes/indices/class-algolia-posts-index.php

    r3312717 r3415744  
    150150        $should_index = 'publish' === $post_status && empty( $post->post_password );
    151151
     152        /**
     153         * Filters whether or not to index a post.
     154         *
     155         * This filter is based on if the post is published and not private.
     156         *
     157         * @since 1.0.0
     158         *
     159         * @param  bool    $should_index Whether or not the post should be indexed.
     160         * @param  WP_Post $post         The post object.
     161         * @return bool    $value        Filtered should index status.
     162         */
    152163        return (bool) apply_filters( 'algolia_should_index_post', $should_index, $post );
    153164    }
     
    187198        $removed = remove_filter( 'the_content', 'wptexturize', 10 );
    188199
     200        /**
     201         * Filters the post's content before preparing to send to Algolia.
     202         *
     203         * This filter is run right before running through WordPress' `the_content` filter.
     204         *
     205         * @since 1.0.0
     206         *
     207         * @param  string  $post_content The post's content to be indexed.
     208         * @param  WP_Post $post         The post object.
     209         * @return string  $value        The filtered content.
     210         */
    189211        $post_content = apply_filters( 'algolia_post_content', $post->post_content, $post );
     212
     213        /** This filter is documented in wp-includes/post-template.php */
    190214        $post_content = apply_filters( 'the_content', $post_content ); // phpcs:ignore -- Legitimate use of Core hook.
    191215
     
    210234        }
    211235
     236        /**
     237         * Filters the post information that will go into the Algolia object.
     238         *
     239         * @since 1.0.0
     240         *
     241         * @param  array   $records Array of post information.
     242         * @param  WP_Post $post    The post object.
     243         * @return array   $value   Filtered post information.
     244         */
    212245        $records = (array) apply_filters( 'algolia_post_records', $records, $post );
     246
     247        /**
     248         * Filters the post information that will go into the Algolia object.
     249         *
     250         * This is a dynamic filter with the `$post->post_type` portion allowing to filter for just specific post types.
     251         *
     252         * @since 1.0.0
     253         *
     254         * @param  array   $records Array of post information.
     255         * @param  WP_Post $post    The post object.
     256         * @return array   $value   Filtered post information.
     257         */
    213258        $records = (array) apply_filters( 'algolia_post_' . $post->post_type . '_records', $records, $post );
    214259
     
    288333        }
    289334
     335        /**
     336         * Filters the shared attributes for a post object going into Algolia.
     337         *
     338         * @since 1.0.0
     339         *
     340         * @param  array   $shared_attributes Array of shared attributes between posts.
     341         * @param  WP_Post $post              The post object.
     342         * @return array   $value             Array of attributes to include on the post objects.
     343         */
    290344        $shared_attributes = (array) apply_filters( 'algolia_post_shared_attributes', $shared_attributes, $post );
     345
     346        /**
     347         * Filters the shared attributes for a post object going into Algolia.
     348         *
     349         * This is a dynamic filter with the `$post->post_type` portion allowing to filter for just specific post types.
     350         *
     351         * @since 1.0.0
     352         *
     353         * @param  array   $shared_attributes Array of shared attributes between posts.
     354         * @param  WP_Post $post              The post object.
     355         * @return array   $value             Array of attributes to include on the post objects.
     356         */
    291357        $shared_attributes = (array) apply_filters( 'algolia_post_' . $post->post_type . '_shared_attributes', $shared_attributes, $post );
    292358
     
    328394        );
    329395
     396        /**
     397         * Filters the settings for the posts index settings.
     398         *
     399         * @since 1.0.0
     400         *
     401         * @param  array  $settings  Array of settings to use for the index.
     402         * @param  string $post_type The post type being set up.
     403         * @return array  $value     Filtered index settings.
     404         */
    330405        $settings = (array) apply_filters( 'algolia_posts_index_settings', $settings, $this->post_type );
     406
     407        /**
     408         * Filters the settings for the posts index settings.
     409         *
     410         * This is a dynamic filter with the `$this->post_type` portion allowing to filter for just specific post types.
     411         *
     412         * @since 1.0.0
     413         *
     414         * @param  array $settings Array of settings to use for the index.
     415         * @return array $value    Filtered index settings.
     416         */
    331417        $settings = (array) apply_filters( 'algolia_posts_' . $this->post_type . '_index_settings', $settings );
    332418
     
    361447     */
    362448    protected function get_synonyms() {
     449
     450        /**
     451         * Filters the posts index synonyms to use.
     452         *
     453         * @since 1.0.0
     454         *
     455         * @param  array  $value     Array of synonyms to use. Default empty array.
     456         * @param  string $post_type The post type being set up.
     457         * @return array  $value     Filtered array of synonyms.
     458         */
    363459        $synonyms = (array) apply_filters( 'algolia_posts_index_synonyms', array(), $this->post_type );
     460
     461        /**
     462         * Filters the posts index synonyms to use.
     463         *
     464         * This is a dynamic filter with the `$this->post_type` portion allowing to filter for just specific post types.
     465         *
     466         * @since 1.0.0
     467         *
     468         * @param  array $value Array of synonyms to use. Default empty array.
     469         * @return array $value Filtered array of synonyms.
     470         */
    364471        $synonyms = (array) apply_filters( 'algolia_posts_' . $this->post_type . '_index_synonyms', $synonyms );
    365472
     
    444551        $this->set_post_records_count( $post, $new_records_count );
    445552
     553        /**
     554         * Fires after a given post was updated in Algolia.
     555         *
     556         * @since 1.0.0
     557         *
     558         * @param WP_Post $post    The post object being updated.
     559         * @param array   $records The records.
     560         */
    446561        do_action( 'algolia_posts_index_post_updated', $post, $records );
     562
     563        /**
     564         * Fires after a given post was updated in Algolia.
     565         *
     566         * This is a dynamic action hook with the `$post->post_type` portion allowing to hook in for only specific post types.
     567         *
     568         * @since 1.0.0
     569         *
     570         * @param WP_Post $post    The post object being updated.
     571         * @param array   $records The records.
     572         */
    447573        do_action( 'algolia_posts_index_post_' . $post->post_type . '_updated', $post, $records );
    448574    }
  • wp-search-with-algolia/trunk/includes/indices/class-algolia-searchable-posts-index.php

    r3312717 r3415744  
    137137        $should_index = 'publish' === $post->post_status && empty( $post->post_password );
    138138
     139        /**
     140         * Filters whether or not to index a searchable post.
     141         *
     142         * This filter is based on if the post is published and not private.
     143         *
     144         * @since 1.0.0
     145         *
     146         * @param  bool    $should_index Whether or not the post should be indexed.
     147         * @param  WP_Post $post         The post object.
     148         * @return bool    $value        Filtered should index status.
     149         */
    139150        return (bool) apply_filters( 'algolia_should_index_searchable_post', $should_index, $post );
    140151    }
     
    174185        $removed = remove_filter( 'the_content', 'wptexturize', 10 );
    175186
     187        /**
     188         * Filters the searchable post's content before preparing to send to Algolia.
     189         *
     190         * This filter is run right before running through WordPress' `the_content` filter.
     191         *
     192         * @since 1.0.0
     193         *
     194         * @param  string  $post_content The post's content to be indexed.
     195         * @param  WP_Post $post         The post object.
     196         * @return string  $value        The filtered content.
     197         */
    176198        $post_content = apply_filters( 'algolia_searchable_post_content', $post->post_content, $post );
     199
     200        /** This filter is documented in wp-includes/post-template.php */
    177201        $post_content = apply_filters( 'the_content', $post_content ); // phpcs:ignore -- Legitimate use of Core hook.
    178202
     
    197221        }
    198222
     223        /**
     224         * Filters the searchable post information that will go into the Algolia object.
     225         *
     226         * @since 1.0.0
     227         *
     228         * @param  array   $records Array of post information.
     229         * @param  WP_Post $post    The post object.
     230         * @return array   $value   Filtered post information.
     231         */
    199232        $records = (array) apply_filters( 'algolia_searchable_post_records', $records, $post );
     233
     234        /**
     235         * Filters the searchable post information that will go into the Algolia object.
     236         *
     237         * This is a dynamic filter with the `$post->post_type` portion allowing to filter for just specific post types.
     238         *
     239         * @since 1.0.0
     240         *
     241         * @param  array   $records Array of post information.
     242         * @param  WP_Post $post    The post object.
     243         * @return array   $value   Filtered post information.
     244         */
    200245        $records = (array) apply_filters( 'algolia_searchable_post_' . $post->post_type . '_records', $records, $post );
    201246
     
    272317        $shared_attributes['is_sticky'] = is_sticky( $post->ID ) ? 1 : 0;
    273318
     319        /**
     320         * Filters the shared attributes for a searchable post object going into Algolia.
     321         *
     322         * @since 1.0.0
     323         *
     324         * @param  array   $shared_attributes Array of shared attributes between posts.
     325         * @param  WP_Post $post              The post object.
     326         * @return array   $value             Array of attributes to include on the post objects.
     327         */
    274328        $shared_attributes = (array) apply_filters( 'algolia_searchable_post_shared_attributes', $shared_attributes, $post );
     329
     330        /**
     331         * Filters the shared attributes for a searchable post object going into Algolia.
     332         *
     333         * This is a dynamic filter with the `$post->post_type` portion allowing to filter for just specific post types.
     334         *
     335         * @since 1.0.0
     336         *
     337         * @param  array   $shared_attributes Array of shared attributes between posts.
     338         * @param  WP_Post $post              The post object.
     339         * @return array   $value             Array of attributes to include on the post objects.
     340         */
    275341        $shared_attributes = (array) apply_filters( 'algolia_searchable_post_' . $post->post_type . '_shared_attributes', $shared_attributes, $post );
    276342
     
    313379        );
    314380
     381        /**
     382         * Filters the settings for the searchable posts index settings.
     383         *
     384         * @since 1.0.0
     385         *
     386         * @param  array $settings Array of settings to use for the index.
     387         * @return array $value    Filtered index settings.
     388         */
    315389        $settings = (array) apply_filters( 'algolia_searchable_posts_index_settings', $settings );
    316390
     
    345419     */
    346420    protected function get_synonyms() {
     421        /**
     422         * Filters the searchable posts index synonyms to use.
     423         *
     424         * @since 1.0.0
     425         *
     426         * @param  array $value Array of synonyms to use. Default empty array.
     427         * @return array $value Filtered array of synonyms.
     428         */
    347429        $synonyms = (array) apply_filters( 'algolia_searchable_posts_index_synonyms', array() );
    348430
     
    425507        $this->set_post_records_count( $post, $new_records_count );
    426508
     509        /**
     510         * Fires after a given post was updated in Algolia.
     511         *
     512         * @since 1.0.0
     513         *
     514         * @param WP_Post $post    The post object being updated.
     515         * @param array   $records The records.
     516         */
    427517        do_action( 'algolia_searchable_posts_index_post_updated', $post, $records );
     518
     519        /**
     520         * Fires after a given post was updated in Algolia.
     521         *
     522         * This is a dynamic action hook with the `$post->post_type` portion allowing to hook in for only specific post types.
     523         *
     524         * @since 1.0.0
     525         *
     526         * @param WP_Post $post    The post object being updated.
     527         * @param array   $records The records.
     528         */
    428529        do_action( 'algolia_searchable_posts_index_post_' . $post->post_type . '_updated', $post, $records );
    429530    }
  • wp-search-with-algolia/trunk/includes/indices/class-algolia-terms-index.php

    r3312717 r3415744  
    7676        $should_index = $item->count > 0;
    7777
     78        /**
     79         * Filters whether or not to index a term.
     80         *
     81         * This filter is based on if it is used on at least one post.
     82         *
     83         * @since 1.0.0
     84         *
     85         * @param  bool  $should_index Whether or not the term should be indexed.
     86         * @param  mixed $item         The term object.
     87         * @return bool  $value        Filtered should index status.
     88         */
    7889        return (bool) apply_filters( 'algolia_should_index_term', $should_index, $item );
    7990    }
     
    104115        }
    105116
     117        /**
     118         * Filters the term information that will go into the Algolia object.
     119         *
     120         * @since 1.0.0
     121         *
     122         * @param  array $record Array of term information.
     123         * @param  mixed $item   The term object.
     124         * @return array $value  Filtered term information.
     125         */
    106126        $record = (array) apply_filters( 'algolia_term_record', $record, $item );
     127
     128        /**
     129         * Filters the term information that will go into the Algolia object.
     130         *
     131         * This is a dynamic filter with the `$item->taxonomy` portion allowing to filter for just specific taxonomies.
     132         *
     133         * @since 1.0.0
     134         *
     135         * @param  array $record Array of term information.
     136         * @param  mixed $item   The term object.
     137         * @return array $value  Filtered term information.
     138         */
    107139        $record = (array) apply_filters( 'algolia_term_' . $item->taxonomy . '_record', $record, $item );
    108140
     
    141173        );
    142174
     175        /**
     176         * Filters the settings for the terms index settings.
     177         *
     178         * @since 1.0.0
     179         *
     180         * @param  array  $settings Array of settings to use for the index.
     181         * @param  string $taxonomy Taxonomy slug for the current taxonomy index.
     182         * @return array  $value    Filtered index settings.
     183         */
    143184        $settings = (array) apply_filters( 'algolia_terms_index_settings', $settings, $this->taxonomy );
     185
     186        /**
     187         * Filters the settings for the terms index settings.
     188         *
     189         * This is a dynamic filter with the `$item->taxonomy` portion allowing to filter for just specific taxonomies.
     190         *
     191         * @since 1.0.0
     192         *
     193         * @param  array $settings Array of settings to use for the index
     194         * @return array $value    Filtered index settings.
     195         */
    144196        $settings = (array) apply_filters( 'algolia_terms_' . $this->taxonomy . '_index_settings', $settings );
    145197
     
    174226     */
    175227    protected function get_synonyms() {
     228
     229        /**
     230         * Filters the terms index synonyms to use.
     231         *
     232         * @since 1.0.0
     233         *
     234         * @param  array $value Array of synonyms to use. Default empty array.
     235         * @return array $value Filtered array of synonyms.
     236         */
    176237        return (array) apply_filters( 'algolia_terms_index_synonyms', array() );
    177238    }
  • wp-search-with-algolia/trunk/includes/indices/class-algolia-users-index.php

    r3312717 r3415744  
    5555        }
    5656
     57        /**
     58         * Filters whether or not to index a user.
     59         *
     60         * This filter is based on if the user has a published post.
     61         *
     62         * @since 1.0.0
     63         *
     64         * @param  bool  $should_index Whether or not the user should be indexed.
     65         * @param  mixed $item         The user object.
     66         * @return bool  $value        Filtered should index status.
     67         */
    5768        return (bool) apply_filters( 'algolia_should_index_user', $should_index, $item );
    5869    }
     
    95106        }
    96107
     108        /**
     109         * Filters the user information that will go into the Algolia object.
     110         *
     111         * @since 1.0.0
     112         *
     113         * @param  array $record Array of user information.
     114         * @param  mixed $item   The user object.
     115         * @return array $value  Filtered user information.
     116         */
    97117        $record = (array) apply_filters( 'algolia_user_record', $record, $item );
    98118
     
    132152        );
    133153
     154        /**
     155         * Filters the settings for the users index settings.
     156         *
     157         * @since 1.0.0
     158         *
     159         * @param  array $settings Array of settings to use for the index.
     160         * @return array $value    Filtered index settings.
     161         */
    134162        $settings = (array) apply_filters( 'algolia_users_index_settings', $settings );
    135163
     
    164192     */
    165193    protected function get_synonyms() {
     194
     195        /**
     196         * Filters the users index synonyms to use.
     197         *
     198         * @since 1.0.0
     199         *
     200         * @param  array $value Array of synonyms to use.
     201         * @return array $value Filtered array of synonyms.
     202         */
    166203        return (array) apply_filters( 'algolia_users_index_synonyms', array() );
    167204    }
  • wp-search-with-algolia/trunk/includes/utilities/class-algolia-template-utils.php

    r3297631 r3415744  
    169169    public static function locate_template( $file ) {
    170170
     171        /**
     172         * FIlters the location to look for template files.
     173         *
     174         * Allows for providing template files outside of the active theme
     175         * and outside of the plugin's default chain to check.
     176         *
     177         * Return null to resume checking all normal paths.
     178         *
     179         * @since 2.5.0
     180         *
     181         * @param  mixed  $value Custom server path to check for a file at. Default null.
     182         * @param  string $file  The current template file being requested.
     183         * @return string $value Specified file path.
     184         */
    171185        $custom_location = apply_filters(
    172186            'algolia_custom_template_location',
  • wp-search-with-algolia/trunk/includes/watchers/class-algolia-post-changes-watcher.php

    r3004006 r3415744  
    243243    public function on_meta_change( $meta_id, $object_id, $meta_key, $meta_value ) {
    244244        $keys = array( '_thumbnail_id' );
     245
     246        /**
     247         * Filters the meta keys to watch for changes on for posts.
     248         *
     249         * @since 1.0.0
     250         *
     251         * @param array  $keys      Array of meta keys to listen to. Default: '_thumbnail_id'.
     252         * @param int    $object_id The post ID.
     253         * @return array $value     Array of keys to listen to changes on.
     254         */
    245255        $keys = (array) apply_filters( 'algolia_watch_post_meta_keys', $keys, $object_id );
    246256
  • wp-search-with-algolia/trunk/includes/watchers/class-algolia-term-changes-watcher.php

    r2957494 r3415744  
    241241     *
    242242     * @param string|array $meta_id    The meta ID.
    243      * @param int          $object_id  The post ID.
     243     * @param int          $object_id  The term ID.
    244244     * @param string       $meta_key   The meta key.
    245245     * @param mixed        $meta_value The meta value.
     
    253253        // We will not listen for any specific key by default.
    254254        $keys = [];
     255
     256        /**
     257         * Filters the meta keys to watch for changes on for terms.
     258         *
     259         * @since 2.5.0
     260         *
     261         * @param  array $keys      Array of meta keys to listen to. Default: empty array.
     262         * @param  int   $object_id The term ID.
     263         * @return array $value     Array of meta keys to listen to changes on.
     264         */
    255265        $keys = (array) apply_filters( 'algolia_watch_term_meta_keys', $keys, $object_id );
    256266
  • wp-search-with-algolia/trunk/includes/watchers/class-algolia-user-changes-watcher.php

    r2887859 r3415744  
    170170     *
    171171     * @param string|array $meta_id    The meta ID.
    172      * @param int          $object_id  The post ID.
     172     * @param int          $object_id  The user ID.
    173173     * @param string       $meta_key   The meta key.
    174174     * @param mixed        $meta_value The meta value.
     
    182182        // We will not listen for any specific key by default.
    183183        $keys = [];
     184        /**
     185         * Filters the meta keys to watch for changes on for terms.
     186         *
     187         * @since 2.5.0
     188         *
     189         * @param  array $keys      Array of meta keys to listen to. Default: empty array.
     190         * @param  int   $object_id The user ID.
     191         * @return array $value     Array of meta keys to listen to changes on.
     192         */
    184193        $keys = (array) apply_filters( 'algolia_watch_user_meta_keys', $keys, $object_id );
    185194
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/AccountClient.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Algolia.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     
    1717final class Algolia
    1818{
    19     const VERSION = '3.3.2';
     19    const VERSION = '3.4.2';
    2020
    2121    /**
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/AnalyticsClient.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Cache/FileCacheDriver.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Cache/NullCacheDriver.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Config/AbstractConfig.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Config/AnalyticsConfig.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Config/InsightsConfig.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Config/PersonalizationConfig.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Config/PlacesConfig.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Config/RecommendConfig.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Config/RecommendationConfig.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Config/SearchConfig.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/AlgoliaException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/BadRequestException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/CannotWaitException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/MissingObjectId.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/NotFoundException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/ObjectNotFoundException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/RequestException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/RetriableException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/UnreachableException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/ValidUntilNotFoundException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/CurlHttpClient.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/GuzzleHttpClient.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     
    2121    private $client;
    2222
    23     public function __construct(GuzzleClient $client = null)
     23    public function __construct(?GuzzleClient $client = null)
    2424    {
    2525        $this->client = $client ?: static::buildClient();
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/HttpClientInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/Psr7/BufferStream.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     
    3939    }
    4040
    41     public function __toString()
     41    public function __toString(): string
    4242    {
    4343        return $this->getContents();
    4444    }
    4545
    46     public function getContents()
     46    public function getContents(): string
    4747    {
    4848        $buffer = $this->buffer;
     
    5252    }
    5353
    54     public function close()
     54    public function close(): void
    5555    {
    5656        $this->buffer = '';
     
    6262    }
    6363
    64     public function getSize()
     64    public function getSize(): ?int
    6565    {
    6666        return strlen($this->buffer);
    6767    }
    6868
    69     public function isReadable()
     69    public function isReadable(): bool
    7070    {
    7171        return true;
    7272    }
    7373
    74     public function isWritable()
     74    public function isWritable(): bool
    7575    {
    7676        return true;
    7777    }
    7878
    79     public function isSeekable()
     79    public function isSeekable(): bool
    8080    {
    8181        return false;
    8282    }
    8383
    84     public function rewind()
     84    public function rewind(): void
    8585    {
    8686        $this->seek(0);
    8787    }
    8888
    89     public function seek($offset, $whence = SEEK_SET)
     89    public function seek(int $offset, int $whence = SEEK_SET): void
    9090    {
    9191        throw new \RuntimeException('Cannot seek a BufferStream');
    9292    }
    9393
    94     public function eof()
     94    public function eof(): bool
    9595    {
    9696        return 0 === strlen($this->buffer);
    9797    }
    9898
    99     public function tell()
     99    public function tell(): int
    100100    {
    101101        throw new \RuntimeException('Cannot determine the position of a BufferStream');
     
    105105     * Reads data from the buffer.
    106106     */
    107     public function read($length)
     107    public function read(int $length): string
    108108    {
    109109        $currentLength = strlen($this->buffer);
     
    125125     * Writes data to the buffer.
    126126     */
    127     public function write($string)
     127    public function write(string $string): int
    128128    {
    129129        $this->buffer .= $string;
     
    137137    }
    138138
    139     public function getMetadata($key = null)
     139    public function getMetadata(?string $key = null)
    140140    {
    141141        if ('hwm' == $key) {
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/Psr7/PumpStream.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     
    5858    }
    5959
    60     public function __toString()
     60    public function __toString(): string
    6161    {
    6262        try {
     
    6767    }
    6868
    69     public function close()
     69    public function close(): void
    7070    {
    7171        $this->detach();
     
    7878    }
    7979
    80     public function getSize()
     80    public function getSize(): ?int
    8181    {
    8282        return $this->size;
    8383    }
    8484
    85     public function tell()
     85    public function tell(): int
    8686    {
    8787        return $this->tellPos;
    8888    }
    8989
    90     public function eof()
     90    public function eof(): bool
    9191    {
    9292        return !$this->source;
    9393    }
    9494
    95     public function isSeekable()
     95    public function isSeekable(): bool
    9696    {
    9797        return false;
    9898    }
    9999
    100     public function rewind()
     100    public function rewind(): void
    101101    {
    102102        $this->seek(0);
    103103    }
    104104
    105     public function seek($offset, $whence = SEEK_SET)
     105    public function seek(int $offset, int $whence = SEEK_SET): void
    106106    {
    107107        throw new \RuntimeException('Cannot seek a PumpStream');
    108108    }
    109109
    110     public function isWritable()
     110    public function isWritable(): bool
    111111    {
    112112        return false;
    113113    }
    114114
    115     public function write($string)
     115    public function write(string $string): int
    116116    {
    117117        throw new \RuntimeException('Cannot write to a PumpStream');
    118118    }
    119119
    120     public function isReadable()
     120    public function isReadable(): bool
    121121    {
    122122        return true;
    123123    }
    124124
    125     public function read($length)
     125    public function read(int $length): string
    126126    {
    127127        $data = $this->buffer->read($length);
     
    139139    }
    140140
    141     public function getContents()
     141    public function getContents(): string
    142142    {
    143143        $result = '';
     
    149149    }
    150150
    151     public function getMetadata($key = null)
     151    public function getMetadata(?string $key = null)
    152152    {
    153153        if (!$key) {
     
    155155        }
    156156
    157         return isset($this->metadata[$key]) ? $this->metadata[$key] : null;
     157        return $this->metadata[$key] ?? null;
    158158    }
    159159
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/Psr7/Request.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     
    1010
    1111use InvalidArgumentException;
     12use WebDevStudios\WPSWA\Psr\Http\Message\MessageInterface;
    1213use WebDevStudios\WPSWA\Psr\Http\Message\RequestInterface;
    1314use WebDevStudios\WPSWA\Psr\Http\Message\StreamInterface;
     
    7778     * @return string|null
    7879     */
    79     public function getRequestTarget()
     80    public function getRequestTarget(): string
    8081    {
    8182        if (null !== $this->requestTarget) {
     
    9798     * @return Request
    9899     */
    99     public function withRequestTarget($requestTarget)
     100    public function withRequestTarget($requestTarget): RequestInterface
    100101    {
    101102        if (preg_match('#\s#', $requestTarget)) {
     
    109110    }
    110111
    111     /**
    112      * @return string
    113      */
    114     public function getMethod()
     112    public function getMethod(): string
    115113    {
    116114        return $this->method;
     
    120118     * @return Request
    121119     */
    122     public function withMethod($method)
     120    public function withMethod(string $method): RequestInterface
    123121    {
    124122        $new = clone $this;
     
    131129     * @return Uri|UriInterface|string
    132130     */
    133     public function getUri()
     131    public function getUri(): UriInterface
    134132    {
    135133        return $this->uri;
     
    139137     * @return Request
    140138     */
    141     public function withUri(UriInterface $uri, $preserveHost = false)
     139    public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface
    142140    {
    143141        if ($uri === $this->uri) {
     
    181179    }
    182180
    183     /**
    184      * @return string
    185      */
    186     public function getProtocolVersion()
     181    public function getProtocolVersion(): string
    187182    {
    188183        return $this->protocol;
     
    192187     * @return Request
    193188     */
    194     public function withProtocolVersion($version)
     189    public function withProtocolVersion(string $version): MessageInterface
    195190    {
    196191        if ($this->protocol === $version) {
     
    203198    }
    204199
    205     /**
    206      * @return array
    207      */
    208     public function getHeaders()
     200    public function getHeaders(): array
    209201    {
    210202        return $this->headers;
    211203    }
    212204
    213     /**
    214      * @return bool
    215      */
    216     public function hasHeader($header)
    217     {
    218         return isset($this->headerNames[strtolower($header)]);
     205    public function hasHeader(string $name): bool
     206    {
     207        return isset($this->headerNames[strtolower($name)]);
    219208    }
    220209
     
    222211     * @return array|mixed
    223212     */
    224     public function getHeader($header)
    225     {
    226         $header = strtolower($header);
    227         if (!isset($this->headerNames[$header])) {
     213    public function getHeader(string $name): array
     214    {
     215        $name = strtolower($name);
     216        if (!isset($this->headerNames[$name])) {
    228217            return [];
    229218        }
    230         $header = $this->headerNames[$header];
    231 
    232         return $this->headers[$header];
    233     }
    234 
    235     /**
    236      * @return string
    237      */
    238     public function getHeaderLine($header)
    239     {
    240         return implode(', ', $this->getHeader($header));
    241     }
    242 
    243     /**
    244      * @return Request
    245      */
    246     public function withHeader($header, $value)
     219        $name = $this->headerNames[$name];
     220
     221        return $this->headers[$name];
     222    }
     223
     224    public function getHeaderLine(string $name): string
     225    {
     226        return implode(', ', $this->getHeader($name));
     227    }
     228
     229    public function withHeader(string $name, $value): MessageInterface
    247230    {
    248231        if (!is_array($value)) {
     
    250233        }
    251234        $value = $this->trimHeaderValues($value);
    252         $normalized = strtolower($header);
     235        $normalized = strtolower($name);
    253236        $new = clone $this;
    254237        if (isset($new->headerNames[$normalized])) {
    255238            unset($new->headers[$new->headerNames[$normalized]]);
    256239        }
    257         $new->headerNames[$normalized] = $header;
    258         $new->headers[$header] = $value;
    259 
    260         return $new;
    261     }
    262 
    263     /**
    264      * @return Request
    265      */
    266     public function withAddedHeader($header, $value)
     240        $new->headerNames[$normalized] = $name;
     241        $new->headers[$name] = $value;
     242
     243        return $new;
     244    }
     245
     246    /**
     247     * @return Request
     248     */
     249    public function withAddedHeader(string $name, $value): MessageInterface
    267250    {
    268251        if (!is_array($value)) {
     
    270253        }
    271254        $value = $this->trimHeaderValues($value);
    272         $normalized = strtolower($header);
     255        $normalized = strtolower($name);
    273256        $new = clone $this;
    274257        if (isset($new->headerNames[$normalized])) {
    275             $header = $this->headerNames[$normalized];
    276             $new->headers[$header] = array_merge($this->headers[$header], $value);
     258            $name = $this->headerNames[$normalized];
     259            $new->headers[$name] = array_merge($this->headers[$name], $value);
    277260        } else {
    278             $new->headerNames[$normalized] = $header;
    279             $new->headers[$header] = $value;
    280         }
    281 
    282         return $new;
    283     }
    284 
    285     /**
    286      * @return Request
    287      */
    288     public function withoutHeader($header)
    289     {
    290         $normalized = strtolower($header);
     261            $new->headerNames[$normalized] = $name;
     262            $new->headers[$name] = $value;
     263        }
     264
     265        return $new;
     266    }
     267
     268    /**
     269     * @return Request
     270     */
     271    public function withoutHeader(string $name): MessageInterface
     272    {
     273        $normalized = strtolower($name);
    291274        if (!isset($this->headerNames[$normalized])) {
    292275            return $this;
    293276        }
    294         $header = $this->headerNames[$normalized];
    295         $new = clone $this;
    296         unset($new->headers[$header], $new->headerNames[$normalized]);
     277        $name = $this->headerNames[$normalized];
     278        $new = clone $this;
     279        unset($new->headers[$name], $new->headerNames[$normalized]);
    297280
    298281        return $new;
     
    302285     * @return PumpStream|Stream|StreamInterface
    303286     */
    304     public function getBody()
     287    public function getBody(): StreamInterface
    305288    {
    306289        if (!$this->stream) {
     
    314297     * @return Request
    315298     */
    316     public function withBody(StreamInterface $body)
     299    public function withBody(StreamInterface $body): MessageInterface
    317300    {
    318301        if ($body === $this->stream) {
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/Psr7/Response.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     
    99namespace WebDevStudios\WPSWA\Algolia\AlgoliaSearch\Http\Psr7;
    1010
     11use WebDevStudios\WPSWA\Psr\Http\Message\MessageInterface;
    1112use WebDevStudios\WPSWA\Psr\Http\Message\ResponseInterface;
    1213use WebDevStudios\WPSWA\Psr\Http\Message\StreamInterface;
     
    132133    }
    133134
    134     /**
    135      * @return int
    136      */
    137     public function getStatusCode()
     135    public function getStatusCode(): int
    138136    {
    139137        return $this->statusCode;
    140138    }
    141139
    142     /**
    143      * @return string
    144      */
    145     public function getReasonPhrase()
     140    public function getReasonPhrase(): string
    146141    {
    147142        return $this->reasonPhrase;
     
    151146     * @return static
    152147     */
    153     public function withStatus($code, $reasonPhrase = '')
     148    public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface
    154149    {
    155150        $new = clone $this;
     
    163158    }
    164159
    165     /**
    166      * @return string
    167      */
    168     public function getProtocolVersion()
     160    public function getProtocolVersion(): string
    169161    {
    170162        return $this->protocol;
     
    174166     * @return static
    175167     */
    176     public function withProtocolVersion($version)
     168    public function withProtocolVersion(string $version): MessageInterface
    177169    {
    178170        if ($this->protocol === $version) {
     
    186178    }
    187179
    188     /**
    189      * @return array
    190      */
    191     public function getHeaders()
     180    public function getHeaders(): array
    192181    {
    193182        return $this->headers;
    194183    }
    195184
    196     /**
    197      * @return bool
    198      */
    199     public function hasHeader($header)
    200     {
    201         return isset($this->headerNames[strtolower($header)]);
    202     }
    203 
    204     /**
    205      * @return array
    206      */
    207     public function getHeader($header)
    208     {
    209         $header = strtolower($header);
    210 
    211         if (!isset($this->headerNames[$header])) {
     185    public function hasHeader(string $name): bool
     186    {
     187        return isset($this->headerNames[strtolower($name)]);
     188    }
     189
     190    public function getHeader(string $name): array
     191    {
     192        $name = strtolower($name);
     193
     194        if (!isset($this->headerNames[$name])) {
    212195            return [];
    213196        }
    214197
    215         $header = $this->headerNames[$header];
    216 
    217         return $this->headers[$header];
    218     }
    219 
    220     /**
    221      * @return string
    222      */
    223     public function getHeaderLine($header)
    224     {
    225         return implode(', ', $this->getHeader($header));
    226     }
    227 
    228     /**
    229      * @return static
    230      */
    231     public function withHeader($header, $value)
     198        $name = $this->headerNames[$name];
     199
     200        return $this->headers[$name];
     201    }
     202
     203    public function getHeaderLine(string $name): string
     204    {
     205        return implode(', ', $this->getHeader($name));
     206    }
     207
     208    /**
     209     * @return static
     210     */
     211    public function withHeader(string $name, $value): MessageInterface
    232212    {
    233213        if (!is_array($value)) {
     
    236216
    237217        $value = $this->trimHeaderValues($value);
    238         $normalized = strtolower($header);
     218        $normalized = strtolower($name);
    239219
    240220        $new = clone $this;
     
    242222            unset($new->headers[$new->headerNames[$normalized]]);
    243223        }
    244         $new->headerNames[$normalized] = $header;
    245         $new->headers[$header] = $value;
    246 
    247         return $new;
    248     }
    249 
    250     /**
    251      * @return static
    252      */
    253     public function withAddedHeader($header, $value)
     224        $new->headerNames[$normalized] = $name;
     225        $new->headers[$name] = $value;
     226
     227        return $new;
     228    }
     229
     230    /**
     231     * @return static
     232     */
     233    public function withAddedHeader(string $name, $value): MessageInterface
    254234    {
    255235        if (!is_array($value)) {
     
    258238
    259239        $value = $this->trimHeaderValues($value);
    260         $normalized = strtolower($header);
     240        $normalized = strtolower($name);
    261241
    262242        $new = clone $this;
    263243        if (isset($new->headerNames[$normalized])) {
    264             $header = $this->headerNames[$normalized];
    265             $new->headers[$header] = array_merge($this->headers[$header], $value);
     244            $name = $this->headerNames[$normalized];
     245            $new->headers[$name] = array_merge($this->headers[$name], $value);
    266246        } else {
    267             $new->headerNames[$normalized] = $header;
    268             $new->headers[$header] = $value;
    269         }
    270 
    271         return $new;
    272     }
    273 
    274     /**
    275      * @return static
    276      */
    277     public function withoutHeader($header)
    278     {
    279         $normalized = strtolower($header);
     247            $new->headerNames[$normalized] = $name;
     248            $new->headers[$name] = $value;
     249        }
     250
     251        return $new;
     252    }
     253
     254    /**
     255     * @return static
     256     */
     257    public function withoutHeader(string $name): MessageInterface
     258    {
     259        $normalized = strtolower($name);
    280260
    281261        if (!isset($this->headerNames[$normalized])) {
     
    283263        }
    284264
    285         $header = $this->headerNames[$normalized];
    286 
    287         $new = clone $this;
    288         unset($new->headers[$header], $new->headerNames[$normalized]);
    289 
    290         return $new;
    291     }
    292 
    293     /**
    294      * @return \StreamInterface
    295      */
    296     public function getBody()
     265        $name = $this->headerNames[$normalized];
     266
     267        $new = clone $this;
     268        unset($new->headers[$name], $new->headerNames[$normalized]);
     269
     270        return $new;
     271    }
     272
     273    public function getBody(): StreamInterface
    297274    {
    298275        if (!$this->stream) {
     
    306283     * @return static
    307284     */
    308     public function withBody(StreamInterface $body)
     285    public function withBody(StreamInterface $body): MessageInterface
    309286    {
    310287        if ($body === $this->stream) {
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/Psr7/Stream.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     
    9292    }
    9393
    94     public function __toString()
     94    public function __toString(): string
    9595    {
    9696        try {
     
    103103    }
    104104
    105     /**
    106      * @return string
    107      */
    108     public function getContents()
     105    public function getContents(): string
    109106    {
    110107        if (!isset($this->stream)) {
     
    121118    }
    122119
    123     /**
    124      * @return void
    125      */
    126     public function close()
     120    public function close(): void
    127121    {
    128122        if (isset($this->stream)) {
     
    154148     * @return mixed|null
    155149     */
    156     public function getSize()
     150    public function getSize(): ?int
    157151    {
    158152        if (null !== $this->size) {
     
    179173    }
    180174
    181     /**
    182      * @return bool
    183      */
    184     public function isReadable()
     175    public function isReadable(): bool
    185176    {
    186177        return $this->readable;
    187178    }
    188179
    189     /**
    190      * @return bool
    191      */
    192     public function isWritable()
     180    public function isWritable(): bool
    193181    {
    194182        return $this->writable;
     
    198186     * @return bool|mixed
    199187     */
    200     public function isSeekable()
     188    public function isSeekable(): bool
    201189    {
    202190        return $this->seekable;
    203191    }
    204192
    205     /**
    206      * @return bool
    207      */
    208     public function eof()
     193    public function eof(): bool
    209194    {
    210195        if (!isset($this->stream)) {
     
    215200    }
    216201
    217     /**
    218      * @return int
    219      */
    220     public function tell()
     202    public function tell(): int
    221203    {
    222204        if (!isset($this->stream)) {
     
    233215    }
    234216
    235     /**
    236      * @return void
    237      */
    238     public function rewind()
     217    public function rewind(): void
    239218    {
    240219        $this->seek(0);
    241220    }
    242221
    243     /**
    244      * @return void
    245      */
    246     public function seek($offset, $whence = SEEK_SET)
     222    public function seek(int $offset, int $whence = SEEK_SET): void
    247223    {
    248224        if (!isset($this->stream)) {
     
    257233    }
    258234
    259     /**
    260      * @return string
    261      */
    262     public function read($length)
     235    public function read(int $length): string
    263236    {
    264237        if (!isset($this->stream)) {
     
    284257    }
    285258
    286     /**
    287      * @return int
    288      */
    289     public function write($string)
     259    public function write(string $string): int
    290260    {
    291261        if (!isset($this->stream)) {
     
    310280     * @return array|mixed|null
    311281     */
    312     public function getMetadata($key = null)
     282    public function getMetadata(?string $key = null)
    313283    {
    314284        if (!isset($this->stream)) {
     
    322292        $meta = stream_get_meta_data($this->stream);
    323293
    324         return isset($meta[$key]) ? $meta[$key] : null;
     294        return $meta[$key] ?? null;
    325295    }
    326296}
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/Psr7/Uri.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     
    8888    }
    8989
    90     public function __toString()
     90    public function __toString(): string
    9191    {
    9292        return self::composeComponents(
     
    252252     * @see https://tools.ietf.org/html/rfc3986#section-4.4
    253253     */
    254     public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null)
     254    public static function isSameDocumentReference(UriInterface $uri, ?UriInterface $base = null)
    255255    {
    256256        if (null !== $base) {
     
    391391    }
    392392
    393     /**
    394      * @return string
    395      */
    396     public function getScheme()
     393    public function getScheme(): string
    397394    {
    398395        return $this->scheme;
    399396    }
    400397
    401     /**
    402      * @return string
    403      */
    404     public function getAuthority()
     398    public function getAuthority(): string
    405399    {
    406400        $authority = $this->host;
     
    416410    }
    417411
    418     /**
    419      * @return string
    420      */
    421     public function getUserInfo()
     412    public function getUserInfo(): string
    422413    {
    423414        return $this->userInfo;
    424415    }
    425416
    426     /**
    427      * @return string
    428      */
    429     public function getHost()
     417    public function getHost(): string
    430418    {
    431419        return $this->host;
    432420    }
    433421
    434     /**
    435      * @return int|null
    436      */
    437     public function getPort()
     422    public function getPort(): ?int
    438423    {
    439424        return $this->port;
    440425    }
    441426
    442     /**
    443      * @return string
    444      */
    445     public function getPath()
     427    public function getPath(): string
    446428    {
    447429        return $this->path;
    448430    }
    449431
    450     /**
    451      * @return string
    452      */
    453     public function getQuery()
     432    public function getQuery(): string
    454433    {
    455434        return $this->query;
    456435    }
    457436
    458     /**
    459      * @return string
    460      */
    461     public function getFragment()
     437    public function getFragment(): string
    462438    {
    463439        return $this->fragment;
     
    467443     * @return Uri
    468444     */
    469     public function withScheme($scheme)
     445    public function withScheme(string $scheme): UriInterface
    470446    {
    471447        $scheme = $this->filterScheme($scheme);
     
    486462     * @return Uri
    487463     */
    488     public function withUserInfo($user, $password = null)
     464    public function withUserInfo(string $user, ?string $password = null): UriInterface
    489465    {
    490466        $info = $user;
     
    507483     * @return Uri
    508484     */
    509     public function withHost($host)
     485    public function withHost(string $host): UriInterface
    510486    {
    511487        $host = $this->filterHost($host);
     
    525501     * @return Uri
    526502     */
    527     public function withPort($port)
     503    public function withPort(?int $port): UriInterface
    528504    {
    529505        $port = $this->filterPort($port);
     
    544520     * @return Uri
    545521     */
    546     public function withPath($path)
     522    public function withPath(string $path): UriInterface
    547523    {
    548524        $path = $this->filterPath($path);
     
    562538     * @return Uri
    563539     */
    564     public function withQuery($query)
     540    public function withQuery(string $query): UriInterface
    565541    {
    566542        $query = $this->filterQueryAndFragment($query);
     
    579555     * @return Uri
    580556     */
    581     public function withFragment($fragment)
     557    public function withFragment(string $fragment): UriInterface
    582558    {
    583559        $fragment = $this->filterQueryAndFragment($fragment);
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/Psr7/UriResolver.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/Psr7/functions.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Insights/UserInsightsClient.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/InsightsClient.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Iterators/AbstractAlgoliaIterator.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Iterators/ObjectIterator.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Iterators/RuleIterator.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Iterators/SynonymIterator.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Log/DebugLogger.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/PersonalizationClient.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/PlacesClient.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/RecommendClient.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/RecommendationClient.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/RequestOptions/RequestOptions.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/RequestOptions/RequestOptionsFactory.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/AbstractResponse.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/AddApiKeyResponse.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/BatchIndexingResponse.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/DeleteApiKeyResponse.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/DictionaryResponse.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/IndexingResponse.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/MultiResponse.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/MultipleIndexBatchIndexingResponse.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/NullResponse.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/RestoreApiKeyResponse.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/UpdateApiKeyResponse.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/RetryStrategy/ApiWrapper.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     
    6464        AbstractConfig $config,
    6565        ClusterHosts $clusterHosts,
    66         RequestOptionsFactory $RqstOptsFactory = null,
    67         LoggerInterface $logger = null
     66        ?RequestOptionsFactory $RqstOptsFactory = null,
     67        ?LoggerInterface $logger = null
    6868    ) {
    6969        $this->http = $http;
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/RetryStrategy/ApiWrapperInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/RetryStrategy/ClusterHosts.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/RetryStrategy/Host.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/RetryStrategy/HostCollection.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/SearchClient.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/SearchIndex.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Support/Helpers.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     
    116116        $data = \json_decode($json, $assoc, $depth);
    117117        if (JSON_ERROR_NONE !== json_last_error()) {
    118             throw new \InvalidArgumentException('json_decode error: '.json_last_error_msg());
     118            throw new \InvalidArgumentException(sprintf(<<<'EXCEPTION'
     119json_decode_error: %s
     120input string: %s
     121EXCEPTION, json_last_error_msg(), $json));
    119122        }
    120123
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/Support/UserAgent.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/algolia/algoliasearch-client-php/src/functions.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/http-message/src/MessageInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     8
     9declare(strict_types=1);
    810
    911namespace WebDevStudios\WPSWA\Psr\Http\Message;
     
    4547     * @return static
    4648     */
    47     public function withProtocolVersion($version);
     49    public function withProtocolVersion(string $version);
    4850
    4951    /**
     
    8284     *     no matching header name is found in the message.
    8385     */
    84     public function hasHeader($name);
     86    public function hasHeader(string $name);
    8587
    8688    /**
     
    98100     *    return an empty array.
    99101     */
    100     public function getHeader($name);
     102    public function getHeader(string $name);
    101103
    102104    /**
     
    119121     *    the message, this method MUST return an empty string.
    120122     */
    121     public function getHeaderLine($name);
     123    public function getHeaderLine(string $name);
    122124
    123125    /**
     
    136138     * @throws \InvalidArgumentException for invalid header names or values.
    137139     */
    138     public function withHeader($name, $value);
     140    public function withHeader(string $name, $value);
    139141
    140142    /**
     
    154156     * @throws \InvalidArgumentException for invalid header names or values.
    155157     */
    156     public function withAddedHeader($name, $value);
     158    public function withAddedHeader(string $name, $value);
    157159
    158160    /**
     
    168170     * @return static
    169171     */
    170     public function withoutHeader($name);
     172    public function withoutHeader(string $name);
    171173
    172174    /**
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/http-message/src/RequestInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     8
     9declare(strict_types=1);
    810
    911namespace WebDevStudios\WPSWA\Psr\Http\Message;
     
    6264     * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
    6365     *     request-target forms allowed in request messages)
    64      * @param mixed $requestTarget
     66     * @param string $requestTarget
    6567     * @return static
    6668     */
    67     public function withRequestTarget($requestTarget);
     69    public function withRequestTarget(string $requestTarget);
    6870
    6971    /**
     
    8991     * @throws \InvalidArgumentException for invalid HTTP methods.
    9092     */
    91     public function withMethod($method);
     93    public function withMethod(string $method);
    9294
    9395    /**
     
    132134     * @return static
    133135     */
    134     public function withUri(UriInterface $uri, $preserveHost = false);
     136    public function withUri(UriInterface $uri, bool $preserveHost = false);
    135137}
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/http-message/src/ResponseInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     8
     9declare(strict_types=1);
    810
    911namespace WebDevStudios\WPSWA\Psr\Http\Message;
     
    5658     * @throws \InvalidArgumentException For invalid status code arguments.
    5759     */
    58     public function withStatus($code, $reasonPhrase = '');
     60    public function withStatus(int $code, string $reasonPhrase = '');
    5961
    6062    /**
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/http-message/src/ServerRequestInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     8
     9declare(strict_types=1);
    810
    911namespace WebDevStudios\WPSWA\Psr\Http\Message;
     
    231233     * @return mixed
    232234     */
    233     public function getAttribute($name, $default = null);
     235    public function getAttribute(string $name, $default = null);
    234236
    235237    /**
     
    248250     * @return static
    249251     */
    250     public function withAttribute($name, $value);
     252    public function withAttribute(string $name, $value);
    251253
    252254    /**
     
    264266     * @return static
    265267     */
    266     public function withoutAttribute($name);
     268    public function withoutAttribute(string $name);
    267269}
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/http-message/src/StreamInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     8
     9declare(strict_types=1);
    810
    911namespace WebDevStudios\WPSWA\Psr\Http\Message;
     
    9193     * @throws \RuntimeException on failure.
    9294     */
    93     public function seek($offset, $whence = SEEK_SET);
     95    public function seek(int $offset, int $whence = SEEK_SET);
    9496
    9597    /**
     
    119121     * @throws \RuntimeException on failure.
    120122     */
    121     public function write($string);
     123    public function write(string $string);
    122124
    123125    /**
     
    138140     * @throws \RuntimeException if an error occurs.
    139141     */
    140     public function read($length);
     142    public function read(int $length);
    141143
    142144    /**
     
    156158     *
    157159     * @link http://php.net/manual/en/function.stream-get-meta-data.php
    158      * @param string $key Specific metadata to retrieve.
     160     * @param string|null $key Specific metadata to retrieve.
    159161     * @return array|mixed|null Returns an associative array if no key is
    160162     *     provided. Returns a specific key value if a key is provided and the
    161163     *     value is found, or null if the key is not found.
    162164     */
    163     public function getMetadata($key = null);
     165    public function getMetadata(?string $key = null);
    164166}
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/http-message/src/UploadedFileInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     8
     9declare(strict_types=1);
    810
    911namespace WebDevStudios\WPSWA\Psr\Http\Message;
     
    6971     *     the second or subsequent call to the method.
    7072     */
    71     public function moveTo($targetPath);
     73    public function moveTo(string $targetPath);
    7274   
    7375    /**
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/http-message/src/UriInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
     8
     9declare(strict_types=1);
     10
    811namespace WebDevStudios\WPSWA\Psr\Http\Message;
    912
     
    195198     * @throws \InvalidArgumentException for invalid or unsupported schemes.
    196199     */
    197     public function withScheme($scheme);
     200    public function withScheme(string $scheme);
    198201
    199202    /**
     
    211214     * @return static A new instance with the specified user information.
    212215     */
    213     public function withUserInfo($user, $password = null);
     216    public function withUserInfo(string $user, ?string $password = null);
    214217
    215218    /**
     
    225228     * @throws \InvalidArgumentException for invalid hostnames.
    226229     */
    227     public function withHost($host);
     230    public function withHost(string $host);
    228231
    229232    /**
     
    244247     * @throws \InvalidArgumentException for invalid ports.
    245248     */
    246     public function withPort($port);
     249    public function withPort(?int $port);
    247250
    248251    /**
     
    268271     * @throws \InvalidArgumentException for invalid paths.
    269272     */
    270     public function withPath($path);
     273    public function withPath(string $path);
    271274
    272275    /**
     
    285288     * @throws \InvalidArgumentException for invalid query strings.
    286289     */
    287     public function withQuery($query);
     290    public function withQuery(string $query);
    288291
    289292    /**
     
    301304     * @return static A new instance with the specified fragment.
    302305     */
    303     public function withFragment($fragment);
     306    public function withFragment(string $fragment);
    304307
    305308    /**
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/log/Psr/Log/AbstractLogger.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/log/Psr/Log/InvalidArgumentException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/log/Psr/Log/LogLevel.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/log/Psr/Log/LoggerAwareInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/log/Psr/Log/LoggerAwareTrait.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/log/Psr/Log/LoggerInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/log/Psr/Log/LoggerTrait.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/log/Psr/Log/NullLogger.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/log/Psr/Log/Test/DummyTest.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/log/Psr/Log/Test/LoggerInterfaceTest.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/log/Psr/Log/Test/TestLogger.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/simple-cache/src/CacheException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/simple-cache/src/CacheInterface.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
  • wp-search-with-algolia/trunk/vendor_prefixed/psr/simple-cache/src/InvalidArgumentException.php

    r2872613 r3415744  
    33 * @license MIT
    44 *
    5  * Modified by WebDevStudios on 23-February-2023 using Strauss.
     5 * Modified by WebDevStudios on 01-July-2025 using Strauss.
    66 * @see https://github.com/BrianHenryIE/strauss
    77 */
Note: See TracChangeset for help on using the changeset viewer.