documentation update + code fixes

This commit is contained in:
Antonio Ramirez
2017-06-11 23:25:51 +02:00
parent 4dedf111a1
commit 7344ad31df
91 changed files with 1699 additions and 827 deletions

View File

@ -54,6 +54,6 @@ class ClassMapHelper
if (array_key_exists($key, $this->map)) {
return $this->map[$key];
}
throw new \Exception('Unknown model map key: '.$key);
throw new \Exception('Unknown model map key: ' . $key);
}
}

View File

@ -20,6 +20,6 @@ class GravatarHelper
public function getUrl($id, $size = 200)
{
return '//gravatar.com/avatar/'.$id.'?s='.$size;
return '//gravatar.com/avatar/' . $id . '?s=' . $size;
}
}

View File

@ -28,7 +28,7 @@ class SecurityHelper
/**
* Generates a secure hash from a password and a random salt.
*
* @param string $password
* @param string $password
* @param null|int $cost
*
* @return string

View File

@ -11,9 +11,9 @@
namespace Da\User\Helper;
use DateTime;
use DateTimeZone;
use yii\helpers\ArrayHelper;
use DateTime;
class TimezoneHelper
{
@ -32,7 +32,7 @@ class TimezoneHelper
$offset = $date->getOffset() / 60 / 60;
$timeZones[] = [
'timezone' => $timeZone,
'name' => "{$timeZone} (UTC ".($offset > 0 ? '+' : '')."{$offset})",
'name' => "{$timeZone} (UTC " . ($offset > 0 ? '+' : '') . "{$offset})",
'offset' => $offset,
];
}