Code Duplication    Length = 7-7 lines in 2 locations

src/Core/Variables/StandardVariableProvider.php 1 location

@@ 275-281 (lines=7) @@
272
     * @param string|null $accessor
273
     * @return mixed
274
     */
275
    protected function extractSingleValue($subject, $propertyName, $accessor = null)
276
    {
277
        if (!$accessor || !$this->canExtractWithAccessor($subject, $propertyName, $accessor)) {
278
            $accessor = $this->detectAccessor($subject, $propertyName);
279
        }
280
        return $this->extractWithAccessor($subject, $propertyName, $accessor);
281
    }
282
283
    /**
284
     * Returns TRUE if the data type of $subject is potentially compatible

src/Core/Variables/VariableExtractor.php 1 location

@@ 140-146 (lines=7) @@
137
     * @param string|null $accessor
138
     * @return mixed
139
     */
140
    protected function extractSingleValue($subject, $propertyName, $accessor = null)
141
    {
142
        if (!$accessor || !$this->canExtractWithAccessor($subject, $propertyName, $accessor)) {
143
            $accessor = $this->detectAccessor($subject, $propertyName);
144
        }
145
        return $this->extractWithAccessor($subject, $propertyName, $accessor);
146
    }
147
148
    /**
149
     * Returns TRUE if the data type of $subject is potentially compatible