@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * ownCloud - galleryplus |
|
4 | - * |
|
5 | - * This file is licensed under the Affero General Public License version 3 or |
|
6 | - * later. See the COPYING file. |
|
7 | - * |
|
8 | - * @author Robin Appelman <[email protected]> |
|
9 | - * @author Olivier Paroz <[email protected]> |
|
10 | - * |
|
11 | - * @copyright Robin Appelman 2012-2015 |
|
12 | - * @copyright Olivier Paroz 2014-2015 |
|
13 | - */ |
|
3 | + * ownCloud - galleryplus |
|
4 | + * |
|
5 | + * This file is licensed under the Affero General Public License version 3 or |
|
6 | + * later. See the COPYING file. |
|
7 | + * |
|
8 | + * @author Robin Appelman <[email protected]> |
|
9 | + * @author Olivier Paroz <[email protected]> |
|
10 | + * |
|
11 | + * @copyright Robin Appelman 2012-2015 |
|
12 | + * @copyright Olivier Paroz 2014-2015 |
|
13 | + */ |
|
14 | 14 | |
15 | 15 | namespace OCA\GalleryPlus\Controller; |
16 | 16 |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * ownCloud - galleryplus |
|
4 | - * |
|
5 | - * This file is licensed under the Affero General Public License version 3 or |
|
6 | - * later. See the COPYING file. |
|
7 | - * |
|
8 | - * @author Olivier Paroz <[email protected]> |
|
9 | - * |
|
10 | - * @copyright Olivier Paroz 2015 |
|
11 | - */ |
|
3 | + * ownCloud - galleryplus |
|
4 | + * |
|
5 | + * This file is licensed under the Affero General Public License version 3 or |
|
6 | + * later. See the COPYING file. |
|
7 | + * |
|
8 | + * @author Olivier Paroz <[email protected]> |
|
9 | + * |
|
10 | + * @copyright Olivier Paroz 2015 |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | namespace OCA\GalleryPlus\Service; |
14 | 14 |
@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | |
33 | 33 | switch ($key) { |
34 | 34 | case 'sorting': |
35 | - $safe = $this->isSortingSafe('type',$parsedConfigItem, $safe); |
|
36 | - $safe = $this->isSortingSafe('order',$parsedConfigItem, $safe); |
|
35 | + $safe = $this->isSortingSafe('type', $parsedConfigItem, $safe); |
|
36 | + $safe = $this->isSortingSafe('order', $parsedConfigItem, $safe); |
|
37 | 37 | break; |
38 | 38 | case 'design': |
39 | 39 | $safe = $this->isDesignColourSafe($parsedConfigItem, $safe); |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | * @param bool $safe whether the current config has been deemed safe to use so far |
51 | 51 | * @return bool |
52 | 52 | */ |
53 | - private function isSortingSafe($key,$parsedConfigItem, $safe) { |
|
53 | + private function isSortingSafe($key, $parsedConfigItem, $safe) { |
|
54 | 54 | if ($safe && array_key_exists($key, $parsedConfigItem)) { |
55 | - $safe = $safe && $this->sortingValidator($key, $parsedConfigItem[ $key ]); |
|
55 | + $safe = $safe && $this->sortingValidator($key, $parsedConfigItem[$key]); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | return $safe; |