Code Duplication    Length = 7-8 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 2745-2752 (lines=8) @@
2742
		return $object->call($function, $args);
2743
	}
2744
2745
	public function _ls($function="list.html", $args="") {
2746
		// remove possible path information (greedy match)
2747
		if ( ! ( $function instanceof \Closure ) ) {
2748
			$function = basename( (string) $function );
2749
		}
2750
		return $this->store->call($function, $args,
2751
			$this->store->ls($this->path));
2752
	}
2753
2754
	public function _parents($function="list.html", $args="", $top="") {
2755
		// remove possible path information (greedy match)
@@ 2754-2760 (lines=7) @@
2751
			$this->store->ls($this->path));
2752
	}
2753
2754
	public function _parents($function="list.html", $args="", $top="") {
2755
		// remove possible path information (greedy match)
2756
		if ( !($function instanceof \Closure ) ) {
2757
			$function = basename( (string) $function);
2758
		}
2759
		return $this->parents($this->path, $function, $args, $top);
2760
	}
2761
2762
	public function _find($criteria, $function="list.html", $args="", $limit=100, $offset=0) {
2763
		$this->error = '';