src/allejo/stakx/Document/DataItem.php 1 location
|
@@ 141-144 (lines=4) @@
|
| 138 |
|
{ |
| 139 |
|
// This function can be called after the initial object was created and the file may have been deleted since the |
| 140 |
|
// creation of the object. |
| 141 |
|
if (!$this->fs->exists($this->filePath)) |
| 142 |
|
{ |
| 143 |
|
throw new FileNotFoundException(null, 0, null, $this->filePath); |
| 144 |
|
} |
| 145 |
|
|
| 146 |
|
$content = file_get_contents($this->getFilePath()); |
| 147 |
|
$fxnName = 'from' . ucfirst($this->getExtension()); |
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 |
|
$rawFileContents = file_get_contents($this->filePath); |
| 270 |
|
$fileStructure = array(); |