Completed
Push — master ( cb13e7...cfd658 )
by Jonathan
131:32 queued 32:37
created
app/Widgets/SummaryFields.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,19 +27,19 @@
 block discarded – undo
27 27
     public function run()
28 28
     {
29 29
         // Get module
30
-        $module = ucmodule($this->config['module']);
30
+        $module = ucmodule($this->config[ 'module' ]);
31 31
 
32 32
         // Get record
33 33
         $modelClass = $module->model_class;
34
-        $record = $modelClass::find($this->config['record_id']);
34
+        $record = $modelClass::find($this->config[ 'record_id' ]);
35 35
 
36 36
         return view('uccello::widgets.summary_fields', [
37 37
             'config' => $this->config,
38
-            'domain' => ucdomain($this->config['domain']),
38
+            'domain' => ucdomain($this->config[ 'domain' ]),
39 39
             'module' => $module,
40
-            'data' => (object) $this->config['data'],
40
+            'data' => (object)$this->config[ 'data' ],
41 41
             'record' => $record,
42
-            'label' => $this->config['data']->label ?? $this->config['labelForTranslation'],
42
+            'label' => $this->config[ 'data' ]->label ?? $this->config[ 'labelForTranslation' ],
43 43
         ]);
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
app/Widgets/Relatedlist.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,19 +20,19 @@
 block discarded – undo
20 20
     public function run()
21 21
     {
22 22
         // Get module
23
-        $module = ucmodule($this->config['module']);
23
+        $module = ucmodule($this->config[ 'module' ]);
24 24
 
25 25
         // Get record
26 26
         $modelClass = $module->model_class;
27
-        $record = $modelClass::find($this->config['record_id']);
27
+        $record = $modelClass::find($this->config[ 'record_id' ]);
28 28
 
29 29
         return view('uccello::widgets.relatedlist', [
30 30
             'config' => $this->config,
31
-            'domain' => ucdomain($this->config['domain']),
31
+            'domain' => ucdomain($this->config[ 'domain' ]),
32 32
             'module' => $module,
33
-            'data' => (object) $this->config['data'],
33
+            'data' => (object)$this->config[ 'data' ],
34 34
             'record' => $record,
35
-            'label' => $this->config['data']->label ?? $this->config['labelForTranslation'],
35
+            'label' => $this->config[ 'data' ]->label ?? $this->config[ 'labelForTranslation' ],
36 36
         ]);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.