Mistři v programování na #hovnokod

Jistota je jistota!

/**
 * @var Configuration[]
 */
private $configurations;

/**
 * @return string[]
 */
public function getCatalogsOptions() : array {
	$rslt = [];
	foreach ($this->configurations as $configuration) {
		$rslt[] = $configuration;
	}
	return $rslt;
}

Anonymous,


Anonymous,


Roman Pospíšilík,

<!DOCTYPE html>
<html lang="cs-cz">
  <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title><?php echo 'points' ?></title>
  </head>
  <body>
..

Anonymous,

	public function redirect($code, $destination = NULL, $args = [])
	{
		if (!is_numeric($code)) { // first parameter is optional
			$args = func_num_args() < 3 && is_array($destination) ? $destination : array_slice(func_get_args(), 1);
			$destination = $code;
			$code = NULL;

		} elseif (func_num_args() > 3 || !is_array($args)) {
			$args = array_slice(func_get_args(), 2);
		}

		$presenter = $this->getPresenter();
		$presenter->redirectUrl($presenter->createRequest($this, $destination, $args, 'redirect'), $code);
	}

Anonymous,