@@ -41,13 +41,15 @@ |
||
41 | 41 | $twig->setGlobalVariable('site', $this->container->get(Configuration::class)->getconfiguration()); |
42 | 42 | |
43 | 43 | $dataItems = []; |
44 | - if ($this->container->has(DataManager::class)) { |
|
44 | + if ($this->container->has(DataManager::class)) |
|
45 | + { |
|
45 | 46 | $dataItems = $this->container->get(DataManager::class)->getJailedDataItems(); |
46 | 47 | } |
47 | 48 | $twig->setGlobalVariable('data', $dataItems); |
48 | 49 | |
49 | 50 | $collectionItems = []; |
50 | - if ($this->container->has(CollectionManager::class)) { |
|
51 | + if ($this->container->has(CollectionManager::class)) |
|
52 | + { |
|
51 | 53 | $collectionItems = $this->container->get(CollectionManager::class)->getJailedCollections(); |
52 | 54 | } |
53 | 55 | $twig->setGlobalVariable('collections', $collectionItems); |
@@ -16,7 +16,8 @@ |
||
16 | 16 | { |
17 | 17 | $data = json_decode($content, true); |
18 | 18 | |
19 | - if ($data === null) { |
|
19 | + if ($data === null) |
|
20 | + { |
|
20 | 21 | return []; |
21 | 22 | } |
22 | 23 |
@@ -31,7 +31,8 @@ |
||
31 | 31 | { |
32 | 32 | $parent = $this->template->getParent([]); |
33 | 33 | |
34 | - if ($parent === false) { |
|
34 | + if ($parent === false) |
|
35 | + { |
|
35 | 36 | return false; |
36 | 37 | } |
37 | 38 |
@@ -63,7 +63,8 @@ |
||
63 | 63 | */ |
64 | 64 | public function getJailedDataItems() |
65 | 65 | { |
66 | - return self::getJailedTrackedItems($this->trackedItemsFlattened, function (DataItem $dataItem) { |
|
66 | + return self::getJailedTrackedItems($this->trackedItemsFlattened, function (DataItem $dataItem) |
|
67 | + { |
|
67 | 68 | return $dataItem->getBasename(); |
68 | 69 | }); |
69 | 70 | } |