Code Duplication    Length = 3-3 lines in 3 locations

src/controllers/ColpropertiesController.php 1 location

@@ 75-77 (lines=3) @@
72
        }
73
        $data = $this->misc->getDatabaseAccessor();
74
75
        $attPre = function (&$rowdata) use ($data) {
76
            $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']);
77
        };
78
79
        if (empty($_REQUEST['column'])) {
80
            $msg .= "<br/>{$this->lang['strnoobjects']}";

src/controllers/TypesController.php 1 location

@@ 252-254 (lines=3) @@
249
        $this->printTitle($this->lang['strproperties'], 'pg.type');
250
        $this->printMsg($msg);
251
252
        $attPre = function (&$rowdata) use ($data) {
253
            $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']);
254
        };
255
256
        if ($typedata->recordCount() > 0) {
257
            $vals = false;

src/traits/ViewsMatViewsPropertiesTrait.php 1 location

@@ 29-31 (lines=3) @@
26
    {
27
        $data = $this->misc->getDatabaseAccessor();
28
29
        $attPre = function (&$rowdata) use ($data) {
30
            $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']);
31
        };
32
33
        $this->printTrail($this->subject);
34
        $this->printTabs($this->subject, 'columns');