Code Duplication    Length = 7-8 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

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