Code Duplication    Length = 5-5 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 1576-1580 (lines=5) @@
1573
					$ARConfig->libraries[$this->path]=array();
1574
				}
1575
				array_unshift($ARConfig->libraries[$this->path],$path);
1576
				if (!$ARConfig->cacheableLibraries[$this->path]) {
1577
					$ARConfig->cacheableLibraries[$this->path] = array($path);
1578
				} else {
1579
					array_unshift($ARConfig->cacheableLibraries[$this->path], $path);
1580
				}
1581
			}
1582
		} else if ($name && is_string($name)) {
1583
			if (!$ARConfig->cache[$this->path]) {
@@ 1595-1599 (lines=5) @@
1592
				$this->loadConfig($this->path);
1593
			}
1594
			$ARConfig->libraries[$this->path][$name]=$path;
1595
			if (!$ARConfig->cacheableLibraries[$this->path]) {
1596
				$ARConfig->cacheableLibraries[$this->path] = array($name => $path);
1597
			} else {
1598
				$ARConfig->cacheableLibraries[$this->path][$name] = $path;
1599
			}
1600
			// make sure that unnamed libraries don't get added to the configcache
1601
			unset($ARConfig->cache[$this->path]->libraries[$name]);
1602
			unset($ARConfig->pinpcache[$this->path]["library"][$name]);