Completed
Push — master ( 30da97...2fe3da )
by Mehmet
02:21
created
apps/elastico/controllers/es/type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,5 +35,5 @@
 block discarded – undo
35 35
     if (isset($count['hits']['total'])) {
36 36
         $nof = (int) $count['hits']['total'];
37 37
     }
38
-    return ['app_title'=>$index . "/" . $type ,'data'=>['index' => $index, 'type' => $type, 'documents'=> $documents, 'from' => $from, 'nof'=>$nof, 'size' => $size,'sort'=>$sort, 'query'=>$query]];
38
+    return ['app_title'=>$index . "/" . $type, 'data'=>['index' => $index, 'type' => $type, 'documents'=> $documents, 'from' => $from, 'nof'=>$nof, 'size' => $size, 'sort'=>$sort, 'query'=>$query]];
39 39
 }
Please login to merge, or discard this patch.
apps/elastico/controllers/es/root.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,12 +7,12 @@
 block discarded – undo
7 7
     $indices = $ES->indices()->getAliases();
8 8
     $indexes = [];
9 9
     foreach ($indices as $index => $alieses) {
10
-        if (strpos($index, ".") !== 0 ){
10
+        if (strpos($index, ".") !== 0) {
11 11
             $params['index'] = $index;
12 12
             $index_data = [];
13 13
             $index_data['name'] = $index;
14 14
             $index_info = $ES->indices()->getMapping($params);
15
-            foreach ($index_info[$index]['mappings'] as $type => $type_info ) {
15
+            foreach ($index_info[$index]['mappings'] as $type => $type_info) {
16 16
                 if ($type == '_default_') { continue; }
17 17
                 $index_data['types'][] = $type;
18 18
             }
Please login to merge, or discard this patch.