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/google/common-protos/src/Api/FieldBehavior.php +6 -6 1.2.0 → 1.4.2 View file →
@@ -1,9 +1,9 @@
1 1 <?php
2 2
3 3 # Generated by the protocol buffer compiler. DO NOT EDIT!
4 4 # source: google/api/field_behavior.proto
5 -namespace Dudlewebs\WPMCS\Google\Api;
5 +namespace Dudlewebs\WPMCS\GCP\Google\Api;
6 6
7 7 use UnexpectedValueException;
8 8 /**
9 9 * An indicator of the behavior of a given field (for example, that a field
@@ -99,17 +99,17 @@
99 99 private static $valueToName = [self::FIELD_BEHAVIOR_UNSPECIFIED => 'FIELD_BEHAVIOR_UNSPECIFIED', self::OPTIONAL => 'OPTIONAL', self::REQUIRED => 'REQUIRED', self::OUTPUT_ONLY => 'OUTPUT_ONLY', self::INPUT_ONLY => 'INPUT_ONLY', self::IMMUTABLE => 'IMMUTABLE', self::UNORDERED_LIST => 'UNORDERED_LIST', self::NON_EMPTY_DEFAULT => 'NON_EMPTY_DEFAULT', self::IDENTIFIER => 'IDENTIFIER'];
100 100 public static function name($value)
101 101 {
102 102 if (!isset(self::$valueToName[$value])) {
103 - throw new UnexpectedValueException(sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
103 + throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
104 104 }
105 105 return self::$valueToName[$value];
106 106 }
107 107 public static function value($name)
108 108 {
109 - $const = __CLASS__ . '::' . strtoupper($name);
110 - if (!defined($const)) {
111 - throw new UnexpectedValueException(sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
109 + $const = __CLASS__ . '::' . \strtoupper($name);
110 + if (!\defined($const)) {
111 + throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
112 112 }
113 - return constant($const);
113 + return \constant($const);
114 114 }
115 115 }