Passed
Push — master ( a3deb2...03ad85 )
by Morris
08:52
created
core/Migrations/Version17000Date20190514105811.php 2 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -33,41 +33,41 @@
 block discarded – undo
33 33
 
34 34
 class Version17000Date20190514105811 extends SimpleMigrationStep {
35 35
 
36
-	/**
37
-	 * @param IOutput $output
38
-	 * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
39
-	 * @param array $options
40
-	 * @return ISchemaWrapper
41
-	 */
42
-	public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
43
-		/** @var ISchemaWrapper $schema */
44
-		$schema = $schemaClosure();
45
-		if(!$schema->hasTable('filecache_extended')) {
46
-			$table = $schema->createTable('filecache_extended');
47
-			$table->addColumn('fileid', Type::INTEGER, [
48
-				'notnull' => true,
49
-				'length' => 4,
50
-				'unsigned' => true,
51
-			]);
52
-			$table->addColumn('metadata_etag', Type::STRING, [
53
-				'notnull' => false,
54
-				'length' => 40,
55
-			]);
56
-			$table->addColumn('creation_time', Type::BIGINT, [
57
-				'notnull' => true,
58
-				'length' => 20,
59
-				'default' => 0,
60
-			]);
61
-			$table->addColumn('upload_time', Type::BIGINT, [
62
-				'notnull' => true,
63
-				'length' => 20,
64
-				'default' => 0,
65
-			]);
66
-			$table->addUniqueIndex(['fileid'], 'fce_fileid_idx');
67
-			$table->addIndex(['creation_time'], 'fce_ctime_idx');
68
-			$table->addIndex(['upload_time'], 'fce_utime_idx');
69
-		}
36
+    /**
37
+     * @param IOutput $output
38
+     * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
39
+     * @param array $options
40
+     * @return ISchemaWrapper
41
+     */
42
+    public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
43
+        /** @var ISchemaWrapper $schema */
44
+        $schema = $schemaClosure();
45
+        if(!$schema->hasTable('filecache_extended')) {
46
+            $table = $schema->createTable('filecache_extended');
47
+            $table->addColumn('fileid', Type::INTEGER, [
48
+                'notnull' => true,
49
+                'length' => 4,
50
+                'unsigned' => true,
51
+            ]);
52
+            $table->addColumn('metadata_etag', Type::STRING, [
53
+                'notnull' => false,
54
+                'length' => 40,
55
+            ]);
56
+            $table->addColumn('creation_time', Type::BIGINT, [
57
+                'notnull' => true,
58
+                'length' => 20,
59
+                'default' => 0,
60
+            ]);
61
+            $table->addColumn('upload_time', Type::BIGINT, [
62
+                'notnull' => true,
63
+                'length' => 20,
64
+                'default' => 0,
65
+            ]);
66
+            $table->addUniqueIndex(['fileid'], 'fce_fileid_idx');
67
+            $table->addIndex(['creation_time'], 'fce_ctime_idx');
68
+            $table->addIndex(['upload_time'], 'fce_utime_idx');
69
+        }
70 70
 
71
-		return $schema;
72
-	}
71
+        return $schema;
72
+    }
73 73
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 	public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
43 43
 		/** @var ISchemaWrapper $schema */
44 44
 		$schema = $schemaClosure();
45
-		if(!$schema->hasTable('filecache_extended')) {
45
+		if (!$schema->hasTable('filecache_extended')) {
46 46
 			$table = $schema->createTable('filecache_extended');
47 47
 			$table->addColumn('fileid', Type::INTEGER, [
48 48
 				'notnull' => true,
Please login to merge, or discard this patch.