documentation update + code fixes
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user