alias of the pending()
@param string $msg
@param bool   $ended
556270
public static function loading(string $msg = 'Loading ', $ended = false): void
    {
        self::pending($msg, $ended);
    }
206272
public static function log($msg)
    {
        $msg = $msg . "\n";
        if (!self::$daemonize) {
            self::safeEcho($msg);
        }
        file_put_contents((string)self::$logFile, date('Y-m-d H:i:s') . ' ' . 'pid:' . getmypid() . ' ' . $msg, FILE_APPEND | LOCK_EX);
    }
1298526
public function handlesMessage(Message $msg)
    {
        $handledMsgCodes = [
            Message::MSG_CALL,
            Message::MSG_CANCEL,
            Message::MSG_REGISTER,
            Message::MSG_UNREGISTER,
            Message::MSG_YIELD,
            Message::MSG_INTERRUPT
        ];

        if (in_array($msg->getMsgCode(), $handledMsgCodes)) {
            return true;
        } elseif ($msg instanceof ErrorMessage && $msg->getErrorMsgCode() === Message::MSG_INVOCATION) {
            return true;
        } elseif ($msg instanceof ErrorMessage && $msg->getErrorMsgCode() === Message::MSG_INTERRUPT) {
            return true;
        } else {
            return false;
        }
    }
1345055
public function serverStopProcess($msg = null)
  {
    Signal::getInstance()->emit("notifyServershutdown", $this);

    $this->execute("serverprocessstop", array("reasonmsg" => $msg));
  }
418701
public function pass(CommitMessage $msg) : bool
    {
        $lineNr = 1;
        foreach ($msg->getBodyLines() as $line) {
            if (strlen($line) > $this->maxLength) {
                $this->hint .= PHP_EOL . 'Line ' . $lineNr . ' of your body exceeds the max line length';
                return false;
            }
            $lineNr++;
        }
        return true;
    }
144963
public function warn($msg) {
		$this->mailMessage(self::LEVEL_WARN, $msg);

		if($this->checkLevel($this->loglevels, self::LEVEL_WARN) !== true)
			return;

		$this->writeMessage(self::LEVEL_WARN, $msg);
	}
1281209
public function stdout($msg, $status = self::STATUS_OK)
    {
        $msg = $this->removeColors($msg);
        $msg = $this->replaceEOLs($msg);

        if (defined('STDOUT')) {
            fwrite(STDOUT, $msg);
        } else {
            echo $msg;
            if (count(\ob_get_status()) !== 0) {
                ob_flush();
            }
        }
        return $this;
    }
765241
public static function confirm($msg)
    {
        echo $msg;
        $input = trim(fgets(STDIN));

        if (strtolower($input) == 'y' || strtolower($input) == 'yes') {
            return true;
        } else {
            return false;
        }
    }
102548
protected function handleNICK($origin, $msg)
    {
        // :oldnick!ident@host NICK newnick
        return $this->connection->dispatch(
            $this->makeEvent('!Nick', $origin, $msg[0])
        );
    }
813806
protected function sysLog($msg, $level)
    {
        switch ($level) {
            case self::EMERG:
                $priority = LOG_EMERG;
                break;
            case self::ERROR:
                $priority = LOG_ERR;
                break;
            case self::WARN:
                $priority = LOG_WARNING;
                break;
            case self::DEBUG:
                $priority = LOG_DEBUG;
                break;
            case self::INFO:
            case self::PROC_INFO:
            case self::WORKER_INFO:
            default:
                $priority = LOG_INFO;
                break;
        }

        if (!$ret = syslog($priority, $msg)) {
            $this->stderr("Unable to write to syslog\n");
        }

        return $ret;
    }
291434
public static function log($msg)
    {
        $msg = $msg."\n";
        if(static::$_status === static::STATUS_STARTING || !static::$daemonize)
        {
            echo $msg;
        }
        file_put_contents(static::$logFile, date('Y-m-d H:i:s') . " " . $msg, FILE_APPEND | LOCK_EX);
    }
1120217
public static function addMessage($msg, string $type = 'danger', bool $postponed = false) {
		if (!$postponed) {
			if (is_array($msg)) {
				foreach ($msg as $k=>$v) {
					Application::set(['messages', $type], $v, ['append'=>true]);
				}
			} else {
				Application::set(['messages', $type], $msg, ['append'=>true]);
			}
		} else { // postponed messages go into session
			if (is_array($msg)) {
				foreach ($msg as $k=>$v) {
					Session::set(['numbers', 'messages', $type], $v, ['append'=>true]);
				}
			} else {
				Session::set(['numbers', 'messages', $type], $msg, ['append'=>true]);
			}
		}
	}
697322
public function log($msg, $priority = 'NOTICE')
    {
        $msg = str_replace("\r", '', $msg);
        $msg = explode("\n", $msg);
        foreach ($msg as $line) {
            $this->exec(
                'LOG',
                array($priority, str_replace('"', '\\"', $line))
            );
        }
    }
1096509
protected function handlePART($origin, $msg)
    {
        // :nick1!ident@host PART #chan [reason]
        return $this->connection->dispatch(
            $this->makeEvent(
                '!Part',
                $msg[0],
                $origin,
                isset($msg[1]) ? $msg[1] : ''
            )
        );
    }
1257377
public static function isRequest($msg): bool
    {
        return is_object($msg) && property_exists($msg, 'id') && isset($msg->method);
    }
308795
public function takeAllAlphaNumUntil(string $ends): string
    {
        $ends = self::split($ends);

        $ends[] = "alphanumeric";

        $taken = "";

        while (ctype_alnum($this->peek())) {
            $char = $this->take();

            $taken .= $char;
        }

        $this->latestExpectations = $ends;

        if (!in_array($this->peek(), $ends)) {
            throw new UnexpectedChar($this, $ends);
        }

        return $taken;
    }
1265854
public static function notify( $msg ) {
		self::$msg = $msg;

		add_action( 'wp_footer', [ self::class, 'print_message' ], 999 );
		if ( isset( $_GET['page'] ) && 'geot-settings' == $_GET['page'] ) {
			add_action( 'admin_footer', [ self::class, 'print_message' ], 999 );
		}
	}