Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating file headers and removing @static.

  • Loading branch information...
commit 5f6015c3c488072d77aa5f49b7a74afe02f4a077 1 parent 4ec75c6
@markstory markstory authored
View
13 cake/libs/view/helpers/number.php
@@ -1,6 +1,4 @@
<?php
-/* SVN FILE: $Id$ */
-
/**
* Number Helper.
*
@@ -9,20 +7,17 @@
* PHP versions 4 and 5
*
* CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
- * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
+ * Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
- * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
+ * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
* @package cake
* @subpackage cake.cake.libs.view.helpers
* @since CakePHP(tm) v 0.10.0.1076
- * @version $Revision$
- * @modifiedby $LastChangedBy$
- * @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
@@ -42,7 +37,6 @@ class NumberHelper extends AppHelper {
* @param float $number A floating point number.
* @param integer $precision The precision of the returned number.
* @return float Enter description here...
- * @static
*/
function precision($number, $precision = 3) {
return sprintf("%01.{$precision}f", $number);
@@ -53,7 +47,6 @@ function precision($number, $precision = 3) {
*
* @param integer $length Size in bytes
* @return string Human readable size
- * @static
*/
function toReadableSize($size) {
switch (true) {
@@ -76,7 +69,6 @@ function toReadableSize($size) {
* @param float $number A floating point number
* @param integer $precision The precision of the returned number
* @return string Percentage string
- * @static
*/
function toPercentage($number, $precision = 2) {
return $this->precision($number, $precision) . '%';
@@ -89,7 +81,6 @@ function toPercentage($number, $precision = 2) {
* @param integer $options if int then places, if string then before, if (,.-) then use it
* or array with places and before keys
* @return string formatted number
- * @static
*/
function format($number, $options = false) {
$places = 0;
View
13 cake/tests/cases/libs/view/helpers/number.test.php
@@ -1,6 +1,4 @@
<?php
-/* SVN FILE: $Id$ */
-
/**
* NumberHelperTest file
*
@@ -9,20 +7,17 @@
* PHP versions 4 and 5
*
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
- * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
+ * Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
*
* Licensed under The Open Group Test Suite License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
- * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
+ * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
* @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
* @package cake
* @subpackage cake.tests.cases.libs.view.helpers
* @since CakePHP(tm) v 1.2.0.4206
- * @version $Revision$
- * @modifiedby $LastChangedBy$
- * @lastmodified $Date$
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
*/
App::import('Helper', 'Number');
@@ -49,7 +44,7 @@ class NumberHelperTest extends CakeTestCase {
* @access public
* @return void
*/
- function setUp() {
+ function startTest() {
$this->Number =& new NumberHelper();
}
@@ -59,7 +54,7 @@ function setUp() {
* @access public
* @return void
*/
- function tearDown() {
+ function endTest() {
unset($this->Number);
}
Please sign in to comment.
Something went wrong with that request. Please try again.