Completed
Push — master ( d27e5c...e16ba0 )
by Konstantin
04:07
created
IndexManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $indexer = $this->getIndexer($index);
35 35
         $range = array_replace($indexer->getRangeCriterias(), $rangeCriterias);
36 36
 
37
-        $reindexCallback = function ($data) use ($index, $indexer, $batchCallback, $range) {
37
+        $reindexCallback = function($data) use ($index, $indexer, $batchCallback, $range) {
38 38
             if (null !== $batchCallback) {
39 39
                 $batchCallback(
40 40
                     array(
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         $indexer = $this->getIndexer($index);
65 65
 
66
-        $reindexItemsCallback = function ($itemsIdsToProcess) use ($index, $indexer) {
66
+        $reindexItemsCallback = function($itemsIdsToProcess) use ($index, $indexer) {
67 67
             $items = $indexer->getItemsByIds($itemsIdsToProcess);
68 68
             $this->processItems($index, $indexer, $items);
69 69
         };
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     public function removeItems($index, $itemsIds)
78 78
     {
79
-        $removeItemsCallback = function () use ($index, $itemsIds) {
79
+        $removeItemsCallback = function() use ($index, $itemsIds) {
80 80
             return $this->conn->createQueryBuilder()
81 81
                 ->delete($this->conn->getEscaper()->quoteIdentifier($index))
82 82
                 ->where('id IN :ids')
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     public function getIndexRange($index)
91 91
     {
92
-        $getIndexRangeCallback = function () use ($index) {
92
+        $getIndexRangeCallback = function() use ($index) {
93 93
             return $this->conn
94 94
                 ->createQueryBuilder()
95 95
                 ->select('MIN(id) AS `min`, MAX(id) AS `max`')
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             return;
136 136
         }
137 137
 
138
-        $this->safeExecute(function () use ($index, $indexer, $items) {
138
+        $this->safeExecute(function() use ($index, $indexer, $items) {
139 139
             $escaper = $this->conn->getEscaper();
140 140
             $insertQb = $this->conn
141 141
                 ->createQueryBuilder()
Please login to merge, or discard this patch.