Plugin Directory

Changeset 2969430

Timestamp:
09/20/2023 07:46:58 PM (11 months ago)
Author:
nosilver4u
Message:

cleanup aws vendor folder

Location:
s3-image-optimizer/trunk
Files:
218 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • s3-image-optimizer/trunk/.travis.yml

    r2929806 r2969430  
    1515
    1616php:
    17   - 7.2
    18   - 7.4
     17  - 7.
     18  -
    1919
    2020env:
     
    2525  - phpenv config-rm xdebug.ini
    2626  - composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
    27   - composer global require phpcompatibility/php-compatibility:"dev-develop as 9.99.99"
    2827  - composer global require wp-coding-standards/wpcs phpcompatibility/phpcompatibility-wp
    29   - composer global require dealerdirect/phpcodesniffer-composer-installer
    3028
    3129script:
  • s3-image-optimizer/trunk/classes/class-amazon-web-services.php

    r2929806 r2969430  
    5656     * @return bool
    5757     */
    58     function are_access_keys_set() {
     58    function are_access_keys_set() {
    5959        return $this->get_access_key_id() && $this->get_secret_access_key();
    6060    }
     
    168168     * @throws \Exception AWS configuration/connection error.
    169169     */
    170     function get_client() {
     170    function get_client() {
    171171        if ( $this->needs_access_keys() ) {
    172             throw new \Exception( __( 'You must first set your AWS access keys to use S3 Image Optimizer.', 's3-image-optimizer' ) );
     172            throw new \Exception( __( 'You must first set your AWS access keys to use S3 Image Optimizer.', 's3-image-optimizer' ) );
    173173        }
    174174
  • s3-image-optimizer/trunk/classes/class-s3io-cli.php

    r2929806 r2969430  
    4545     * @param array $assoc_args An array of named arguments provided via WP-CLI.
    4646     */
    47     function optimize( $args, $assoc_args ) {
     47    function optimize( $args, $assoc_args ) {
    4848
    4949        // because NextGEN hasn't flushed it's buffers...
     
    115115        while ( $image_count > 0 ) {
    116116            s3io_bulk_loop( true, $verbose );
    117             $image_count--;
    118             $images_finished++;
     117            ;
     118            ;
    119119            WP_CLI::line( __( 'Optimized:', 's3-image-optimizer' ) . " $images_finished / $image_total" );
    120120            sleep( $delay );
     
    127127            while ( $image_count > 0 ) {
    128128                s3io_bulk_loop( true, $verbose );
    129                 $image_count--;
    130                 $images_finished++;
     129                ;
     130                ;
    131131                WP_CLI::line( __( 'Optimized:', 's3-image-optimizer' ) . " $images_finished / $image_total" );
    132132            }
  • s3-image-optimizer/trunk/phpcs.ruleset.xml

    r2550127 r2969430  
    44    <!-- Only sniff PHP files -->
    55    <arg name="extensions" value="php"/>
    6 
    7     <arg value="s"/>
    86
    97    <exclude-pattern>/vendor/*</exclude-pattern>
     
    3533    </rule>
    3634
     35
    3736    <rule ref="PHPCompatibilityWP">
    3837        <severity>10</severity>
  • s3-image-optimizer/trunk/readme.txt

    r2929806 r2969430  
    22Contributors: nosilver4u
    33Tags: amazon, s3, image, optimize, optimization, photo, picture, seo, compression, wp-cli
    4 Requires at least: 6.0
    5 Tested up to: 6.2
    6 Requires PHP: 7.2
     4Requires at least: 6.
     5Tested up to: 6.
     6Requires PHP: 7.
    77Stable tag: 2.5.0
    88License: GPLv3
     
    1515
    1616S3 IO features a web-based bulk optimization process, and a WP-CLI interface for massive buckets. S3 IO works with any S3-compatible storage service including Linode, Backblaze B2 and Digital Ocean Spaces.
     17
     18
    1719
    1820== Installation ==
     
    6163== Changelog ==
    6264
     65
     66
     67
    6368= 2.5.0 =
    6469* added: compatibility with EWWW Image Optimizer 7+ and better future-proofing to detect compatibility errors
  • s3-image-optimizer/trunk/s3-image-optimizer.php

    r2929806 r2969430  
    1414Version: 2.5.0
    1515Requires at least: 6.0
    16 Requires PHP: 7.2
     16Requires PHP: 7.
    1717Author URI: https://ewww.io/
    1818License: GPLv3
     
    3333add_filter( 'aws_get_client_args', 's3io_dospaces' );
    3434
    35 require_once( plugin_dir_path( __FILE__ ) . 'vendor/Aws3/aws-autoloader.php' );
    36 require_once( plugin_dir_path( __FILE__ ) . 'classes/class-amazon-web-services.php' );
     35require_once;
     36require_once;
    3737if ( defined( 'WP_CLI' ) && WP_CLI ) {
    38     require_once( plugin_dir_path( __FILE__ ) . 'classes/class-s3io-cli.php' );
     38    require_once;
    3939}
    4040
     
    116116
    117117    // Include the upgrade library to initialize a table.
    118     require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
     118    require_once;
    119119    dbDelta( $sql );
    120120
     
    769769            foreach ( $results as $result ) {
    770770                foreach ( $result['Contents'] as $object ) {
    771                     $scan_count++;
     771                    ;
    772772                    $skip_optimized = false;
    773773                    $path           = $object['Key'];
     
    794794                        }
    795795                        s3io_debug_message( "queuing $path in $bucket" );
    796                         $image_count++;
     796                        ;
    797797                    }
    798798                    if ( $scan_count >= 4000 && count( $images ) ) {
Note: See TracChangeset for help on using the changeset viewer.