PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
← All changes | includes/sdk/google/grpc/grpc/src/lib/AbstractCall.php +3 -3 1.2.31.4.1 View file →
@@ -16,9 +16,9 @@
16 16 * See the License for the specific language governing permissions and
17 17 * limitations under the License.
18 18 *
19 19 */
20 -namespace Dudlewebs\WPMCS\Grpc;
20 +namespace Dudlewebs\WPMCS\GCP\Grpc;
21 21
22 22 /**
23 23 * Class AbstractCall.
24 24 * @package Grpc
@@ -43,9 +43,9 @@
43 43 * @param array $options Call options (optional)
44 44 */
45 45 public function __construct(Channel $channel, $method, $deserialize, array $options = [])
46 46 {
47 - if (array_key_exists('timeout', $options) && is_numeric($timeout = $options['timeout'])) {
47 + if (\array_key_exists('timeout', $options) && \is_numeric($timeout = $options['timeout'])) {
48 48 $now = Timeval::now();
49 49 $delta = new Timeval($timeout);
50 50 $deadline = $now->add($delta);
51 51 } else {
@@ -54,9 +54,9 @@
54 54 $this->call = new Call($channel, $method, $deadline);
55 55 $this->deserialize = $deserialize;
56 56 $this->metadata = null;
57 57 $this->trailing_metadata = null;
58 - if (array_key_exists('call_credentials_callback', $options) && is_callable($call_credentials_callback = $options['call_credentials_callback'])) {
58 + if (\array_key_exists('call_credentials_callback', $options) && \is_callable($call_credentials_callback = $options['call_credentials_callback'])) {
59 59 $call_credentials = CallCredentials::createFromPlugin($call_credentials_callback);
60 60 $this->call->setCredentials($call_credentials);
61 61 }
62 62 }