Code Duplication    Length = 3-3 lines in 2 locations

src/Subjects/AbstractSubject.php 2 locations

@@ 1125-1127 (lines=3) @@
1122
            $uniqueIdentifier = $this->coreConfigDataUidGenerator->generate($coreConfigData);
1123
1124
            // query whether or not, the configuration value on 'websites' level
1125
            if (isset($this->coreConfigData[$uniqueIdentifier][MemberNames::VALUE])) {
1126
                return $this->coreConfigData[$uniqueIdentifier][MemberNames::VALUE];
1127
            }
1128
        }
1129
1130
        // replace scope with 'default' and scope ID '0'
@@ 1143-1145 (lines=3) @@
1140
        $uniqueIdentifier = $this->coreConfigDataUidGenerator->generate($coreConfigData);
1141
1142
        // query whether or not, the configuration value on 'default' level
1143
        if (isset($this->coreConfigData[$uniqueIdentifier][MemberNames::VALUE])) {
1144
            return $this->coreConfigData[$uniqueIdentifier][MemberNames::VALUE];
1145
        }
1146
1147
        // if not, return the passed default value
1148
        if ($default !== null) {