Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'utility/normalizer.php')
-rw-r--r--utility/normalizer.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/utility/normalizer.php b/utility/normalizer.php
index 09dcaace..a5228756 100644
--- a/utility/normalizer.php
+++ b/utility/normalizer.php
@@ -31,23 +31,20 @@ class Normalizer {
* @return string|array
*/
public function normalize($data, $depth = 0) {
-
$scalar = $this->normalizeScalar($data);
+ $traversable = $this->normalizeTraversable($data, $depth);
+ $object = $this->normalizeObject($data, $depth);
+ $resource = $this->normalizeResource($data);
+
if (!is_array($scalar)) {
return $scalar;
}
-
- $traversable = $this->normalizeTraversable($data, $depth);
if ($traversable !== null) {
return $traversable;
}
-
- $object = $this->normalizeObject($data, $depth);
if ($object !== null) {
return $object;
}
-
- $resource = $this->normalizeResource($data);
if ($resource !== null) {
return $resource;
}