Skip to content

Commit 3a1c500

Browse files
committed
Fix PHP Strict Standards warning
1 parent 5dc909e commit 3a1c500

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

src/Http/BaseClient.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
namespace MegaOptim\Http;
2222

23-
use MegaOptim\Optimizer;
24-
2523
abstract class BaseClient {
2624

2725
/**
@@ -108,7 +106,9 @@ abstract public function get( $url );
108106
* @return mixed
109107
* @throws \Exception
110108
*/
111-
abstract public static function _post( $url, $data, $files = array(), $api_key = null );
109+
public static function _post( $url, $data, $files = array(), $api_key = null ) {
110+
111+
}
112112

113113

114114
/**
@@ -121,7 +121,9 @@ abstract public static function _post( $url, $data, $files = array(), $api_key =
121121
* @return mixed
122122
* @throws \Exception
123123
*/
124-
abstract public static function _get( $url, $api_key = null );
124+
public static function _get( $url, $api_key = null ) {
125+
126+
}
125127

126128

127129
/**
@@ -180,7 +182,10 @@ public static function get_user_agent() {
180182
return self::$user_agent;
181183
}
182184

183-
185+
/**
186+
* Set the user agent
187+
* @param $user_agent
188+
*/
184189
public static function set_user_agent( $user_agent ) {
185190
static::$user_agent = $user_agent;
186191
}

0 commit comments

Comments
 (0)