Skip to content

Commit bc69e18

Browse files
committed
Core module typos
1 parent b940cfd commit bc69e18

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

system/CodeIgniter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ public function cachePage(Cache $config)
615615
*
616616
* @return array
617617
*/
618-
public function getPerformanceStats()
618+
public function getPerformanceStats(): array
619619
{
620620
return [
621621
'startTime' => $this->startTime,

system/Entity.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ protected function mapProperty(string $key)
454454
* @param $value
455455
*
456456
* @return \CodeIgniter\I18n\Time
457+
* @throws \Exception
457458
*/
458459
protected function mutateDate($value)
459460
{
@@ -484,7 +485,7 @@ protected function mutateDate($value)
484485

485486
/**
486487
* Provides the ability to cast an item as a specific data type.
487-
* Add ? at the beginning of $type (i.e. ?string) to get NULL instead of castig $value if $value === null
488+
* Add ? at the beginning of $type (i.e. ?string) to get NULL instead of casting $value if $value === null
488489
*
489490
* @param $value
490491
* @param string $type

system/Model.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public function findAll(int $limit = 0, int $offset = 0)
384384

385385
/**
386386
* Returns the first row of the result set. Will take any previous
387-
* Query Builder calls into account when determing the result set.
387+
* Query Builder calls into account when determining the result set.
388388
*
389389
* @return array|object|null
390390
*/
@@ -429,7 +429,7 @@ public function first()
429429
*
430430
* @return $this
431431
*/
432-
public function set($key, $value = '', bool $escape = null)
432+
public function set($key, string $value = '', bool $escape = null)
433433
{
434434
$data = is_array($key)
435435
? $key
@@ -1356,7 +1356,7 @@ public function validate($data): bool
13561356
*
13571357
* @return array
13581358
*/
1359-
protected function cleanValidationRules($rules, array $data = null): array
1359+
protected function cleanValidationRules(array $rules, array $data = null): array
13601360
{
13611361
if (empty($data))
13621362
{

0 commit comments

Comments
 (0)