Skip to content

Commit

Permalink
5.3 array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Nov 16, 2013
1 parent 71bec0a commit 88adaa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Flysystem/Adapter/AwsS3.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ public function getVisibility($path)

foreach ($result['Grants'] as $grant) {
if (isset($grant['Grantee']['URI']) and $grant['Grantee']['URI'] === Group::ALL_USERS and $grant['Permission'] === Permission::READ) {
return ['visibility' => AdapterInterface::VISIBILITY_PUBLIC];
return array('visibility' => AdapterInterface::VISIBILITY_PUBLIC);
}
}

return ['visibility' => AdapterInterface::VISIBILITY_PRIVATE];
return array('visibility' => AdapterInterface::VISIBILITY_PRIVATE);
}

public function setVisibility($path, $visibility)
Expand Down

0 comments on commit 88adaa9

Please sign in to comment.