From 766cce1fbc19a74ce7841bad448e861b8c5c6809 Mon Sep 17 00:00:00 2001 From: Anton Terekhov Date: Wed, 21 Nov 2012 21:02:13 +0400 Subject: [PATCH] @codeCoverageIgnoreStart for private __clone() --- Registry.php | 14 ++++++++++++-- app/CliController.php | 5 +++++ app/FrontController.php | 8 +++++++- session/Session.php | 14 ++++++++++++-- util/profiler/Profiler.php | 5 +++++ 5 files changed, 41 insertions(+), 5 deletions(-) diff --git a/Registry.php b/Registry.php index 69727c3..89fee9f 100644 --- a/Registry.php +++ b/Registry.php @@ -32,8 +32,18 @@ class Registry extends ArrayObject { parent::__construct($array, $flags); } - - private function __clone(){} + + /** + * Refuse clone + * @codeCoverageIgnoreStart + */ + private function __clone() + { + } + + /** + * @codeCoverageIgnoreStart + */ /** * Retrieves the default registry instance. diff --git a/app/CliController.php b/app/CliController.php index 768a69e..33bd2ce 100644 --- a/app/CliController.php +++ b/app/CliController.php @@ -29,12 +29,17 @@ class CliController /** * Refuse cloning + * @codeCoverageIgnoreStart */ private function __clone() { } /** + * @codeCoverageIgnoreEnd + */ + + /** * @static * @return CliController */ diff --git a/app/FrontController.php b/app/FrontController.php index 43bbec9..2fe5889 100644 --- a/app/FrontController.php +++ b/app/FrontController.php @@ -35,12 +35,17 @@ class FrontController /** * Refuse cloning + * @codeCoverageIgnoreStart */ private function __clone() { } /** + * @codeCoverageIgnoreEnd + */ + + /** * @return FrontController */ static public function getInstance() @@ -128,7 +133,8 @@ class FrontController } } return $html; - } catch (Exception $e) { + } + catch (Exception $e) { if (Config::get('DEBUG')) { if (!headers_sent()) { if ($e instanceof ErrorHTTPException) { diff --git a/session/Session.php b/session/Session.php index 9af7724..20e286c 100644 --- a/session/Session.php +++ b/session/Session.php @@ -21,14 +21,24 @@ class Session /** * Avoid new + * @codeCoverageIgnoreStart */ private function __construct(){} - + + /** + * @codeCoverageIgnoreEnd + */ + /** * Avoid cloning + * @codeCoverageIgnoreStart */ private function __clone(){} - + + /** + * @codeCoverageIgnoreEnd + */ + /** * Retrieve a member of the $_SESSION * diff --git a/util/profiler/Profiler.php b/util/profiler/Profiler.php index e72fb8a..8f062fa 100644 --- a/util/profiler/Profiler.php +++ b/util/profiler/Profiler.php @@ -36,12 +36,17 @@ class Profiler /** * Refuse cloning + * @codeCoverageIgnoreStart */ private function __clone() { } /** + * @codeCoverageIgnoreStart + */ + + /** * @return Profiler */ static public function getInstance()