Passed
Pull Request — develop (#115)
by
unknown
01:21
created
src/Console/CreateMigrationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
44 44
         $payload = new CreateMigrationPayload($configurationPath);
45 45
         $pipeline->process($payload);
46 46
 
47
-        $this->output->writeln('Created ' . $payload->getVersionName());
47
+        $this->output->writeln('Created '.$payload->getVersionName());
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
src/Pipelines/Stages/CreateVersionDefinitionStage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $configuration          = $payload->getConfiguration();
27 27
         $configuration['index'] = $payload->getIndexVersionName();
28 28
 
29
-        file_put_contents($versionPath, '<?php return ' . var_export($configuration, true) . ";\n");
29
+        file_put_contents($versionPath, '<?php return '.var_export($configuration, true).";\n");
30 30
 
31 31
         return $payload;
32 32
     }
Please login to merge, or discard this patch.
src/Console/IndexCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             }
84 84
 
85 85
             $action->setAction(BulkAction::ACTION_INDEX, $meta)
86
-                   ->setBody($this->getItemBody($item));
86
+                    ->setBody($this->getItemBody($item));
87 87
 
88 88
             $bulkQuery->addAction($action);
89 89
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,10 +98,10 @@
 block discarded – undo
98 98
         $bar->finish();
99 99
 
100 100
         $hasErrors = $bulkResponseAggregator->hasErrors();
101
-        if($hasErrors) {
101
+        if ($hasErrors) {
102 102
             $this->info("\n");
103 103
             $errors = $bulkResponseAggregator->getErrors();
104
-            foreach($errors as $error) {
104
+            foreach ($errors as $error) {
105 105
                 $this->error($error);
106 106
             }
107 107
         }
Please login to merge, or discard this patch.
src/ElasticsearchServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         /** @noinspection PhpUndefinedMethodInspection */
30 30
         $config = $this->app['config']->get('elasticsearch', []);
31 31
 
32
-        $this->app->/** @scrutinizer ignore-call */ singleton(ElasticsearchServiceContract::class, function () use ($config) {
32
+        $this->app->/** @scrutinizer ignore-call */ singleton(ElasticsearchServiceContract::class, function() use ($config) {
33 33
             return new ElasticsearchService(ClientBuilder::fromConfig($config));
34 34
         });
35 35
     }
Please login to merge, or discard this patch.
src/Search/Query/Compound/DisMaxQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     public function toArray()
66 66
     {
67 67
         $body = [
68
-            'queries' => array_map(function (QueryDSL $query) {
68
+            'queries' => array_map(function(QueryDSL $query) {
69 69
                 return $query->toArray();
70 70
             }, $this->getQueries()),
71 71
         ];
Please login to merge, or discard this patch.
src/Console/ApplyMigrationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     protected $signature = 'elastic:migrations:migrate 
27 27
                             { config : The path to the index configuration file } 
28
-                            { --batchSize=' . self::DEFAULT_BATCH_SIZE . ' : The number of documents to handle per batch while re-indexing }
28
+                            { --batchSize=' . self::DEFAULT_BATCH_SIZE.' : The number of documents to handle per batch while re-indexing }
29 29
                             { --updateAllTypes : Forces update across all types }';
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
src/Documents/Bulk/BulkResponseAggregator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
         $errors = [];
63 63
 
64 64
         $items = array_get($response, 'items', []);
65
-        foreach($items as $item) {
65
+        foreach ($items as $item) {
66 66
 
67 67
             $item = array_first($item);
68 68
 
69
-            if(!array_has($item, 'error')) {
69
+            if (!array_has($item, 'error')) {
70 70
                 continue;
71 71
             }
72 72
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 $errorType, $errorReason, $causeType, $causeReason, $index, $type, $id);
85 85
         }
86 86
 
87
-        if($errors) {
87
+        if ($errors) {
88 88
             $this->errors = array_merge($this->errors, $errors);
89 89
         }
90 90
     }
Please login to merge, or discard this patch.