Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Rector\CodeQuality\Rector\Return_\SimplifyUselessVariableRector;
use Rector\CodeQuality\Rector\Ternary\UnnecessaryTernaryExpressionRector;
use Rector\CodeQualityStrict\Rector\Variable\MoveVariableDeclarationNearReferenceRector;
use Rector\CodingStyle\Rector\ClassConst\VarConstantCommentRector;
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion;
Expand All @@ -32,6 +31,7 @@
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Utils\Rector\PassStrictParameterToFunctionParameterRector;
use Utils\Rector\RemoveErrorSuppressInTryCatchStmtsRector;
use Utils\Rector\RemoveVarTagFromClassConstantRector;
use Utils\Rector\UnderscoreToCamelCaseVariableNameRector;

return static function (ContainerConfigurator $containerConfigurator): void {
Expand Down Expand Up @@ -93,5 +93,5 @@
$services->set(TernaryToNullCoalescingRector::class);
$services->set(ListToArrayDestructRector::class);
$services->set(MoveVariableDeclarationNearReferenceRector::class);
$services->set(VarConstantCommentRector::class);
$services->set(RemoveVarTagFromClassConstantRector::class);
};
4 changes: 0 additions & 4 deletions system/Cache/Handlers/BaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,11 @@ abstract class BaseHandler implements CacheInterface
/**
* Reserved characters that cannot be used in a key or tag.
* From https://github.com/symfony/cache-contracts/blob/c0446463729b89dd4fa62e9aeecc80287323615d/ItemInterface.php#L43
*
* @var string
*/
public const RESERVED_CHARACTERS = '{}()/\@:';

/**
* Maximum key length.
*
* @var int
*/
public const MAX_KEY_LENGTH = PHP_INT_MAX;

Expand Down
2 changes: 0 additions & 2 deletions system/Cache/Handlers/FileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class FileHandler extends BaseHandler
{
/**
* Maximum key length.
*
* @var int
*/
public const MAX_KEY_LENGTH = 255;

Expand Down
5 changes: 0 additions & 5 deletions system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,9 @@ class CodeIgniter
{
/**
* The current version of CodeIgniter Framework
*
* @var string
*/
const CI_VERSION = '4.1.2';

/**
* @var string
*/
private const MIN_PHP_VERSION = '7.3';

/**
Expand Down
10 changes: 0 additions & 10 deletions system/Cookie/CookieInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,25 @@ interface CookieInterface
* Cookies will be sent in all contexts, i.e in responses to both
* first-party and cross-origin requests. If `SameSite=None` is set,
* the cookie `Secure` attribute must also be set (or the cookie will be blocked).
*
* @var string
*/
public const SAMESITE_NONE = 'none';

/**
* Cookies are not sent on normal cross-site subrequests (for example to
* load images or frames into a third party site), but are sent when a
* user is navigating to the origin site (i.e. when following a link).
*
* @var string
*/
public const SAMESITE_LAX = 'lax';

/**
* Cookies will only be sent in a first-party context and not be sent
* along with requests initiated by third party websites.
*
* @var string
*/
public const SAMESITE_STRICT = 'strict';

/**
* RFC 6265 allowed values for the "SameSite" attribute.
*
* @var string[]
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
*/
public const ALLOWED_SAMESITE_VALUES = [
Expand All @@ -60,8 +52,6 @@ interface CookieInterface
/**
* Expires date format.
*
* @var string
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date
* @see https://tools.ietf.org/html/rfc7231#section-7.1.1.2
*/
Expand Down
Loading