Code Duplication    Length = 8-8 lines in 2 locations

src/Core/Variables/VariableExtractor.php 1 location

@@ 246-253 (lines=8) @@
243
     * @param string $propertyName
244
     * @return mixed
245
     */
246
    protected function extractThroughAsserter($subject, $propertyName)
247
    {
248
        if (method_exists($subject, 'is' . ucfirst($propertyName))) {
249
            return call_user_func_array([$subject, 'is' . ucfirst($propertyName)], []);
250
        }
251
252
        return call_user_func_array([$subject, 'has' . ucfirst($propertyName)], []);
253
    }
254
}
255

src/Core/Variables/StandardVariableProvider.php 1 location

@@ 445-452 (lines=8) @@
442
     * @param string $propertyName
443
     * @return mixed
444
     */
445
    protected function extractThroughAsserter($subject, $propertyName)
446
    {
447
        if (method_exists($subject, 'is' . ucfirst($propertyName))) {
448
            return call_user_func_array([$subject, 'is' . ucfirst($propertyName)], []);
449
        }
450
451
        return call_user_func_array([$subject, 'has' . ucfirst($propertyName)], []);
452
    }
453
}
454