Code Duplication    Length = 10-10 lines in 2 locations

lib/classes/Swift/DependencyContainer.php 2 locations

@@ 279-288 (lines=10) @@
276
     *
277
     * @return $this
278
     */
279
    public function addConstructorValue($value)
280
    {
281
        $endPoint = &$this->_getEndPoint();
282
        if (!isset($endPoint['args'])) {
283
            $endPoint['args'] = array();
284
        }
285
        $endPoint['args'][] = array('type' => 'value', 'item' => $value);
286
287
        return $this;
288
    }
289
290
    /**
291
     * Specify a dependency lookup for the constructor of the previously
@@ 300-309 (lines=10) @@
297
     *
298
     * @return $this
299
     */
300
    public function addConstructorLookup($lookup)
301
    {
302
        $endPoint = &$this->_getEndPoint();
303
        if (!isset($this->_endPoint['args'])) {
304
            $endPoint['args'] = array();
305
        }
306
        $endPoint['args'][] = array('type' => 'lookup', 'item' => $lookup);
307
308
        return $this;
309
    }
310
311
    /**
312
     * Get the literal value with $itemName