src/PhpPackages/Fluent/Fluent.php
public function registerCall($name, array $arguments = [])
    {
        $name = strtolower(preg_replace("/([A-Z]{1})/", "_$0", $name));

        $this->calls = array_merge($this->calls, array_filter(explode("_", $name)));

        if (count($arguments) > 0) {
            $lastIndex = count($this->calls) - 1;

            $this->calls[$lastIndex] = [$this->calls[$lastIndex], $arguments];
        }
    }
public function registerCall($name, array $arguments = [])
    {
        $name = strtolower(preg_replace("/([A-Z]{1})/", "_$0", $name));

        $this->calls = array_merge($this->calls, array_filter(explode("_", $name)));

        if (count($arguments) > 0) {
            $lastIndex = count($this->calls) - 1;

            $this->calls[$lastIndex] = [$this->calls[$lastIndex], $arguments];
        }
    }
public function registerCall ( $ name , array $ arguments = [ ] ) { $ name = strtolower ( preg_replace ( "/([A-Z]{1})/" , "_$0" , $ name ) ) ; $ this -> calls = array_merge ( $ this -> calls , array_filter ( explode ( "_" , $ name ) ) ) ; if ( count ( $ arguments ) > 0 ) { $ lastIndex = count ( $ this -> calls ) - 1 ; $ this -> calls [ $ lastIndex ] = [ $ this -> calls [ $ lastIndex ] , $ arguments ] ; } }
Registers a call.

@param string $name
@param array $arguments
@return void
Registers a call .