protected function buildInlineCodeOfEvent(AbstractEvent $event) {
        if ($event->getInline()) {
            $code = $event->getCode() . PHP_EOL;
        } else {
            $code = $this->buildHandlerFunctionCall($event);
        }
        $condition = $this->buildCondition($event);
        if (empty($condition)) {
            $result = $code;
        } else {
            $result = '                    if (' . $condition . ') {' . PHP_EOL
                    . $code
                    . '                    }' . PHP_EOL;
        }
        return $result;
    }
protected function buildInlineCodeOfEvent(AbstractEvent $event) {
        if ($event->getInline()) {
            $code = $event->getCode() . PHP_EOL;
        } else {
            $code = $this->buildHandlerFunctionCall($event);
        }
        $condition = $this->buildCondition($event);
        if (empty($condition)) {
            $result = $code;
        } else {
            $result = '                    if (' . $condition . ') {' . PHP_EOL
                    . $code
                    . '                    }' . PHP_EOL;
        }
        return $result;
    }
protected function buildInlineCodeOfEvent ( AbstractEvent $ event ) { if ( $ event -> getInline ( ) ) { $ code = $ event -> getCode ( ) . PHP_EOL ; } else { $ code = $ this -> buildHandlerFunctionCall ( $ event ) ; } $ condition = $ this -> buildCondition ( $ event ) ; if ( empty ( $ condition ) ) { $ result = $ code ; } else { $ result = '                    if (' . $ condition . ') {' . PHP_EOL . $ code . '                    }' . PHP_EOL ; } return $ result ; }
Builds the inline code of a concrete event.
@param \ManiaScript\Builder\Event\AbstractEvent $event The event.
@return string The inline code.
Builds the inline code of a concrete event .