Completed
Push — chore/php-8-migration ( 09d054...95d009 )
by Vladimir
05:18
created
src/Filesystem/FileExplorer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     /**
123 123
      * Get the current File object.
124 124
      */
125
-    public function current(): File|Folder
125
+    public function current(): File | Folder
126 126
     {
127 127
         /** @var SplFileInfo $current */
128 128
         $current = parent::current();
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * {@inheritdoc}
140 140
      */
141
-    public function getChildren(): FileExplorer|RecursiveFilterIterator|null
141
+    public function getChildren(): FileExplorer | RecursiveFilterIterator | null
142 142
     {
143 143
         $explorer = new self(
144 144
             $this->getInnerIterator()->getChildren(),
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      *
199 199
      * @deprecated use `FileExplorer::createFromDefinition()` instead
200 200
      */
201
-    public static function create(string|Folder $folder, array $includes = [], array $excludes = [], ?int $flags = null): FileExplorer
201
+    public static function create(string | Folder $folder, array $includes = [], array $excludes = [], ?int $flags = null): FileExplorer
202 202
     {
203 203
         $folder = fs::realpath($folder);
204 204
         $iterator = new RecursiveDirectoryIterator((string)$folder, RecursiveDirectoryIterator::SKIP_DOTS);
Please login to merge, or discard this patch.
src/Filesystem/BaseFilesystemItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @throws FileNotFoundException
26 26
      */
27
-    public function __construct(protected string|FilesystemPath $rawPath)
27
+    public function __construct(protected string | FilesystemPath $rawPath)
28 28
     {
29 29
         $realPath = fs::realpath($rawPath);
30 30
 
Please login to merge, or discard this patch.
src/Filesystem/Filesystem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      *
224 224
      * @return false|T
225 225
      */
226
-    public function realpath(string|BaseFilesystemItem $path): false|string|BaseFilesystemItem
226
+    public function realpath(string | BaseFilesystemItem $path): false | string | BaseFilesystemItem
227 227
     {
228 228
         return $this->isVFS($path) ? $path : realpath((string)$path);
229 229
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     /**
232 232
      * Check whether a given path is on the virtual filesystem.
233 233
      */
234
-    public function isVFS(string|BaseFilesystemItem $path): bool
234
+    public function isVFS(string | BaseFilesystemItem $path): bool
235 235
     {
236 236
         return str_starts_with((string)$path, 'vfs://');
237 237
     }
Please login to merge, or discard this patch.
src/Manager/TrackingManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -162,12 +162,12 @@  discard block
 block discarded – undo
162 162
         }
163 163
     }
164 164
 
165
-    protected function addFileToTracker(File &$file): void
165
+    protected function addFileToTracker(File & $file): void
166 166
     {
167 167
         $this->trackedItemsFlattened[$file->getRelativeFilePath()] = &$file;
168 168
     }
169 169
 
170
-    protected function delFileFromTracker(File &$file): void
170
+    protected function delFileFromTracker(File & $file): void
171 171
     {
172 172
         unset($this->trackedItemsFlattened[$file->getRelativeFilePath()]);
173 173
     }
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      *
178 178
      * @param null|string $namespace
179 179
      */
180
-    protected function addObjectToTracker(ReadableDocument &$trackedItem, $namespace = null): void
180
+    protected function addObjectToTracker(ReadableDocument & $trackedItem, $namespace = null): void
181 181
     {
182 182
         if ($namespace == null) {
183 183
             $this->trackedItems[$trackedItem->getIndexName()] = &$trackedItem;
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      *
194 194
      * @param null|string $namespace
195 195
      */
196
-    protected function delObjectFromTracker(ReadableDocument &$trackedItem, $namespace = null): void
196
+    protected function delObjectFromTracker(ReadableDocument & $trackedItem, $namespace = null): void
197 197
     {
198 198
         if ($namespace == null) {
199 199
             unset($this->trackedItems[$trackedItem->getIndexName()]);
Please login to merge, or discard this patch.
src/Manager/PageManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
      *
180 180
      * @since 0.2.0
181 181
      */
182
-    public function trackNewPageView(BasePageView|DynamicPageView|RepeaterPageView|StaticPageView $pageView): void
182
+    public function trackNewPageView(BasePageView | DynamicPageView | RepeaterPageView | StaticPageView $pageView): void
183 183
     {
184 184
         $namespace = $pageView->getType();
185 185
 
Please login to merge, or discard this patch.
src/Filesystem/WritableFolder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     private readonly FilesystemPath $folder;
23 23
 
24
-    public function __construct(string|FilesystemPath $folderPath)
24
+    public function __construct(string | FilesystemPath $folderPath)
25 25
     {
26 26
         $this->frozen = false;
27 27
         $this->folder = new FilesystemPath($folderPath);
Please login to merge, or discard this patch.
src/Templating/Twig/TwigTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * {@inheritdoc}
29 29
      */
30
-    public function getParentTemplate(): false|self
30
+    public function getParentTemplate(): false | self
31 31
     {
32 32
         $parent = $this->template->getParent([]);
33 33
 
Please login to merge, or discard this patch.
src/Compiler.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
  */
44 44
 class Compiler
45 45
 {
46
-    private string|false $redirectTemplate;
46
+    private string | false $redirectTemplate;
47 47
 
48 48
     /**
49 49
      * All the PageViews handled by this Compiler instance indexed by their file paths relative to the site root.
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
      *
291 291
      * @throws TemplateErrorInterface
292 292
      */
293
-    private function compileRepeaterPageView(RepeaterPageView &$pageView): void
293
+    private function compileRepeaterPageView(RepeaterPageView & $pageView): void
294 294
     {
295 295
         $template = $this->createTwigTemplate($pageView);
296 296
         $permalinks = $pageView->getRepeaterPermalinks();
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
      *
332 332
      * @since 0.1.1
333 333
      */
334
-    private function compileStandardRedirects(PermalinkDocument &$pageView): void
334
+    private function compileStandardRedirects(PermalinkDocument & $pageView): void
335 335
     {
336 336
         $redirects = $pageView->getRedirects();
337 337
 
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
      *
363 363
      * @since 0.1.1
364 364
      */
365
-    private function compileExpandedRedirects(RepeaterPageView &$pageView): void
365
+    private function compileExpandedRedirects(RepeaterPageView & $pageView): void
366 366
     {
367 367
         $permalinks = $pageView->getRepeaterPermalinks();
368 368
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
      *
402 402
      * @since  0.1.1
403 403
      */
404
-    private function buildRepeaterPageViewHTML(TemplateInterface &$template, RepeaterPageView &$pageView, ExpandedValue &$expandedValue): string
404
+    private function buildRepeaterPageViewHTML(TemplateInterface & $template, RepeaterPageView & $pageView, ExpandedValue & $expandedValue): string
405 405
     {
406 406
         $defaultContext = [
407 407
             'this' => $pageView->createJail(),
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
      *
432 432
      * @since  0.1.1
433 433
      */
434
-    private function buildDynamicPageViewHTML(TemplateInterface &$template, CollectableItem|TemplateReadyDocument &$twigItem): string
434
+    private function buildDynamicPageViewHTML(TemplateInterface & $template, CollectableItem | TemplateReadyDocument & $twigItem): string
435 435
     {
436 436
         $defaultContext = [
437 437
             'this' => $twigItem->createJail(),
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
      *
459 459
      * @throws TemplateErrorInterface
460 460
      */
461
-    private function buildStaticPageViewHTML(StaticPageView &$pageView): string
461
+    private function buildStaticPageViewHTML(StaticPageView & $pageView): string
462 462
     {
463 463
         $defaultContext = [
464 464
             'this' => $pageView->createJail(),
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
      *
487 487
      * @throws TemplateErrorInterface
488 488
      */
489
-    private function createTwigTemplate(BasePageView &$pageView): TemplateInterface
489
+    private function createTwigTemplate(BasePageView & $pageView): TemplateInterface
490 490
     {
491 491
         try {
492 492
             $template = $this->templateBridge->createTemplate($pageView->getContent());
Please login to merge, or discard this patch.