← All changes
|
includes/sdk/google/google/grpc-gcp/src/GcpBaseCall.php
+4
-4
1.2.11
→
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\Gcp; | |
| 20 | +namespace Dudlewebs\WPMCS\GCP\Grpc\Gcp; | |
| 21 | 21 | |
| 22 | 22 | abstract class GcpBaseCall |
| 23 | 23 | { |
| 24 | 24 | const BOUND = 'BOUND'; |
| @@ -119,12 +119,12 @@ | ||
| 119 | 119 | protected function getAffinityKeyFromProto($proto) |
| 120 | 120 | { |
| 121 | 121 | if ($this->_affinity) { |
| 122 | 122 | $names = $this->_affinity['affinityKey']; |
| 123 | - $names_arr = explode(".", $names); | |
| 123 | + $names_arr = \explode(".", $names); | |
| 124 | 124 | foreach ($names_arr as $name) { |
| 125 | - $getAttrMethod = 'get' . ucfirst($name); | |
| 126 | - $proto = call_user_func_array(array($proto, $getAttrMethod), array()); | |
| 125 | + $getAttrMethod = 'get' . \ucfirst($name); | |
| 126 | + $proto = \call_user_func_array(array($proto, $getAttrMethod), array()); | |
| 127 | 127 | } |
| 128 | 128 | return $proto; |
| 129 | 129 | } |
| 130 | 130 | echo "Cannot find the field in the proto\n"; |