Code Duplication    Length = 8-8 lines in 2 locations

src/Core/Variables/StandardVariableProvider.php 1 location

@@ 381-388 (lines=8) @@
378
     * @param string $propertyName
379
     * @return mixed
380
     */
381
    protected function extractThroughAsserter($subject, $propertyName)
382
    {
383
        if (method_exists($subject, 'is' . ucfirst($propertyName))) {
384
            return call_user_func_array([$subject, 'is' . ucfirst($propertyName)], []);
385
        }
386
387
        return call_user_func_array([$subject, 'has' . ucfirst($propertyName)], []);
388
    }
389
}
390

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