Code Duplication    Length = 9-9 lines in 2 locations

src/View/ViewBuilder.php 2 locations

@@ 149-157 (lines=9) @@
146
     *
147
     * @return ViewFinderInterface Instance of a ViewFinder.
148
     */
149
    public function getViewFinder()
150
    {
151
        if (null === $this->viewFinder) {
152
            $viewFinderClass  = $this->config->getKey(static::VIEW_FINDER_KEY, 'ClassName');
153
            $this->viewFinder = new $viewFinderClass($this->config->getSubConfig(static::VIEW_FINDER_KEY));
154
        }
155
156
        return $this->viewFinder;
157
    }
158
159
    /**
160
     * Get the EngineFinder instance.
@@ 166-174 (lines=9) @@
163
     *
164
     * @return EngineFinderInterface Instance of a EngineFinder.
165
     */
166
    public function getEngineFinder()
167
    {
168
        if (null === $this->engineFinder) {
169
            $engineFinderClass  = $this->config->getKey(static::ENGINE_FINDER_KEY, 'ClassName');
170
            $this->engineFinder = new $engineFinderClass($this->config->getSubConfig(static::ENGINE_FINDER_KEY));
171
        }
172
173
        return $this->engineFinder;
174
    }
175
176
    /**
177
     * Add a location to scan with the ViewFinder.