| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 6 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 11 | 	public function changeSchema(Schema $schema, array $options) { | 
            ||
| 12 | $prefix = $options['tablePrefix'];  | 
            ||
| 13 | 		if ($schema->hasTable("{$prefix}activity")) { | 
            ||
| 14 | return;  | 
            ||
| 15 | }  | 
            ||
| 16 | |||
| 17 | // not that valid ....  | 
            ||
| 18 | $schemaReader = new MDB2SchemaReader(\OC::$server->getConfig(), \OC::$server->getDatabaseConnection()->getDatabasePlatform());  | 
            ||
| 19 | $schemaReader->loadSchemaFromFile(__DIR__ . '/../database.xml', $schema);  | 
            ||
| 20 | }  | 
            ||
| 21 | |||
| 23 |