@@ -92,13 +92,13 @@ discard block |
||
92 | 92 | } |
93 | 93 | |
94 | 94 | return [ |
95 | - 'created' => function ($role) use ($attributes) { |
|
95 | + 'created' => function($role) use ($attributes) { |
|
96 | 96 | return $attributes['created']->toDateTime()->format('c'); |
97 | 97 | }, |
98 | - 'changed' => function ($role) use ($attributes) { |
|
98 | + 'changed' => function($role) use ($attributes) { |
|
99 | 99 | return $attributes['changed']->toDateTime()->format('c'); |
100 | 100 | }, |
101 | - 'deleted' => function ($role) use ($attributes) { |
|
101 | + 'deleted' => function($role) use ($attributes) { |
|
102 | 102 | if (false === $attributes['deleted']) { |
103 | 103 | return null; |
104 | 104 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | 'name' => (string) $attributes['username'], |
146 | 146 | 'admin' => (bool) $attributes['admin'], |
147 | 147 | 'namespace' => isset($attributes['namespace']) ? (string) $attributes['namespace'] : null, |
148 | - 'mail' => function ($role) use ($attributes, $user) { |
|
148 | + 'mail' => function($role) use ($attributes, $user) { |
|
149 | 149 | if (!isset($attributes['mail'])) { |
150 | 150 | return null; |
151 | 151 | } |
@@ -161,7 +161,7 @@ |
||
161 | 161 | $tpl = new Template($type); |
162 | 162 | |
163 | 163 | $attributes = compact('readonly', 'meta'); |
164 | - $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); }); |
|
164 | + $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); }); |
|
165 | 165 | |
166 | 166 | $session = $parent->temporarySession($tpl->get()); |
167 | 167 | $result = $parent->addFile($name, $session, $attributes); |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | |
281 | 281 | if ($index === $chunks) { |
282 | 282 | $attributes = compact('changed', 'created', 'readonly', 'meta'); |
283 | - $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); }); |
|
283 | + $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); }); |
|
284 | 284 | $attributes = $this->_verifyAttributes($attributes); |
285 | 285 | |
286 | 286 | return $this->_put($session, $id, $p, $collection, $name, $attributes, $conflict); |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | $session = $this->storage->storeTemporaryFile($input, $this->server->getIdentity()); |
394 | 394 | |
395 | 395 | $attributes = compact('changed', 'created', 'readonly', 'meta'); |
396 | - $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); }); |
|
396 | + $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); }); |
|
397 | 397 | $attributes = $this->_verifyAttributes($attributes); |
398 | 398 | |
399 | 399 | return $this->_put($session, $id, $p, $collection, $name, $attributes, $conflict); |