Skip to content

Commit 82d9ffa

Browse files
committed
style: apply rector fixes
1 parent 7ba3dda commit 82d9ffa

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎system/DataCaster/Cast/DatetimeCast.php‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
namespace CodeIgniter\DataCaster\Cast;
1515

16+
use Exception;
17+
use DateTimeInterface;
1618
use CodeIgniter\Database\BaseConnection;
1719
use CodeIgniter\Exceptions\InvalidArgumentException;
1820
use CodeIgniter\I18n\Time;
@@ -54,12 +56,12 @@ public static function set(
5456
if (is_string($value)) {
5557
try {
5658
$value = Time::parse($value);
57-
} catch (\Exception $e) {
59+
} catch (Exception) {
5860
self::invalidTypeValueError($value);
5961
}
6062
}
6163

62-
if (! $value instanceof \DateTimeInterface) {
64+
if (! $value instanceof DateTimeInterface) {
6365
self::invalidTypeValueError($value);
6466
}
6567

‎system/HTTP/Response.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use CodeIgniter\Cookie\Cookie;
1717
use CodeIgniter\Cookie\CookieStore;
1818
use CodeIgniter\HTTP\Exceptions\HTTPException;
19-
use Config\App;
2019
use Config\Cookie as CookieConfig;
2120

2221
/**

0 commit comments

Comments
 (0)