src/allejo/stakx/FrontMatter/Document.php 1 location
|
@@ 264-267 (lines=4) @@
|
| 261 |
|
{ |
| 262 |
|
// This function can be called after the initial object was created and the file may have been deleted since the |
| 263 |
|
// creation of the object. |
| 264 |
|
if (!$this->fs->exists($this->filePath)) |
| 265 |
|
{ |
| 266 |
|
throw new FileNotFoundException(null, 0, null, $this->filePath); |
| 267 |
|
} |
| 268 |
|
|
| 269 |
|
// $fileStructure[1] is the YAML |
| 270 |
|
// $fileStructure[2] is the amount of new lines after the closing `---` and the beginning of content |
src/allejo/stakx/Document/DataItem.php 1 location
|
@@ 147-150 (lines=4) @@
|
| 144 |
|
{ |
| 145 |
|
// This function can be called after the initial object was created and the file may have been deleted since the |
| 146 |
|
// creation of the object. |
| 147 |
|
if (!$this->fs->exists($this->filePath)) |
| 148 |
|
{ |
| 149 |
|
throw new FileNotFoundException(null, 0, null, $this->filePath); |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
$content = file_get_contents($this->getFilePath()); |
| 153 |
|
$fxnName = 'from' . ucfirst($this->getExtension()); |