@@ -97,13 +97,13 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | return [ |
| 100 | - 'created' => function ($role) use ($attributes) { |
|
| 100 | + 'created' => function($role) use ($attributes) { |
|
| 101 | 101 | return $attributes['created']->toDateTime()->format('c'); |
| 102 | 102 | }, |
| 103 | - 'changed' => function ($role) use ($attributes) { |
|
| 103 | + 'changed' => function($role) use ($attributes) { |
|
| 104 | 104 | return $attributes['changed']->toDateTime()->format('c'); |
| 105 | 105 | }, |
| 106 | - 'deleted' => function ($role) use ($attributes) { |
|
| 106 | + 'deleted' => function($role) use ($attributes) { |
|
| 107 | 107 | if (false === $attributes['deleted']) { |
| 108 | 108 | return null; |
| 109 | 109 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | 'id' => (string) $attributes['_id'], |
| 127 | 127 | 'name' => $attributes['name'], |
| 128 | 128 | 'namespace' => isset($attributes['namespace']) ? (string) $attributes['namespace'] : null, |
| 129 | - 'member' => array_map(function ($member) { return (string) $member; }, $attributes['member']), |
|
| 129 | + 'member' => array_map(function($member) { return (string) $member; }, $attributes['member']), |
|
| 130 | 130 | ]; |
| 131 | 131 | } |
| 132 | 132 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | 'name' => (string) $attributes['username'], |
| 149 | 149 | 'admin' => (bool) $attributes['admin'], |
| 150 | 150 | 'namespace' => isset($attributes['namespace']) ? (string) $attributes['namespace'] : null, |
| 151 | - 'mail' => function ($role) use ($attributes, $user) { |
|
| 151 | + 'mail' => function($role) use ($attributes, $user) { |
|
| 152 | 152 | if (!isset($attributes['mail'])) { |
| 153 | 153 | return null; |
| 154 | 154 | } |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | 'locale' => isset($attributes['locale']) ? (string) $attributes['locale'] : null, |
| 163 | 163 | 'hard_quota' => isset($attributes['hard_quota']) ? (int) $attributes['hard_quota'] : null, |
| 164 | 164 | 'soft_quota' => isset($attributes['soft_quota']) ? (int) $attributes['soft_quota'] : null, |
| 165 | - 'available' => function ($role) use (&$quota, $attributes, $user) { |
|
| 165 | + 'available' => function($role) use (&$quota, $attributes, $user) { |
|
| 166 | 166 | $quota === null ? $quota = $role->getQuotaUsage() : null; |
| 167 | 167 | if ($attributes['_id'] == $user->getId() || $user->isAdmin()) { |
| 168 | 168 | return $quota['available']; |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | return null; |
| 172 | 172 | }, |
| 173 | - 'used' => function ($role) use (&$quota, $attributes, $user) { |
|
| 173 | + 'used' => function($role) use (&$quota, $attributes, $user) { |
|
| 174 | 174 | $quota === null ? $quota = $role->getQuotaUsage() : null; |
| 175 | 175 | if ($attributes['_id'] == $user->getId() || $user->isAdmin()) { |
| 176 | 176 | return $quota['used']; |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | |
| 179 | 179 | return null; |
| 180 | 180 | }, |
| 181 | - 'auth' => function () use ($user) { |
|
| 181 | + 'auth' => function() use ($user) { |
|
| 182 | 182 | $identity = $user->getIdentity(); |
| 183 | 183 | if ($identity === null) { |
| 184 | 184 | return null; |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | * @param string $class Force set node type |
| 74 | 74 | * @param bool $multiple Allow $id to be an array |
| 75 | 75 | * @param bool $allow_root Allow instance of root collection |
| 76 | - * @param bool $deleted How to handle deleted node |
|
| 76 | + * @param integer $deleted How to handle deleted node |
|
| 77 | 77 | */ |
| 78 | 78 | protected function _getNode( |
| 79 | 79 | ?string $id = null, |