@@ -72,9 +72,9 @@ public function request(
72
72
->setUrl ($ url )
73
73
->setArgs ($ args )
74
74
->setMethod ($ method )
75
- ->setOptions (array_merge ($ this ->options ->toArray (), $ options ));
75
+ ->setOptions (\ array_merge ($ this ->options ->toArray (), $ options ));
76
76
77
- $ startTime = microtime (true );
77
+ $ startTime = \ microtime (true );
78
78
79
79
try {
80
80
$ this ->trigger ('request.before ' , [$ this ->lastRequest ]);
@@ -93,7 +93,7 @@ public function request(
93
93
}
94
94
95
95
if (null === $ response ->time ) {
96
- $ response ->setTime (microtime (true ) - $ startTime );
96
+ $ response ->setTime (\ microtime (true ) - $ startTime );
97
97
}
98
98
99
99
$ this ->lastResponse = $ response ;
@@ -112,7 +112,7 @@ public function multiRequest(array $requestList, array $options = []): array
112
112
$ cleanedRequestList = [];
113
113
114
114
foreach ($ requestList as $ name => $ requestData ) {
115
- $ requestOptions = array_merge ($ this ->options ->toArray (), $ options , (array )($ requestData [3 ] ?? []));
115
+ $ requestOptions = \ array_merge ($ this ->options ->toArray (), $ options , (array )($ requestData [3 ] ?? []));
116
116
117
117
$ cleanedRequestList [$ name ] = (new Request ())
118
118
->setUrl ($ requestData [0 ] ?? '' )
@@ -141,7 +141,7 @@ protected function getDriver(): AbstractDriver
141
141
142
142
$ className = __NAMESPACE__ . "\\Driver \\{$ driverName }" ;
143
143
144
- if (class_exists ($ className )) {
144
+ if (\ class_exists ($ className )) {
145
145
/** @var AbstractDriver $driver */
146
146
$ driver = new $ className ();
147
147
return $ driver ;
@@ -172,7 +172,7 @@ public function trigger(string $eventName, array $context = [], ?\Closure $callb
172
172
return 0 ;
173
173
}
174
174
175
- array_unshift ($ context , $ this );
175
+ \ array_unshift ($ context , $ this );
176
176
177
177
return $ this ->eManager ->trigger ("jbzoo.http. {$ eventName }" , $ context , $ callback );
178
178
}
0 commit comments