Moved copyright and license to a public place :D

pull/532/head
fadrian06 1 year ago
parent 98db908ba5
commit 7015e5d3ba

@ -1,12 +1,5 @@
<?php <?php
/**
* Flight: An extensible micro-framework.
*
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com>
* @license MIT, http://flightphp.com/license
*/
declare(strict_types=1); declare(strict_types=1);
namespace flight\core; namespace flight\core;
@ -19,6 +12,9 @@ use InvalidArgumentException;
* are simply aliases for class methods or functions. The Dispatcher * are simply aliases for class methods or functions. The Dispatcher
* 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 Copyright (c) 2011, Mike Cao <mike@mikecao.com>
*/ */
class Dispatcher class Dispatcher
{ {

@ -1,12 +1,5 @@
<?php <?php
/**
* Flight: An extensible micro-framework.
*
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com>
* @license MIT, http://flightphp.com/license
*/
declare(strict_types=1); declare(strict_types=1);
namespace flight\core; namespace flight\core;
@ -19,6 +12,9 @@ use Exception;
* a list of reusable class instances and can generate a new class * a list of reusable class instances and can generate a new class
* 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 Copyright (c) 2011, Mike Cao <mike@mikecao.com>
*/ */
class Loader class Loader
{ {

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
namespace flight\database; namespace flight\database;
use PDO; use PDO;

@ -1,12 +1,5 @@
<?php <?php
/**
* Flight: An extensible micro-framework.
*
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com>
* @license MIT, http://flightphp.com/license
*/
declare(strict_types=1); declare(strict_types=1);
namespace flight\net; namespace flight\net;
@ -18,6 +11,9 @@ 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 Copyright (c) 2011, Mike Cao <mike@mikecao.com>
*
* The default request properties are: * The default request properties are:
* *
* - **url** - The URL being requested * - **url** - The URL being requested

@ -1,12 +1,5 @@
<?php <?php
/**
* Flight: An extensible micro-framework.
*
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com>
* @license MIT, http://flightphp.com/license
*/
declare(strict_types=1); declare(strict_types=1);
namespace flight\net; namespace flight\net;
@ -17,11 +10,14 @@ use Exception;
* The Response class represents an HTTP response. The object * The Response class represents an HTTP response. The object
* 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 Copyright (c) 2011, Mike Cao <mike@mikecao.com>
*/ */
class Response class Response
{ {
/** /**
* header Content-Length. * Content-Length header.
*/ */
public bool $content_length = true; public bool $content_length = true;
@ -312,15 +308,15 @@ class Response
\strlen($this->body); \strlen($this->body);
} }
/** /**
* Gets the response body * Gets the response body
* *
* @return string * @return string
*/ */
public function getBody(): string public function getBody(): string
{ {
return $this->body; return $this->body;
} }
/** /**
* Gets whether response body was sent. * Gets whether response body was sent.

@ -1,12 +1,5 @@
<?php <?php
/**
* Flight: An extensible micro-framework.
*
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com>
* @license MIT, http://flightphp.com/license
*/
declare(strict_types=1); declare(strict_types=1);
namespace flight\net; namespace flight\net;
@ -15,6 +8,9 @@ namespace flight\net;
* The Route class is responsible for routing an HTTP request to * The Route class is responsible for routing an HTTP request to
* 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 Copyright (c) 2011, Mike Cao <mike@mikecao.com>
*/ */
class Route class Route
{ {

@ -1,12 +1,5 @@
<?php <?php
/**
* Flight: An extensible micro-framework.
*
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com>
* @license MIT, http://flightphp.com/license
*/
declare(strict_types=1); declare(strict_types=1);
namespace flight\net; namespace flight\net;
@ -18,6 +11,9 @@ use flight\net\Route;
* The Router class is responsible for routing an HTTP request to * The Router class is responsible for routing an HTTP request to
* 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 Copyright (c) 2011, Mike Cao <mike@mikecao.com>
*/ */
class Router class Router
{ {

@ -1,12 +1,5 @@
<?php <?php
/**
* Flight: An extensible micro-framework.
*
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com>
* @license MIT, http://flightphp.com/license
*/
declare(strict_types=1); declare(strict_types=1);
namespace flight\template; namespace flight\template;
@ -15,6 +8,9 @@ namespace flight\template;
* The View class represents output to be displayed. It provides * The View class represents output to be displayed. It provides
* 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 Copyright (c) 2011, Mike Cao <mike@mikecao.com>
*/ */
class View class View
{ {

@ -1,12 +1,5 @@
<?php <?php
/**
* Flight: An extensible micro-framework.
*
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com>
* @license MIT, http://flightphp.com/license
*/
declare(strict_types=1); declare(strict_types=1);
namespace flight\util; namespace flight\util;
@ -19,6 +12,9 @@ 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 Copyright (c) 2011, Mike Cao <mike@mikecao.com>
* @implements ArrayAccess<string, mixed> * @implements ArrayAccess<string, mixed>
* @implements Iterator<string, mixed> * @implements Iterator<string, mixed>
*/ */

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
class ReturnTypeWillChange class ReturnTypeWillChange
{ {
} }

@ -29,6 +29,7 @@
<exclude name="Generic.Commenting.DocComment.SpacingBeforeShort" /> <exclude name="Generic.Commenting.DocComment.SpacingBeforeShort" />
<exclude name="Generic.Commenting.DocComment.ContentAfterOpen" /> <exclude name="Generic.Commenting.DocComment.ContentAfterOpen" />
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine" /> <exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine" />
<exclude name="Generic.Commenting.DocComment.ContentBeforeClose" />
</rule> </rule>
<file>flight/</file> <file>flight/</file>
<file>tests/</file> <file>tests/</file>

Loading…
Cancel
Save