Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
39 | private function getIdFromIri($iri) |
||
40 | { |
||
41 | // Remove any trailing slashes to be safe. |
||
42 | $iri = rtrim($iri, '/'); |
||
43 | |||
44 | // Split the iri into multiple pieces. |
||
45 | $exploded = explode('/', $iri); |
||
46 | |||
47 | // The id is the last of all the separate pieces. |
||
48 | return array_pop($exploded); |
||
49 | } |
||
50 | |||
105 |