original_string: protected function showInfos()
      {
          $pid = $this->getCurrentPid();
          $isRunning = $this->isRunning($pid);
          $host = Arr::get($this->config, 'server.host');
          $port = Arr::get($this->config, 'server.port');
          $reactorNum = Arr::get($this->config, 'server.options.reactor_num');
          $workerNum = Arr::get($this->config, 'server.options.worker_num');
          $taskWorkerNum = Arr::get($this->config, 'server.options.task_worker_num');
          $isWebsocket = Arr::get($this->config, 'websocket.enabled');
          $logFile = Arr::get($this->config, 'server.options.log_file');
  
          $table = [
              ['PHP Version', 'Version' => phpversion()],
              ['Swoole Version', 'Version' => swoole_version()],
              ['Laravel Version', $this->getApplication()->getVersion()],
              ['Listen IP', $host],
              ['Listen Port', $port],
              ['Server Status', $isRunning ? 'Online' : 'Offline'],
              ['Reactor Num', $reactorNum],
              ['Worker Num', $workerNum],
              ['Task Worker Num', $isWebsocket ? $taskWorkerNum : 0],
              ['Websocket Mode', $isWebsocket ? 'On' : 'Off'],
              ['PID', $isRunning ? $pid : 'None'],
              ['Log Path', $logFile],
          ];
  
          $this->table(['Name', 'Value'], $table);
      }
code: protected function showInfos()
      {
          $pid = $this->getCurrentPid();
          $isRunning = $this->isRunning($pid);
          $host = Arr::get($this->config, 'server.host');
          $port = Arr::get($this->config, 'server.port');
          $reactorNum = Arr::get($this->config, 'server.options.reactor_num');
          $workerNum = Arr::get($this->config, 'server.options.worker_num');
          $taskWorkerNum = Arr::get($this->config, 'server.options.task_worker_num');
          $isWebsocket = Arr::get($this->config, 'websocket.enabled');
          $logFile = Arr::get($this->config, 'server.options.log_file');
  
          $table = [
              ['PHP Version', 'Version' => phpversion()],
              ['Swoole Version', 'Version' => swoole_version()],
              ['Laravel Version', $this->getApplication()->getVersion()],
              ['Listen IP', $host],
              ['Listen Port', $port],
              ['Server Status', $isRunning ? 'Online' : 'Offline'],
              ['Reactor Num', $reactorNum],
              ['Worker Num', $workerNum],
              ['Task Worker Num', $isWebsocket ? $taskWorkerNum : 0],
              ['Websocket Mode', $isWebsocket ? 'On' : 'Off'],
              ['PID', $isRunning ? $pid : 'None'],
              ['Log Path', $logFile],
          ];
  
          $this->table(['Name', 'Value'], $table);
      }
code_tokens: protected function showInfos ( ) { $ pid = $ this -> getCurrentPid ( ) ; $ isRunning = $ this -> isRunning ( $ pid ) ; $ host = Arr :: get ( $ this -> config , 'server.host' ) ; $ port = Arr :: get ( $ this -> config , 'server.port' ) ; $ reactorNum = Arr :: get ( $ this -> config , 'server.options.reactor_num' ) ; $ workerNum = Arr :: get ( $ this -> config , 'server.options.worker_num' ) ; $ taskWorkerNum = Arr :: get ( $ this -> config , 'server.options.task_worker_num' ) ; $ isWebsocket = Arr :: get ( $ this -> config , 'websocket.enabled' ) ; $ logFile = Arr :: get ( $ this -> config , 'server.options.log_file' ) ; $ table = [ [ 'PHP Version' , 'Version' => phpversion ( ) ] , [ 'Swoole Version' , 'Version' => swoole_version ( ) ] , [ 'Laravel Version' , $ this -> getApplication ( ) -> getVersion ( ) ] , [ 'Listen IP' , $ host ] , [ 'Listen Port' , $ port ] , [ 'Server Status' , $ isRunning ? 'Online' : 'Offline' ] , [ 'Reactor Num' , $ reactorNum ] , [ 'Worker Num' , $ workerNum ] , [ 'Task Worker Num' , $ isWebsocket ? $ taskWorkerNum : 0 ] , [ 'Websocket Mode' , $ isWebsocket ? 'On' : 'Off' ] , [ 'PID' , $ isRunning ? $ pid : 'None' ] , [ 'Log Path' , $ logFile ] , ] ; $ this -> table ( [ 'Name' , 'Value' ] , $ table ) ; }
docstring: Display PHP and Swoole miscs infos.
docstring_tokens: Display PHP and Swoole miscs infos .