src/Cortex/Output.php
protected function searchTriggers($trigger)
    {
        synapse()->triggers->each(function ($class) use ($trigger) {
            $triggerClass = "\\Axiom\\Rivescript\\Cortex\\Triggers\\$class";
            $triggerClass = new $triggerClass();

            $found = $triggerClass->parse($trigger, $this->input);

            if ($found === true) {
                $this->getResponse($trigger);

                return false;
            }
        });
    }
protected function searchTriggers($trigger)
    {
        synapse()->triggers->each(function ($class) use ($trigger) {
            $triggerClass = "\\Axiom\\Rivescript\\Cortex\\Triggers\\$class";
            $triggerClass = new $triggerClass();

            $found = $triggerClass->parse($trigger, $this->input);

            if ($found === true) {
                $this->getResponse($trigger);

                return false;
            }
        });
    }
protected function searchTriggers ( $ trigger ) { synapse ( ) -> triggers -> each ( function ( $ class ) use ( $ trigger ) { $ triggerClass = "\\Axiom\\Rivescript\\Cortex\\Triggers\\$class" ; $ triggerClass = new $ triggerClass ( ) ; $ found = $ triggerClass -> parse ( $ trigger , $ this -> input ) ; if ( $ found === true ) { $ this -> getResponse ( $ trigger ) ; return false ; } } ) ; }
Search through available triggers to find a possible match.

@param string $trigger

@return bool
Search through available triggers to find a possible match .