Code Duplication    Length = 7-8 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

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