@@ -27,7 +27,7 @@ public function __construct(Auth $auth)
27
27
*/
28
28
public function buckets ()
29
29
{
30
- return $ this ->rsget ('/buckets ' );
30
+ return $ this ->rsGet ('/buckets ' );
31
31
}
32
32
33
33
/**
@@ -67,10 +67,10 @@ public function listFiles($bucket, $prefix = null, $marker = null, $limit = 1000
67
67
}
68
68
$ url = Config::RSF_HOST . '/list? ' . http_build_query ($ query );
69
69
list ($ ret , $ error ) = $ this ->get ($ url );
70
- if ($ ret == null ) {
70
+ if ($ ret === null ) {
71
71
return array (null , null , $ error );
72
72
}
73
- $ marker = isset ( $ ret [ 'marker ' ] ) ? $ ret ['marker ' ] : null ;
73
+ $ marker = array_key_exists ( 'marker ' , $ ret ) ? $ ret ['marker ' ] : null ;
74
74
return array ($ ret ['items ' ], $ marker , null );
75
75
}
76
76
@@ -291,7 +291,7 @@ private function post($url, $body)
291
291
if (!$ ret ->ok ()) {
292
292
return array (null , new Error ($ url , $ ret ));
293
293
}
294
- $ r = $ ret ->body == null ? array () : $ ret ->json ();
294
+ $ r = ( $ ret ->body === null ) ? array () : $ ret ->json ();
295
295
return array ($ r , null );
296
296
}
297
297
@@ -335,7 +335,7 @@ private static function oneKeyBatch($operation, $bucket, $keys)
335
335
336
336
private static function twoKeyBatch ($ operation , $ source_bucket , $ key_pairs , $ target_bucket )
337
337
{
338
- if ($ target_bucket == null ) {
338
+ if ($ target_bucket === null ) {
339
339
$ target_bucket = $ source_bucket ;
340
340
}
341
341
$ data = array ();
0 commit comments