Completed
Push — master ( 95dc1f...3787c3 )
by Pavel
14:47 queued 04:46
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,13 +24,13 @@
 block discarded – undo
24 24
     public function register()
25 25
     {
26 26
         $this->app['command.schema.export'] = $this->app->share(
27
-            function ($app) {
27
+            function($app) {
28 28
                 return new SchemaExport();
29 29
             }
30 30
         );
31 31
 
32 32
         $this->app['command.schema.import'] = $this->app->share(
33
-            function ($app) {
33
+            function($app) {
34 34
                 return new SchemaImport();
35 35
             }
36 36
         );
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.