Skip to content

Commit

Permalink
docs(Core): fix PHPDoc on constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinsh committed Aug 13, 2023
1 parent 4bd710b commit 1fd35e7
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions system/classes/Kohana/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,31 @@
*/
class Kohana_Core
{
// Release version and codename
/** @var string Release version */
const VERSION = '3.4.1';

/**
* @var string Release codename
* @deprecated 3.4.0
*/
const CODENAME = 'korismas';
// Common environment type constants for consistency and convenience

/** @var int Production environment type constant */
const PRODUCTION = 10;

/** @var int Staging environment type constant */
const STAGING = 20;

/** @var int Testing environment type constant */
const TESTING = 30;

/** @var int Development environment type constant */
const DEVELOPMENT = 40;
// Security check that is added to all generated PHP files

/** @var string Security check that is added to all generated PHP files */
const FILE_SECURITY = '<?php defined(\'SYSPATH\') OR die(\'No direct script access.\');';
// Format of cache files: header, cache name, and data

/** @var string Format of cache files: header, cache name, and data */
const FILE_CACHE = ":header \n\n// :name\n\n:data\n";

/**
Expand Down Expand Up @@ -535,8 +545,8 @@ public static function modules(array $modules = null)
} else {
// This module is invalid, remove it
throw new Kohana_Exception('Attempted to load an invalid or missing module \':module\' at \':path\'', [
':module' => $name,
':path' => Debug::path($path),
':module' => $name,
':path' => Debug::path($path),
]);
}
}
Expand Down Expand Up @@ -941,5 +951,4 @@ public static function version()
{
return 'Kohana Framework ' . Kohana::VERSION;
}

}

0 comments on commit 1fd35e7

Please sign in to comment.