Code Duplication    Length = 12-12 lines in 2 locations

source/MySQLiByDanielGPnumbers.php 1 location

@@ 48-59 (lines=12) @@
45
     * @param boolean $outputFormated
46
     * @return array
47
     */
48
    protected function setFieldNumbers($fieldDetails, $outputFormated = false)
49
    {
50
        $sRtrn = $this->setFieldSpecific($fieldDetails);
51
        if ($outputFormated) {
52
            if (is_array($sRtrn)) {
53
                foreach ($sRtrn as $key => $value) {
54
                    $sRtrn[$key] = $this->setNumberFormat($value);
55
                }
56
            }
57
        }
58
        return $sRtrn;
59
    }
60
61
    /**
62
     * Establishes numbers of fields

source/MySQLiByDanielGPstructures.php 1 location

@@ 237-248 (lines=12) @@
234
     * @param boolean $outputFormated
235
     * @return array
236
     */
237
    protected function setFieldNumbers($fieldDetails, $outputFormated = false)
238
    {
239
        $sRtrn = $this->setFieldSpecific($fieldDetails);
240
        if ($outputFormated) {
241
            if (is_array($sRtrn)) {
242
                foreach ($sRtrn as $key => $value) {
243
                    $sRtrn[$key] = $this->setNumberFormat($value);
244
                }
245
            }
246
        }
247
        return $sRtrn;
248
    }
249
250
    /**
251
     * Establishes numbers of fields