@@ -41,7 +41,7 @@ |
||
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 | { |
@@ -24,13 +24,13 @@ |
||
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 | ); |
@@ -48,11 +48,11 @@ |
||
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'])) { |
@@ -90,7 +90,7 @@ |
||
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' => [], |