Merge pull request #720 from flightphp/improve-@copyright-and-@license

Normalize and simplify @copyright and @license PHPDoc tags
master
n0nag0n 1 day ago committed by GitHub
commit 240556e92b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -24,8 +24,7 @@ use Psr\Container\ContainerInterface;
* It is responsible for loading an HTTP request, running the assigned services, * It is responsible for loading an HTTP request, running the assigned services,
* and generating an HTTP response. * and generating an HTTP response.
* *
* @license MIT, https://docs.flightphp.com/license * @copyright 2011-2026, Mike Cao https://mikecao.com, n0nag0n <n0nag0n@sky-9.com>
* @copyright Copyright (c) 2011-2025, Mike Cao <mike@mikecao.com>, n0nag0n <n0nag0n@sky-9.com>
* *
* @method void start() * @method void start()
* @method void stop() * @method void stop()
@ -75,10 +74,7 @@ use Psr\Container\ContainerInterface;
* @phpstan-method void json(mixed $data, int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512) * @phpstan-method void json(mixed $data, int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512)
* @phpstan-method void jsonHalt(mixed $data, int $code = 200, bool $encode = true, string $charset = 'utf-8', int $option = 0) * @phpstan-method void jsonHalt(mixed $data, int $code = 200, bool $encode = true, string $charset = 'utf-8', int $option = 0)
* @phpstan-method void jsonp(mixed $data, string $param = 'jsonp', int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512) * @phpstan-method void jsonp(mixed $data, string $param = 'jsonp', int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512)
* * @license https://docs.flightphp.com/license MIT
* Note: IDEs will use standard @method tags for autocompletion, while PHPStan will use @phpstan-* tags for advanced type checking.
*
* phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
*/ */
class Engine class Engine
{ {

@ -15,7 +15,7 @@ use Psr\Container\ContainerInterface;
* The Flight class is a static representation of the framework. * The Flight class is a static representation of the framework.
* *
* @license MIT, https://docs.flightphp.com/license * @license MIT, https://docs.flightphp.com/license
* @copyright Copyright (c) 2011-2025, Mike Cao <mike@mikecao.com>, n0nag0n <n0nag0n@sky-9.com> * @copyright 2011-2026, Mike Cao https://mikecao.com, n0nag0n <n0nag0n@sky-9.com>
* *
* @method static void start() * @method static void start()
* @method static void path(string $dir) * @method static void path(string $dir)
@ -77,11 +77,8 @@ use Psr\Container\ContainerInterface;
* @phpstan-method static void json(mixed $data, int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512) * @phpstan-method static void json(mixed $data, int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512)
* @phpstan-method static void jsonHalt(mixed $data, int $code = 200, bool $encode = true, string $charset = 'utf-8', int $option = 0) * @phpstan-method static void jsonHalt(mixed $data, int $code = 200, bool $encode = true, string $charset = 'utf-8', int $option = 0)
* @phpstan-method static void jsonp(mixed $data, string $param = 'jsonp', int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512) * @phpstan-method static void jsonp(mixed $data, string $param = 'jsonp', int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512)
* * @license https://docs.flightphp.com/license MIT
* Note: IDEs will use standard @method tags for autocompletion,
* while PHPStan will use @phpstan-* tags for advanced type checking.
*/ */
// phpcs:ignore PSR1.Classes.ClassDeclaration.MissingNamespace
class Flight class Flight
{ {
/** /**

@ -18,8 +18,8 @@ use TypeError;
* allows you to hook other functions to an event that can modify the * allows you to hook other functions to an event that can modify the
* input parameters and/or the output. * input parameters and/or the output.
* *
* @license MIT, http://flightphp.com/license * @copyright 2011 Mike Cao https://mikecao.com
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com> * @license https://docs.flightphp.com/license MIT
* @phpstan-template EngineTemplate of object * @phpstan-template EngineTemplate of object
*/ */
class Dispatcher class Dispatcher

@ -13,8 +13,8 @@ use Exception;
* instances with custom initialization parameters. It also performs * instances with custom initialization parameters. It also performs
* class autoloading. * class autoloading.
* *
* @license MIT, http://flightphp.com/license * @copyright 2011 Mike Cao https://mikecao.com
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com> * @license https://docs.flightphp.com/license MIT
*/ */
class Loader class Loader
{ {

@ -11,8 +11,8 @@ use flight\util\Collection;
* all the super globals $_GET, $_POST, $_COOKIE, and $_FILES * all the super globals $_GET, $_POST, $_COOKIE, and $_FILES
* are stored and accessible via the Request object. * are stored and accessible via the Request object.
* *
* @license MIT, http://flightphp.com/license * @copyright 2011 Mike Cao https://mikecao.com
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com> * @license https://docs.flightphp.com/license MIT
* *
* The default request properties are: * The default request properties are:
* *

@ -12,8 +12,8 @@ use flight\core\EventDispatcher;
* contains the response headers, HTTP status code, and response * contains the response headers, HTTP status code, and response
* body. * body.
* *
* @license MIT, http://flightphp.com/license * @copyright 2011 Mike Cao https://mikecao.com
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com> * @license https://docs.flightphp.com/license MIT
*/ */
class Response class Response
{ {

@ -9,8 +9,8 @@ namespace flight\net;
* an assigned callback function. The Router tries to match the * an assigned callback function. The Router tries to match the
* requested URL against a series of URL patterns. * requested URL against a series of URL patterns.
* *
* @license MIT, http://flightphp.com/license * @copyright 2011 Mike Cao https://mikecao.com
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com> * @license https://docs.flightphp.com/license MIT
*/ */
class Route class Route
{ {

@ -12,8 +12,8 @@ use flight\net\Route;
* an assigned callback function. The Router tries to match the * an assigned callback function. The Router tries to match the
* requested URL against a series of URL patterns. * requested URL against a series of URL patterns.
* *
* @license MIT, http://flightphp.com/license * @copyright 2011 Mike Cao https://mikecao.com
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com> * @license https://docs.flightphp.com/license MIT
*/ */
class Router class Router
{ {

@ -9,8 +9,8 @@ namespace flight\template;
* methods for managing view data and inserts the data into * methods for managing view data and inserts the data into
* view templates upon rendering. * view templates upon rendering.
* *
* @license MIT, http://flightphp.com/license * @copyright 2011 Mike Cao https://mikecao.com
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com> * @license https://docs.flightphp.com/license MIT
*/ */
class View class View
{ {

@ -13,10 +13,10 @@ use JsonSerializable;
* The Collection class allows you to access a set of data * The Collection class allows you to access a set of data
* using both array and object notation. * using both array and object notation.
* *
* @license MIT, http://flightphp.com/license * @copyright 2011 Mike Cao https://mikecao.com
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com>
* @implements ArrayAccess<string, mixed> * @implements ArrayAccess<string, mixed>
* @implements Iterator<string, mixed> * @implements Iterator<string, mixed>
* @license https://docs.flightphp.com/license MIT
*/ */
class Collection implements ArrayAccess, Iterator, Countable, JsonSerializable class Collection implements ArrayAccess, Iterator, Countable, JsonSerializable
{ {

Loading…
Cancel
Save