Code Duplication    Length = 11-11 lines in 2 locations

code/extension/ShareThisSTE.php 1 location

@@ 224-234 (lines=11) @@
221
                return true;
222
            }
223
            return false;
224
        } elseif (count($never) && count($always)) {
225
            if (in_array($this->owner->ClassName, $never)) {
226
                return false;
227
            }
228
            if (in_array($this->owner->ClassName, $always)) {
229
                return true;
230
            }
231
            //exception... if dev sets both always and never
232
            //then the ones not set will be included by default.
233
            return true;
234
        } else {
235
            user_error("Strange condition!", E_USER_NOTICE);
236
        }
237
    }

code/extension/SocialNetworksSTE.php 1 location

@@ 100-110 (lines=11) @@
97
            }
98
            return false;
99
        }
100
        if (count($never) && count($always)) {
101
            if (in_array($this->owner->ClassName, $never)) {
102
                return false;
103
            }
104
            if (in_array($this->owner->ClassName, $always)) {
105
                return true;
106
            }
107
            //exception... if dev sets both always and never
108
            //then the ones not set will be included by default.
109
            return true;
110
        }
111
    }
112
}
113