original_string: public function workers()
      {
          $this->sendCommand('workers');
          $res = $this->recvCommand();
          $workers = array();
          $tmp = explode("\n", $res);
          foreach ($tmp as $t) {
              if (!Connection::stringLength($t)) {
                  continue;
              }
  
              $info = explode(' : ', $t);
              list($fd, $ip, $id) = explode(' ', $info[0]);
  
              $abilities = isset($info[1]) ? trim($info[1]) : '';
  
              $workers[] = array(
                  'fd' => $fd,
                  'ip' => $ip,
                  'id' => $id,
                  'abilities' => empty($abilities) ? array() : explode(' ', $abilities),
              );
          }
  
          return $workers;
      }
code: public function workers()
      {
          $this->sendCommand('workers');
          $res = $this->recvCommand();
          $workers = array();
          $tmp = explode("\n", $res);
          foreach ($tmp as $t) {
              if (!Connection::stringLength($t)) {
                  continue;
              }
  
              $info = explode(' : ', $t);
              list($fd, $ip, $id) = explode(' ', $info[0]);
  
              $abilities = isset($info[1]) ? trim($info[1]) : '';
  
              $workers[] = array(
                  'fd' => $fd,
                  'ip' => $ip,
                  'id' => $id,
                  'abilities' => empty($abilities) ? array() : explode(' ', $abilities),
              );
          }
  
          return $workers;
      }
code_tokens: public function workers ( ) { $ this -> sendCommand ( 'workers' ) ; $ res = $ this -> recvCommand ( ) ; $ workers = array ( ) ; $ tmp = explode ( "\n" , $ res ) ; foreach ( $ tmp as $ t ) { if ( ! Connection :: stringLength ( $ t ) ) { continue ; } $ info = explode ( ' : ' , $ t ) ; list ( $ fd , $ ip , $ id ) = explode ( ' ' , $ info [ 0 ] ) ; $ abilities = isset ( $ info [ 1 ] ) ? trim ( $ info [ 1 ] ) : '' ; $ workers [ ] = array ( 'fd' => $ fd , 'ip' => $ ip , 'id' => $ id , 'abilities' => empty ( $ abilities ) ? array ( ) : explode ( ' ' , $ abilities ) , ) ; } return $ workers ; }
docstring: Get worker status and info.
  
  Returns the file descriptor, IP address, client ID and the abilities
  that the worker has announced.
  
  @throws \MHlavac\Gearman\Exception
  
  @return array A list of workers connected to the server
docstring_tokens: Get worker status and info .