Skip to content

Commit 09f7ad1

Browse files
committed
Change signature
1 parent 9211835 commit 09f7ad1

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
## 0.5.5 - 2021-09-06
6+
7+
### Changed
8+
- Changed the signature of the file processor.
9+
510
## 0.5.4 - 2021-09-06
611

712
### Added

src/Blade/CodeComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct($language, $theme = null, $contents = null, $torchli
3939
public function capture($contents)
4040
{
4141
$contents = $contents ?: $this->contents;
42-
$contents = Torchlight::processPotentialFileContents($contents);
42+
$contents = Torchlight::processFileContents($contents) ?: $contents;
4343

4444
BladeManager::registerBlock($this->block->code($contents));
4545
}

src/Manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function postProcessBlocks($blocks)
150150
}
151151
}
152152

153-
public function processPotentialFileContents($file)
153+
public function processFileContents($file)
154154
{
155155
$directories = $this->config('snippet_directories', []);
156156

@@ -165,7 +165,7 @@ public function processPotentialFileContents($file)
165165
}
166166
}
167167

168-
return $file;
168+
return false;
169169
}
170170

171171
/**

0 commit comments

Comments
 (0)