Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Calculation/Calculation.php 1 location

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

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
    }