@codeCoverageIgnoreStart for private __clone()
This commit is contained in:
14
Registry.php
14
Registry.php
@ -32,8 +32,18 @@ class Registry extends ArrayObject
|
|||||||
{
|
{
|
||||||
parent::__construct($array, $flags);
|
parent::__construct($array, $flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function __clone(){}
|
/**
|
||||||
|
* Refuse clone
|
||||||
|
* @codeCoverageIgnoreStart
|
||||||
|
*/
|
||||||
|
private function __clone()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @codeCoverageIgnoreStart
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the default registry instance.
|
* Retrieves the default registry instance.
|
||||||
|
@ -29,12 +29,17 @@ class CliController
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Refuse cloning
|
* Refuse cloning
|
||||||
|
* @codeCoverageIgnoreStart
|
||||||
*/
|
*/
|
||||||
private function __clone()
|
private function __clone()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnoreEnd
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
* @static
|
* @static
|
||||||
* @return CliController
|
* @return CliController
|
||||||
*/
|
*/
|
||||||
|
@ -35,12 +35,17 @@ class FrontController
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Refuse cloning
|
* Refuse cloning
|
||||||
|
* @codeCoverageIgnoreStart
|
||||||
*/
|
*/
|
||||||
private function __clone()
|
private function __clone()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnoreEnd
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
* @return FrontController
|
* @return FrontController
|
||||||
*/
|
*/
|
||||||
static public function getInstance()
|
static public function getInstance()
|
||||||
@ -128,7 +133,8 @@ class FrontController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $html;
|
return $html;
|
||||||
} catch (Exception $e) {
|
}
|
||||||
|
catch (Exception $e) {
|
||||||
if (Config::get('DEBUG')) {
|
if (Config::get('DEBUG')) {
|
||||||
if (!headers_sent()) {
|
if (!headers_sent()) {
|
||||||
if ($e instanceof ErrorHTTPException) {
|
if ($e instanceof ErrorHTTPException) {
|
||||||
|
@ -21,14 +21,24 @@ class Session
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Avoid new
|
* Avoid new
|
||||||
|
* @codeCoverageIgnoreStart
|
||||||
*/
|
*/
|
||||||
private function __construct(){}
|
private function __construct(){}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @codeCoverageIgnoreEnd
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Avoid cloning
|
* Avoid cloning
|
||||||
|
* @codeCoverageIgnoreStart
|
||||||
*/
|
*/
|
||||||
private function __clone(){}
|
private function __clone(){}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @codeCoverageIgnoreEnd
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve a member of the $_SESSION
|
* Retrieve a member of the $_SESSION
|
||||||
*
|
*
|
||||||
|
@ -36,12 +36,17 @@ class Profiler
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Refuse cloning
|
* Refuse cloning
|
||||||
|
* @codeCoverageIgnoreStart
|
||||||
*/
|
*/
|
||||||
private function __clone()
|
private function __clone()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnoreStart
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
* @return Profiler
|
* @return Profiler
|
||||||
*/
|
*/
|
||||||
static public function getInstance()
|
static public function getInstance()
|
||||||
|
Reference in New Issue
Block a user