Commit 4f42699f authored by Brandon DuRette's avatar Brandon DuRette
Browse files

WP coding standards

parent 148e8874
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -3,13 +3,17 @@
class S3_Uploads_Stream_Wrapper extends Aws\S3\StreamWrapper {

	protected static $s3_uploads;

	public function __construct() {
		static::$client = static::$s3_uploads->s3();
	}

	/**
	 * Register the 's3://' stream wrapper
	 *
	 * @param S3Client $client Client to use with the stream wrapper
	 */
	public static function register_streamwrapper( $s3_uploads )
	{	
	public static function register_streamwrapper( $s3_uploads ) {
		static::$s3_uploads = $s3_uploads;

		if ( in_array( 's3', stream_get_wrappers() ) ) {
@@ -171,8 +175,4 @@ class S3_Uploads_Stream_Wrapper extends Aws\S3\StreamWrapper {
	public function stream_metadata( $path, $option, $value ) {
		// not implemented
	}

	public function __construct() {
		static::$client = static::$s3_uploads->s3();
	}
}