Core module typos

This commit is contained in:
Atish Amte 2019-03-24 12:36:11 +05:30
parent b940cfdefa
commit bc69e18efc
No known key found for this signature in database
GPG Key ID: 8D04229F36B2886E
3 changed files with 6 additions and 5 deletions

View File

@ -615,7 +615,7 @@ class CodeIgniter
*
* @return array
*/
public function getPerformanceStats()
public function getPerformanceStats(): array
{
return [
'startTime' => $this->startTime,

View File

@ -454,6 +454,7 @@ class Entity
* @param $value
*
* @return \CodeIgniter\I18n\Time
* @throws \Exception
*/
protected function mutateDate($value)
{
@ -484,7 +485,7 @@ class Entity
/**
* Provides the ability to cast an item as a specific data type.
* Add ? at the beginning of $type (i.e. ?string) to get NULL instead of castig $value if $value === null
* Add ? at the beginning of $type (i.e. ?string) to get NULL instead of casting $value if $value === null
*
* @param $value
* @param string $type

View File

@ -384,7 +384,7 @@ class Model
/**
* Returns the first row of the result set. Will take any previous
* Query Builder calls into account when determing the result set.
* Query Builder calls into account when determining the result set.
*
* @return array|object|null
*/
@ -429,7 +429,7 @@ class Model
*
* @return $this
*/
public function set($key, $value = '', bool $escape = null)
public function set($key, string $value = '', bool $escape = null)
{
$data = is_array($key)
? $key
@ -1356,7 +1356,7 @@ class Model
*
* @return array
*/
protected function cleanValidationRules($rules, array $data = null): array
protected function cleanValidationRules(array $rules, array $data = null): array
{
if (empty($data))
{