Code Duplication    Length = 4-7 lines in 2 locations

source/Spiral/Database/Drivers/SQLServer/Schemas/SQLServerColumn.php 2 locations

@@ 352-355 (lines=4) @@
349
            return;
350
        }
351
352
        if ($this->defaultValue[0] == '(' && $this->defaultValue[strlen($this->defaultValue) - 1] == ')') {
353
            //Cut braces
354
            $this->defaultValue = substr($this->defaultValue, 1, -1);
355
        }
356
357
        if (preg_match('/^[\'""].*?[\'"]$/', $this->defaultValue)) {
358
            $this->defaultValue = substr($this->defaultValue, 1, -1);
@@ 361-367 (lines=7) @@
358
            $this->defaultValue = substr($this->defaultValue, 1, -1);
359
        }
360
361
        if (
362
            $this->phpType() != 'string'
363
            && ($this->defaultValue[0] == '(' && $this->defaultValue[strlen($this->defaultValue) - 1] == ')')
364
        ) {
365
            //Cut another braces
366
            $this->defaultValue = substr($this->defaultValue, 1, -1);
367
        }
368
    }
369
370
    /**