| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.108 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 3 | public function storeGeoJson( string $geoJson ) { |
|
| 28 | 3 | foreach ( $this->subObjectBuilder->getSubObjectsFromGeoJson( $geoJson ) as $subObject ) { |
|
| 29 | $this->parserData->getSemanticData()->addPropertyObjectValue( |
||
| 30 | new DIProperty( DIProperty::TYPE_SUBOBJECT ), |
||
| 31 | new SMWDIContainer( $subObject->toContainerSemanticData( $this->subjectPage->getTitleValue() ) ) |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 35 | 3 | $this->parserData->copyToParserOutput(); |
|
| 36 | |||
| 37 | 3 | $this->smwEventDispatcher->dispatch( |
|
| 38 | 3 | 'InvalidateEntityCache', |
|
| 39 | 3 | [ 'title' => $this->subjectPage, 'context' => 'GeoJsonContent' ] |
|
| 40 | ); |
||
| 41 | 3 | } |
|
| 42 | |||
| 44 |