@@ -12,7 +12,9 @@ |
||
12 | 12 | $a = ($a instanceof ContentItem) ? $a->getFrontMatter() : $a; |
13 | 13 | $b = ($b instanceof ContentItem) ? $b->getFrontMatter() : $b; |
14 | 14 | |
15 | - if ($a[$key] == $b[$key]) return 0; |
|
15 | + if ($a[$key] == $b[$key]) { |
|
16 | + return 0; |
|
17 | + } |
|
16 | 18 | |
17 | 19 | if (strtolower($order) === "desc") { |
18 | 20 | return ($a[$key] < $b[$key]) ? 1 : -1; |
@@ -25,8 +25,7 @@ discard block |
||
25 | 25 | if (substr($folderPath, 0, 1) === DIRECTORY_SEPARATOR) |
26 | 26 | { |
27 | 27 | $this->absolutePath = $folderPath; |
28 | - } |
|
29 | - else |
|
28 | + } else |
|
30 | 29 | { |
31 | 30 | $this->absolutePath = $this->fs->absolutePath($folderPath); |
32 | 31 | } |
@@ -55,8 +54,7 @@ discard block |
||
55 | 54 | if (is_null($folderName) || empty($folderName)) |
56 | 55 | { |
57 | 56 | $this->targetDirectories = array(); |
58 | - } |
|
59 | - else |
|
57 | + } else |
|
60 | 58 | { |
61 | 59 | $this->targetDirectories[] = trim($folderName, DIRECTORY_SEPARATOR); |
62 | 60 | } |