| Conditions | 5 |
| Paths | 5 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function SVGRAW(){ |
||
| 32 | if($this->owner->getExtension() != 'svg'){ |
||
| 33 | return false; |
||
| 34 | } |
||
| 35 | $metadata = $this->owner->File->getMetadata(); |
||
|
|
|||
| 36 | if(array_key_exists('path', $metadata)){ |
||
| 37 | $filePath = ASSETS_PATH . DIRECTORY_SEPARATOR . $metadata['path']; |
||
| 38 | if (file_exists($filePath)) { |
||
| 39 | |||
| 40 | $data = file_get_contents($filePath); |
||
| 41 | if(strpos($data, 'svg') !== false){ |
||
| 42 | $buffer = trim(preg_replace( "/\r|\n/", "",$data)); |
||
| 43 | $html = DBHTMLText::create(); |
||
| 44 | $html->setValue($buffer); |
||
| 45 | return $html; |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | } |
||
| 50 | return false; |
||
| 51 | } |
||
| 78 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.