Code Duplication    Length = 7-8 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 2687-2694 (lines=8) @@
2684
		return $object->call($function, $args);
2685
	}
2686
2687
	public function _ls($function="list.html", $args="") {
2688
		// remove possible path information (greedy match)
2689
		if ( ! ( $function instanceof \Closure ) ) {
2690
			$function = basename( (string) $function );
2691
		}
2692
		return $this->store->call($function, $args,
2693
			$this->store->ls($this->path));
2694
	}
2695
2696
	public function _parents($function="list.html", $args="", $top="") {
2697
		// remove possible path information (greedy match)
@@ 2696-2702 (lines=7) @@
2693
			$this->store->ls($this->path));
2694
	}
2695
2696
	public function _parents($function="list.html", $args="", $top="") {
2697
		// remove possible path information (greedy match)
2698
		if ( !($function instanceof \Closure ) ) {
2699
			$function = basename( (string) $function);
2700
		}
2701
		return $this->parents($this->path, $function, $args, $top);
2702
	}
2703
2704
	public function _find($criteria, $function="list.html", $args="", $limit=100, $offset=0) {
2705
		$this->error = '';