Completed
Push — master ( eb2d2b...be4f62 )
by Maxence
02:37
created
src/ParseServerMigration/Console/Command/ExportCommand.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace ParseServerMigration\Console\Command;
4 4
 
5
-use ParseServerMigration\Config;
6 5
 use ParseServerMigration\Console\PictureApplicationService;
7 6
 use ParseServerMigration\Console\PictureRepository;
8
-use Parse\ParseQuery;
9 7
 use Psr\Log\LoggerInterface;
10 8
 use Symfony\Component\Console\Command\Command;
11 9
 use Symfony\Component\Console\Input\InputInterface;
Please login to merge, or discard this patch.
application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
 //Init Parse client
22 22
 ParseClient::initialize(Config::PARSE_APP_ID, Config::PARSE_REST_KEY, Config::PARSE_MASTER_KEY);
23
-ParseClient::setServerURL(Config::PARSE_URL,'1');
23
+ParseClient::setServerURL(Config::PARSE_URL, '1');
24 24
 
25 25
 //Init S3 client
26 26
 $s3Client = new S3Client([
Please login to merge, or discard this patch.
src/ParseServerMigration/Console/PictureRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 
190 190
         $objects = [];
191 191
 
192
-        $query->each(function (ParseObject $picture) use ($objects) {
192
+        $query->each(function(ParseObject $picture) use ($objects) {
193 193
             $objects[] = $this->buildDocumentFromParseObject($picture);
194 194
         });
195 195
 
Please login to merge, or discard this patch.
src/ParseServerMigration/Console/Command/MigrateFromSaasCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         }
67 67
 
68 68
         //Todo we need to compare perf between this way of dumping all images vs PictureRepository::migrateAllPictures()
69
-        $query->each(function (ParseObject $picture) use ($io) {
69
+        $query->each(function(ParseObject $picture) use ($io) {
70 70
             try {
71 71
                 $io->text('Migrating picture\'s image');
72 72
                 $message = $this->pictureApplicationService->migrateImage($picture);
Please login to merge, or discard this patch.