From 89d4b58073160c57e339188e8479adea98bdc834 Mon Sep 17 00:00:00 2001 From: Rachman Chavik Date: Tue, 14 Feb 2012 23:26:55 +0700 Subject: [PATCH] fix indentation and add __construct() docblocks --- lib/Cake/View/Helper/NumberHelper.php | 25 +++++++++++++++---------- lib/Cake/View/Helper/TextHelper.php | 11 ++++++++--- lib/Cake/View/Helper/TimeHelper.php | 11 ++++++++--- 3 files changed, 31 insertions(+), 16 deletions(-) diff --git a/lib/Cake/View/Helper/NumberHelper.php b/lib/Cake/View/Helper/NumberHelper.php index 8b59a41d9..fe95658a7 100644 --- a/lib/Cake/View/Helper/NumberHelper.php +++ b/lib/Cake/View/Helper/NumberHelper.php @@ -33,15 +33,20 @@ App::uses('AppHelper', 'View/Helper'); */ class NumberHelper extends AppHelper { - /** CakeNumber instance - */ +/** CakeNumber instance + */ protected $_engine = null; - /* Default Constructor - * - * @param View $View The View this helper is being attached to. - * @param array $settings Configuration settings for the helper - */ +/* Default Constructor + * + * ### Settings: + * + * - `engine` Class name to use to replace CakeNumber functionality + * The class needs to be placed in the `Utility` directory. + * + * @param View $View The View this helper is being attached to. + * @param array $settings Configuration settings for the helper + */ function __construct(View $View, $settings = array()) { $settings = Set::merge(array('engine' => 'CakeNumber'), $settings); parent::__construct($View, $settings); @@ -54,9 +59,9 @@ class NumberHelper extends AppHelper { } } - /** - * Call methods from CakeNumber utility class - */ +/** + * Call methods from CakeNumber utility class + */ public function __call($method, $params) { return call_user_func_array(array($this->_engine, $method), $params); } diff --git a/lib/Cake/View/Helper/TextHelper.php b/lib/Cake/View/Helper/TextHelper.php index 28c6291a6..b28bd69fc 100644 --- a/lib/Cake/View/Helper/TextHelper.php +++ b/lib/Cake/View/Helper/TextHelper.php @@ -56,6 +56,11 @@ class TextHelper extends AppHelper { /** * Constructor * + * ### Settings: + * + * - `engine` Class name to use to replace String functionality. + * The class needs to be placed in the `Utility` directory. + * * @param View $View the view object the helper is attached to. * @param array $settings Settings array Settings array */ @@ -71,9 +76,9 @@ class TextHelper extends AppHelper { } } - /** - * Call methods from String utility class - */ +/** + * Call methods from String utility class + */ public function __call($method, $params) { return call_user_func_array(array($this->_engine, $method), $params); } diff --git a/lib/Cake/View/Helper/TimeHelper.php b/lib/Cake/View/Helper/TimeHelper.php index cd03c92ed..3b4a295f8 100644 --- a/lib/Cake/View/Helper/TimeHelper.php +++ b/lib/Cake/View/Helper/TimeHelper.php @@ -40,6 +40,11 @@ class TimeHelper extends AppHelper { /** * Constructor * + * ### Settings: + * + * - `engine` Class name to use to replace CakeTime functionality + * The class needs to be placed in the `Utility` directory. + * * @param View $View the view object the helper is attached to. * @param array $settings Settings array Settings array */ @@ -107,9 +112,9 @@ class TimeHelper extends AppHelper { return null; } - /** - * Call methods from CakeTime utility class - */ +/** + * Call methods from CakeTime utility class + */ public function __call($method, $params) { return call_user_func_array(array($this->_engine, $method), $params); }