@param bool $first

@return string
420781
private function name($first = FALSE): string
    {
        $name = isset(\Auth::user()->name) ? \Auth::user()->name : 'John Doe';
        
        if ($first) return explode(' ', $name)[0];

        return $name;
    }
667871
protected function first_page()
    {
        $style = @$this->span_class['first'];
        if ($this->page == 1)
        {
            return '<span class="' . $style . '">' . $this->first_page . '</span>';
        }

        return $this->_get_link($this->_get_url(1), $this->first_page, $style);
	}
517500
public function getOptionSuffix($ucFirst = true)
    {
        return $ucFirst ? ucfirst($this->getOptions()->getSuffix()) : $this->getOptions()->getSuffix();
    }
446127
public static function firstSlash($string) {
		$firstSlash = strpos($string, "/");
		return ($firstSlash !== false)? $firstSlash: strlen($string);
	}
366686
public function firstPage()
    {
        // return '<a href="'.$this->getUrl().'" class="number" title="1">'.$this->text['first'].'</a>';
        $first = Html::a($this->text['first'], $this->getUrl(1));

        $this->html['first'] = $this->hasListElement($first);

        return $this;
    }
817343
public function first()
	{
		/** @var \mysqli_result $rows */
		$rows = $this->runGen(false);
		if ($rows === false) return null;
		while ($row = $rows->fetch_assoc()) {
			$rows->free_result();
			return $row;
		}
		return null;
	}
700398
public function firstToSee()
    {
        if ($this->firstNewNotSeen) {
            return $this->firstNewNotSeen;
        }
        if ($this->firstEditedNotSeen) {
            return $this->firstEditedNotSeen;
        }
        return $this->latest;
    }
962224
public static function readFirst(string $message = '', bool $nl = false): string
    {
        return self::readChar($message, $nl);
    }
1342913
public function first()
    {
        $response =  $this->httpGetRequest($this->buildUrl());

        if (empty($response->data[0])) {
            return false;
        }

        return $response->data[0];
    }
974691
public function first()
    {
        $result = $this->limit(1)->get();

        return ($result !== null && \count($result) !== 0) ? $result[0] : null;
    }
630000
public function select($first = false)
	{
		if($this->isSelectBefore)
		{
			$this->__selectBefore();
		}
		$option = $this->getOption();
		$this->db->operationOption = $option;
		if($first)
		{
			$data = $this->db->getOne();
		}
		else
		{
			$data = $this->db->query();
			$this->__selectAfter($data,$option);
		}
		return $data;
	}
772054
public function getFirst()
    {
        $first = null;

        if (count($this->renderers) > 0) {
            $first = reset($this->renderers);
        }

        return $first;
    }
835799
public function fullName($lastNameFirst = false)
    {
        if (!Wasabi::setting('Core.User.has_firstname_lastname')) {
            return $this->username;
        }
        if ($lastNameFirst) {
            return $this->lastname . ', ' . $this->firstname;
        }
        return $this->firstname . ' ' . $this->lastname;
    }
93530
public static function select($values, $value, $first=null) {
		$result="";
		if ($first) {
			$result.="<option class='element'>" . $first . "</option>";
		}
		foreach ( $values as $v ) {
			$selected="";
			$id=$v;
			if (is_object($v) === true) {
				$id=$v->getId();
			}
			if ($id === $value) {
				$selected="selected";
			}
			$result.="<option " . $selected . " class='element' id='element" . $id . "' value='" . $id . "'>" . $v . "</option>";
		}
		return $result;
	}
105759
protected function getFirstRequestOid() {
    $request = $this->getRequest();
    foreach ($request->getValues() as $key => $value) {
      if (ObjectId::isValid($key)) {
        return $key;
      }
    }
    return '';
  }
385599
protected function setRuleName($first = false)
    {
        if ($this->name) {
            $vars = $this->parseVar($this->rule);
            $name = strtolower($this->name);

            if (isset($this->option['ext'])) {
                $suffix = $this->option['ext'];
            } elseif ($this->parent->getOption('ext')) {
                $suffix = $this->parent->getOption('ext');
            } else {
                $suffix = null;
            }

            $value = [$this->rule, $vars, $this->parent->getDomain(), $suffix, $this->method];

            Zilf::$container->getShare('ruleName')->set($name, $value, $first);
        }

        if (!$this->hasSetRule) {
            Zilf::$container->getShare('ruleName')->setRule($this->rule, $this);
            $this->hasSetRule = true;
        }
    }
785262
protected static function splitFirstLine($firstLine)
    {
        $parts = preg_split('/\\s/', $firstLine, null, PREG_SPLIT_NO_EMPTY);
        if (count($parts) > 1) {
            return $parts;
        }
        $parts = explode(',', $firstLine);
        if (count($parts) > 1) {
            return $parts;
        }

        return preg_split('/(\\d+\\D*)/', $firstLine, null, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
    }