Completed
Push — master ( 3787c3...57cb76 )
by Pavel
06:06
created
src/MongoSchemaDumperServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     /**
42 42
      * Get the services provided by the provider.
43 43
      *
44
-     * @return array
44
+     * @return string[]
45 45
      */
46 46
     public function provides()
47 47
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@
 block discarded – undo
24 24
     {
25 25
         $this->app->singleton(
26 26
             'command.schema.export',
27
-            function () {
27
+            function() {
28 28
                 return new SchemaExport();
29 29
             }
30 30
         );
31 31
 
32 32
         $this->app->singleton(
33 33
             'command.schema.import',
34
-            function () {
34
+            function() {
35 35
                 return new SchemaImport();
36 36
             }
37 37
         );
Please login to merge, or discard this patch.
src/Console/SchemaImport.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@
 block discarded – undo
48 48
         $json = file_get_contents($file);
49 49
         $databases = json_decode($json, true);
50 50
         foreach ($databases as $database => $collections) {
51
-            $this->info('Import: ' . $database);
51
+            $this->info('Import: '.$database);
52 52
             $db = DB::getMongoClient()->selectDatabase($database);
53 53
 
54 54
             foreach ($collections as $name => $collection) {
55
-                $this->info('Create: ' . $name);
55
+                $this->info('Create: '.$name);
56 56
                 $db->createCollection($name, $collection['options']);
57 57
 
58 58
                 if (isset($collection['indexes']) && !empty($collection['indexes'])) {
Please login to merge, or discard this patch.
src/Console/SchemaExport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         $result = [];
91 91
 
92 92
         $collections = DB::getMongoClient()->selectDatabase($database)->listCollections();
93
-        foreach($collections as $collection) {
93
+        foreach ($collections as $collection) {
94 94
             $collectionName = $collection->getName();
95 95
             $result[$collectionName] = [
96 96
                 'indexes' => [],
Please login to merge, or discard this patch.