Code Duplication    Length = 4-4 lines in 2 locations

src/Observers/UrlKeyObserver.php 2 locations

@@ 91-94 (lines=4) @@
88
        $this->getSubject()->prepareStoreViewCode();
89
90
        // query whether or not the URL key column has a value
91
        if ($this->hasValue(ColumnKeys::URL_KEY)) {
92
            $this->setValue(ColumnKeys::URL_KEY, $this->makeUrlKeyUnique($this->getValue(ColumnKeys::URL_KEY)));
93
            return;
94
        }
95
96
        // query whether or not a product name is available
97
        if ($this->hasValue(ColumnKeys::NAME)) {
@@ 97-100 (lines=4) @@
94
        }
95
96
        // query whether or not a product name is available
97
        if ($this->hasValue(ColumnKeys::NAME)) {
98
            $this->setValue(ColumnKeys::URL_KEY, $this->makeUrlKeyUnique($this->convertNameToUrlKey($this->getValue(ColumnKeys::NAME))));
99
            return;
100
        }
101
102
        // throw an exception, that the URL key can not be initialized
103
        $this->getSystemLogger()->debug(