We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | class IiifUrlReader implements UrlReaderInterface { |
||
| 26 | /** |
||
| 27 | * Singleton instance of the class |
||
| 28 | * |
||
| 29 | * @access protected |
||
| 30 | * @var IiifUrlReader |
||
| 31 | */ |
||
| 32 | protected static $instance; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * |
||
| 36 | * {@inheritDoc} |
||
| 37 | * @see \Ubl\Iiif\Tools\UrlReaderInterface::getContent() |
||
| 38 | */ |
||
| 39 | public function getContent($url) { |
||
| 40 | return GeneralUtility::getUrl($url); |
||
|
|
|||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Return a singleton instance. |
||
| 45 | * |
||
| 46 | * @static |
||
| 47 | * |
||
| 48 | * @return IiifUrlReader |
||
| 49 | */ |
||
| 50 | public static function getInstance() { |
||
| 55 | } |
||
| 56 | } |
||
| 57 |