← All changes
|
includes/sdk/google/google/cloud-storage/src/Acl.php
+4
-4
1.2.3
→
1.4.2
View file →
| @@ -14,11 +14,11 @@ | ||
| 14 | 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | 15 | * See the License for the specific language governing permissions and |
| 16 | 16 | * limitations under the License. |
| 17 | 17 | */ |
| 18 | -namespace Dudlewebs\WPMCS\Google\Cloud\Storage; | |
| 18 | +namespace Dudlewebs\WPMCS\GCP\Google\Cloud\Storage; | |
| 19 | 19 | |
| 20 | -use Dudlewebs\WPMCS\Google\Cloud\Storage\Connection\ConnectionInterface; | |
| 20 | +use Dudlewebs\WPMCS\GCP\Google\Cloud\Storage\Connection\ConnectionInterface; | |
| 21 | 21 | use InvalidArgumentException; |
| 22 | 22 | /** |
| 23 | 23 | * Google Cloud Storage uses access control lists (ACLs) to manage bucket and |
| 24 | 24 | * object access. ACLs are the mechanism you use to share objects with other |
| @@ -61,10 +61,10 @@ | ||
| 61 | 61 | */ |
| 62 | 62 | public function __construct(ConnectionInterface $connection, $type, array $identity) |
| 63 | 63 | { |
| 64 | 64 | $validTypes = ['bucketAccessControls', 'defaultObjectAccessControls', 'objectAccessControls']; |
| 65 | - if (!in_array($type, $validTypes)) { | |
| 66 | - throw new InvalidArgumentException('type must be one of the following: ' . implode(', ', $validTypes)); | |
| 65 | + if (!\in_array($type, $validTypes)) { | |
| 66 | + throw new InvalidArgumentException('type must be one of the following: ' . \implode(', ', $validTypes)); | |
| 67 | 67 | } |
| 68 | 68 | $this->connection = $connection; |
| 69 | 69 | $this->aclOptions = $identity + ['type' => $type]; |
| 70 | 70 | } |