Completed
Pull Request — master (#4)
by
unknown
06:41
created
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/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.
src/ParseServerMigration/Console/Command/ExportCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use ParseServerMigration\Config;
6 6
 use ParseServerMigration\Console\PictureApplicationService;
7 7
 use ParseServerMigration\Console\PictureRepository;
8
-use Parse\ParseQuery;
9 8
 use Psr\Log\LoggerInterface;
10 9
 use Symfony\Component\Console\Command\Command;
11 10
 use Symfony\Component\Console\Input\InputInterface;
Please login to merge, or discard this patch.
src/ParseServerMigration/Console/PictureRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 $limit -= count($result);
75 75
                 yield $result;
76 76
             }
77
-        } while((count($result) > 0) && ($limit > 0));
77
+        } while ((count($result) > 0) && ($limit > 0));
78 78
         if ((count($result) === 0) && (!$found)) {
79 79
             throw new \Exception(
80 80
                 'Can not find any record '.Config::PARSE_FILES_CLASS_NAME.':'.Config::PARSE_FILES_FIELD_NAME.'.'
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
         $objects = [];
220 220
 
221
-        $query->each(function (ParseObject $picture) use ($objects) {
221
+        $query->each(function(ParseObject $picture) use ($objects) {
222 222
             $objects[] = $this->buildDocumentFromParseObject($picture);
223 223
         });
224 224
 
Please login to merge, or discard this patch.