@@ -199,7 +199,7 @@ |
||
| 199 | 199 | if ($this->cacheDirectory) |
| 200 | 200 | { |
| 201 | 201 | $cacheOptions = [ |
| 202 | - 'cacheDir' => (string) $this->cacheDirectory->getFilesystemPath(), |
|
| 202 | + 'cacheDir' => (string)$this->cacheDirectory->getFilesystemPath(), |
|
| 203 | 203 | 'forceRefresh' => false, |
| 204 | 204 | ]; |
| 205 | 205 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * {@inheritdoc} |
| 47 | 47 | */ |
| 48 | - public function saveParentPageView(DynamicPageView &$pageView) |
|
| 48 | + public function saveParentPageView(DynamicPageView & $pageView) |
|
| 49 | 49 | { |
| 50 | 50 | $this->parentPageViews[] = &$pageView; |
| 51 | 51 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * Add a CollectableItem for this PageView to handle. |
| 37 | 37 | */ |
| 38 | - public function addCollectableItem(CollectableItem &$collectable) |
|
| 38 | + public function addCollectableItem(CollectableItem & $collectable) |
|
| 39 | 39 | { |
| 40 | 40 | $this->collectableItems[$collectable->getRelativeFilePath()] = &$collectable; |
| 41 | 41 | $collectable->saveParentPageView($this); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * Delete a CollectableItem from this PageView. |
| 46 | 46 | */ |
| 47 | - public function delCollectableItem(CollectableItem &$collectableItem) |
|
| 47 | + public function delCollectableItem(CollectableItem & $collectableItem) |
|
| 48 | 48 | { |
| 49 | 49 | unset($this->collectableItems[$collectableItem->getRelativeFilePath()]); |
| 50 | 50 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * @param array $whiteListFunctions a list of function names that can be called |
| 34 | 34 | * @param array $jailedFunctions a list of functions that will be redirected to another function |
| 35 | 35 | */ |
| 36 | - public function __construct(TemplateReadyDocument &$object, array $whiteListFunctions, array $jailedFunctions = []) |
|
| 36 | + public function __construct(TemplateReadyDocument & $object, array $whiteListFunctions, array $jailedFunctions = []) |
|
| 37 | 37 | { |
| 38 | 38 | $this->object = &$object; |
| 39 | 39 | $this->whiteListFunctions = $whiteListFunctions; |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * |
| 46 | 46 | * @return void |
| 47 | 47 | */ |
| 48 | - public function saveParentPageView(DynamicPageView &$pageView); |
|
| 48 | + public function saveParentPageView(DynamicPageView & $pageView); |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * Evaluate the FrontMatter in this object by merging a custom array of data. |
@@ -175,12 +175,12 @@ discard block |
||
| 175 | 175 | } |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | - protected function addFileToTracker(File &$file) |
|
| 178 | + protected function addFileToTracker(File & $file) |
|
| 179 | 179 | { |
| 180 | 180 | $this->trackedItemsFlattened[$file->getRelativeFilePath()] = &$file; |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | - protected function delFileFromTracker(File &$file) |
|
| 183 | + protected function delFileFromTracker(File & $file) |
|
| 184 | 184 | { |
| 185 | 185 | unset($this->trackedItemsFlattened[$file->getRelativeFilePath()]); |
| 186 | 186 | } |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * @param ReadableDocument $trackedItem |
| 192 | 192 | * @param string|null $namespace |
| 193 | 193 | */ |
| 194 | - protected function addObjectToTracker(ReadableDocument &$trackedItem, $namespace = null) |
|
| 194 | + protected function addObjectToTracker(ReadableDocument & $trackedItem, $namespace = null) |
|
| 195 | 195 | { |
| 196 | 196 | if ($namespace == null) |
| 197 | 197 | { |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | * @param ReadableDocument $trackedItem |
| 212 | 212 | * @param string|null $namespace |
| 213 | 213 | */ |
| 214 | - protected function delObjectFromTracker(ReadableDocument &$trackedItem, $namespace = null) |
|
| 214 | + protected function delObjectFromTracker(ReadableDocument & $trackedItem, $namespace = null) |
|
| 215 | 215 | { |
| 216 | 216 | if ($namespace == null) |
| 217 | 217 | { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $this->folder = $folder; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | - public function getFolder(): string|Folder |
|
| 29 | + public function getFolder(): string | Folder |
|
| 30 | 30 | { |
| 31 | 31 | return $this->folder; |
| 32 | 32 | } |
@@ -23,14 +23,14 @@ |
||
| 23 | 23 | { |
| 24 | 24 | public const NAME = 'pageview.item.added'; |
| 25 | 25 | |
| 26 | - private DynamicPageView|RepeaterPageView|StaticPageView $pageView; |
|
| 26 | + private DynamicPageView | RepeaterPageView | StaticPageView $pageView; |
|
| 27 | 27 | |
| 28 | - public function __construct(DynamicPageView|RepeaterPageView|StaticPageView $pageView) |
|
| 28 | + public function __construct(DynamicPageView | RepeaterPageView | StaticPageView $pageView) |
|
| 29 | 29 | { |
| 30 | 30 | $this->pageView = &$pageView; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - public function getPageView(): DynamicPageView|RepeaterPageView|StaticPageView |
|
| 33 | + public function getPageView(): DynamicPageView | RepeaterPageView | StaticPageView |
|
| 34 | 34 | { |
| 35 | 35 | return $this->pageView; |
| 36 | 36 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | trait CompilerPostRenderTrait |
| 13 | 13 | { |
| 14 | - protected string|Stringable $compiledOutput; |
|
| 14 | + protected string | Stringable $compiledOutput; |
|
| 15 | 15 | |
| 16 | 16 | public function getCompiledOutput(): string |
| 17 | 17 | { |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * Modify the compiled output. |
| 23 | 23 | */ |
| 24 | - public function setCompiledOutput(string|Stringable $compiledOutput): void |
|
| 24 | + public function setCompiledOutput(string | Stringable $compiledOutput): void |
|
| 25 | 25 | { |
| 26 | 26 | $this->compiledOutput = $compiledOutput; |
| 27 | 27 | } |