Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/ReferenceHelper.php 1 location

@@ 32-34 (lines=3) @@
29
     */
30
    public static function getInstance()
31
    {
32
        if (!isset(self::$instance) || (self::$instance === null)) {
33
            self::$instance = new self();
34
        }
35
36
        return self::$instance;
37
    }

src/PhpSpreadsheet/Calculation/Calculation.php 1 location

@@ 2030-2032 (lines=3) @@
2027
            }
2028
        }
2029
2030
        if (!isset(self::$instance) || (self::$instance === null)) {
2031
            self::$instance = new self();
2032
        }
2033
2034
        return self::$instance;
2035
    }