PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 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 All 36 releases
← All changes | includes/sdk/google/grpc/grpc/src/lib/Interceptor.php +3 -3 1.0.0 → 1.4.2 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 * Represents an interceptor that intercept RPC invocations before call starts.
24 24 * There is one proposal related to the argument $deserialize under the review.
@@ -51,10 +51,10 @@
51 51 * @return InterceptorChannel
52 52 */
53 53 public static function intercept($channel, $interceptors)
54 54 {
55 - if (is_array($interceptors)) {
56 - for ($i = count($interceptors) - 1; $i >= 0; $i--) {
55 + if (\is_array($interceptors)) {
56 + for ($i = \count($interceptors) - 1; $i >= 0; $i--) {
57 57 $channel = new Internal\InterceptorChannel($channel, $interceptors[$i]);
58 58 }
59 59 } else {
60 60 $channel = new Internal\InterceptorChannel($channel, $interceptors);