Browse Source

cs via auto-fixer

euromark 12 years ago
parent
commit
a9e731868a

+ 16 - 16
Lib/CurrencyLib.php

@@ -38,15 +38,15 @@ class CurrencyLib {
 	public $cacheTime = DAY;
 	public $cacheTime = DAY;
 
 
 	/**
 	/**
-	* Converts the $amount from $fromCurrency to $toCurrency, formatted to
-	* $decimals decimal places.
-	*
-	* @return float [Converted Currency Amount] or boolean FALSE on failure
-	* @param $amount float
-	* @param $fromCurrency string
-	* @param $toCurrency string
-	* @param $decimals integer[optional]default=2
-	*/
+	 * Converts the $amount from $fromCurrency to $toCurrency, formatted to
+	 * $decimals decimal places.
+	 *
+	 * @return float [Converted Currency Amount] or boolean FALSE on failure
+	 * @param $amount float
+	 * @param $fromCurrency string
+	 * @param $toCurrency string
+	 * @param $decimals integer[optional]default=2
+	 */
 	public function convert($amount, $fromCurrency, $toCurrency, $decimals = 2) {
 	public function convert($amount, $fromCurrency, $toCurrency, $decimals = 2) {
 		//Get the rate table
 		//Get the rate table
 		$rates = $this->_retrieveCurrencies();
 		$rates = $this->_retrieveCurrencies();
@@ -59,13 +59,13 @@ class CurrencyLib {
 	}
 	}
 
 
 	/**
 	/**
-	* Returns an array of rates in comparison the the $base currency given to $decimals
-	* number of decimal places.
-	*
-	* @param $base string[optional]default='EUR'
-	* @param $decimals integer[optional]default=2
-	* @return array table or boolean FALSE on failure
-	*/
+	 * Returns an array of rates in comparison the the $base currency given to $decimals
+	 * number of decimal places.
+	 *
+	 * @param $base string[optional]default='EUR'
+	 * @param $decimals integer[optional]default=2
+	 * @return array table or boolean FALSE on failure
+	 */
 	public function table($base = 'EUR', $decimals = 2) {
 	public function table($base = 'EUR', $decimals = 2) {
 		//Create array to holds rates
 		//Create array to holds rates
 		$rateTable = array();
 		$rateTable = array();

+ 11 - 11
Lib/DiffLib.php

@@ -172,12 +172,12 @@ class DiffLib {
 	}
 	}
 
 
 	/**
 	/**
-	* Parses a unified diff output
-	* @param array $text an entire section of a unified diff (between @@ lines)
-	* @param char $_check a '+' or '-' denoting whether we're looking for lines
-	* added or removed
-	* @return
-	*/
+	 * Parses a unified diff output
+	 * @param array $text an entire section of a unified diff (between @@ lines)
+	 * @param char $_check a '+' or '-' denoting whether we're looking for lines
+	 * added or removed
+	 * @return
+	 */
 	public function parseDiff($text, $_check) {
 	public function parseDiff($text, $_check) {
 		$start = 0; // Start of the diff
 		$start = 0; // Start of the diff
 		$length = 0; // number of lines to recurse
 		$length = 0; // number of lines to recurse
@@ -247,11 +247,11 @@ class DiffLib {
 	}
 	}
 
 
 	/**
 	/**
-	* Appends or Replaces text
-	* @param array &$text Array of Line objects
-	* @param array $change Array of Change objects
-	* @param integer &$offset how many lines to skip due to previous additions
-	*/
+	 * Appends or Replaces text
+	 * @param array &$text Array of Line objects
+	 * @param array $change Array of Change objects
+	 * @param integer &$offset how many lines to skip due to previous additions
+	 */
 	public function applyChange(&$text, $change, &$offset = 0) {
 	public function applyChange(&$text, $change, &$offset = 0) {
 		$index = 0;
 		$index = 0;
 
 

+ 10 - 10
Lib/MimeLib.php

@@ -757,11 +757,11 @@ class MimeLib extends CakeResponse {
 	}
 	}
 
 
 	/**
 	/**
-	* Retrieve the corresponding MIME type, if one exists
-	*
-	* @param String $file File Name (relative location such as "image_test.jpg" or full "http://site.com/path/to/image_test.jpg")
-	* @return String MIMEType - The type of the file passed in the argument
-	*/
+	 * Retrieve the corresponding MIME type, if one exists
+	 *
+	 * @param String $file File Name (relative location such as "image_test.jpg" or full "http://site.com/path/to/image_test.jpg")
+	 * @return String MIMEType - The type of the file passed in the argument
+	 */
 	public function extractMimeType($file = null) {
 	public function extractMimeType($file = null) {
 		if (!is_file($file)) {
 		if (!is_file($file)) {
 			return false;
 			return false;
@@ -812,11 +812,11 @@ class MimeLib extends CakeResponse {
 	}
 	}
 
 
 	/**
 	/**
-	* Gets the file extention from a string
-	*
-	* @param String $file The full file name
-	* @return String ext The file extension
-	*/
+	 * Gets the file extention from a string
+	 *
+	 * @param String $file The full file name
+	 * @return String ext The file extension
+	 */
 	protected function _getExtension($file = null) {
 	protected function _getExtension($file = null) {
 		if ($file !== null) {
 		if ($file !== null) {
 			$pieces = explode('.', $file);
 			$pieces = explode('.', $file);

+ 9 - 9
Lib/UserAgentLib.php

@@ -63,11 +63,11 @@ class UserAgentLib extends CakeRequest {
 	}
 	}
 
 
 	/**
 	/**
-	* checks bot against list
-	* @param string $userAgent
-	* @return string
-	* //TODO use browscap here too if necessary
-	*/
+	 * checks bot against list
+	 * @param string $userAgent
+	 * @return string
+	 * //TODO use browscap here too if necessary
+	 */
 	public function getAgent($agent) {
 	public function getAgent($agent) {
 		if (empty($agent)) {
 		if (empty($agent)) {
 			 return '';
 			 return '';
@@ -81,10 +81,10 @@ class UserAgentLib extends CakeRequest {
 	}
 	}
 
 
 	/**
 	/**
-	* checks user against known platforms
-	* @param string $userAgent
-	* @return string
-	*/
+	 * checks user against known platforms
+	 * @param string $userAgent
+	 * @return string
+	 */
 	public function getPlatform($agent) {
 	public function getPlatform($agent) {
 		if (strpos($agent, "Win95") || strpos($agent, "Windows 95")) {
 		if (strpos($agent, "Win95") || strpos($agent, "Windows 95")) {
 			return "Windows 95";
 			return "Windows 95";

+ 1 - 1
Lib/Utility/ChmodLib.php

@@ -17,7 +17,7 @@ class ChmodLib {
 
 
 /*** calc octal ***/
 /*** calc octal ***/
 
 
-		/**
+	/**
 	 * From Octal 0xxx back to STRING with leading zero added on leading zero = true
 	 * From Octal 0xxx back to STRING with leading zero added on leading zero = true
 	 * e.g. 0777 => 0777, '755' => 0755
 	 * e.g. 0777 => 0777, '755' => 0755
 	 *
 	 *

+ 5 - 5
Lib/ZipLib.php

@@ -77,11 +77,11 @@ class ZipLib {
 	}
 	}
 
 
 	/**
 	/**
-	* Open a file.
-	*
-	* @params string, boolean
-	*	@return boolean Success
-	*/
+	 * Open a file.
+	 *
+	 * @params string, boolean
+	 *	@return boolean Success
+	 */
 	public function open($path = null, $create = false) {
 	public function open($path = null, $create = false) {
 		$this->filename = basename($path);
 		$this->filename = basename($path);
 
 

+ 3 - 3
Model/Behavior/DecimalInputBehavior.php

@@ -57,9 +57,9 @@ class DecimalInputBehavior extends ModelBehavior {
 	public $delimiterFromFormat = array();
 	public $delimiterFromFormat = array();
 
 
 	/**
 	/**
-	* adjust configs like: $Model->Behaviors-attach('Tools.DecimalInput', array('fields'=>array('xyz')))
-	* leave fields empty to auto-detect all float inputs
-	*/
+	 * adjust configs like: $Model->Behaviors-attach('Tools.DecimalInput', array('fields'=>array('xyz')))
+	 * leave fields empty to auto-detect all float inputs
+	 */
 	public function setup(Model $Model, $config = array()) {
 	public function setup(Model $Model, $config = array()) {
 		$this->config[$Model->alias] = $this->_defaults;
 		$this->config[$Model->alias] = $this->_defaults;
 
 

+ 3 - 3
Model/Behavior/NumberFormatBehavior.php

@@ -57,9 +57,9 @@ class NumberFormatBehavior extends ModelBehavior {
 	public $delimiterFromFormat = array();
 	public $delimiterFromFormat = array();
 
 
 	/**
 	/**
-	* adjust configs like: $Model->Behaviors-attach('Tools.NumberFormat', array('fields'=>array('xyz')))
-	* leave fields empty to auto-detect all float inputs
-	*/
+	 * adjust configs like: $Model->Behaviors-attach('Tools.NumberFormat', array('fields'=>array('xyz')))
+	 * leave fields empty to auto-detect all float inputs
+	 */
 	public function setup(Model $Model, $config = array()) {
 	public function setup(Model $Model, $config = array()) {
 		$this->settings[$Model->alias] = $this->_defaults;
 		$this->settings[$Model->alias] = $this->_defaults;
 
 

+ 1 - 1
Model/Behavior/WhoDidItBehavior.php

@@ -9,7 +9,7 @@
  * @version 1.3
  * @version 1.3
  * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  * @link https://github.com/dereuromark/tools
  * @link https://github.com/dereuromark/tools
- **/
+ */
 
 
 App::uses('CakeSession', 'Model/Datasource');
 App::uses('CakeSession', 'Model/Datasource');
 App::uses('ModelBehavior', 'Model');
 App::uses('ModelBehavior', 'Model');