Постфиксная запись типов вместо префиксной

This commit is contained in:
CORP\phedor 2018-05-04 14:57:52 +03:00
parent 04662a94df
commit 11370eecc9
33 changed files with 95 additions and 79 deletions

View file

@ -160,7 +160,7 @@ class Path
}
// Сравнение двух путей на равентство
public function equal(/*.Path.*/ $path)
public function equal($path/*: Path*/)
{
$count = count($this->path);
if ($count == count($path->path)) {
@ -205,7 +205,7 @@ class Path
*
* @return boolean
*/
public function isParent(/*.Path.*/ $path)
public function isParent($path/*: Path*/)
{
if (isset($this->url['host']) && isset($path->url['host'])
&& ($this->url['host'] != $path->url['host'])) return false;