Skip to content
Permalink
Browse files

Fixing more @link annotations

  • Loading branch information...
lorenzo committed Oct 15, 2011
1 parent f9f0eed commit f23d62d411aab1f19832dfb5e62ef10944b7e925
Showing with 16 additions and 16 deletions.
  1. +6 −6 lib/Cake/Utility/Debugger.php
  2. +10 −10 lib/Cake/Utility/Inflector.php
@@ -32,7 +32,7 @@
* Debugger overrides PHP's default error handling to provide stack traces and enhanced logging
*
* @package Cake.Utility
* @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
* @link http://book.cakephp.org/2.0/en/development/debugging.html#debugger-class
*/
class Debugger {
@@ -175,7 +175,7 @@ public static function &getInstance($class = null) {
* @param mixed $var the variable to dump
* @return void
* @see Debugger::exportVar()
* @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
* @link http://book.cakephp.org/2.0/en/development/debugging.html#Debugger::dump
*/
public static function dump($var) {
pr(self::exportVar($var));
@@ -188,7 +188,7 @@ public static function dump($var) {
* @param mixed $var Variable or content to log
* @param integer $level type of log to use. Defaults to LOG_DEBUG
* @return void
* @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
* @link http://book.cakephp.org/2.0/en/development/debugging.html#Debugger::log
*/
public static function log($var, $level = LOG_DEBUG) {
$source = self::trace(array('start' => 1)) . "\n";
@@ -275,7 +275,7 @@ public static function showError($code, $description, $file = null, $line = null
*
* @param array $options Format for outputting stack trace
* @return mixed Formatted stack trace
* @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
* @link http://book.cakephp.org/2.0/en/development/debugging.html#Debugger::trace
*/
public static function trace($options = array()) {
$_this = Debugger::getInstance();
@@ -390,7 +390,7 @@ public static function trimPath($path) {
* @param integer $context Number of lines of context to extract above and below $line
* @return array Set of lines highlighted
* @see http://php.net/highlight_string
* @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
* @link http://book.cakephp.org/2.0/en/development/debugging.html#Debugger::excerpt
*/
public static function excerpt($file, $line, $context = 2) {
$lines = array();
@@ -436,7 +436,7 @@ public static function excerpt($file, $line, $context = 2) {
* @param string $var Variable to convert
* @param integer $recursion
* @return string Variable as a formatted string
* @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
* @link http://book.cakephp.org/2.0/en/development/debugging.html#Debugger::exportVar
*/
public static function exportVar($var, $recursion = 0) {
switch (strtolower(gettype($var))) {
@@ -26,7 +26,7 @@
* Used by Cake's naming conventions throughout the framework.
*
* @package Cake.Utility
* @link http://book.cakephp.org/view/1478/Inflector
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html
*/
class Inflector {
@@ -346,7 +346,7 @@ public static function rules($type, $rules, $reset = false) {
*
* @param string $word Word in singular
* @return string Word in plural
* @link http://book.cakephp.org/view/1479/Class-methods
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::pluralize
*/
public static function pluralize($word) {
@@ -390,7 +390,7 @@ public static function pluralize($word) {
*
* @param string $word Word in plural
* @return string Word in singular
* @link http://book.cakephp.org/view/1479/Class-methods
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::singularize
*/
public static function singularize($word) {
@@ -442,7 +442,7 @@ public static function singularize($word) {
*
* @param string $lowerCaseAndUnderscoredWord Word to camelize
* @return string Camelized word. LikeThis.
* @link http://book.cakephp.org/view/1479/Class-methods
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::camelize
*/
public static function camelize($lowerCaseAndUnderscoredWord) {
if (!($result = self::_cache(__FUNCTION__, $lowerCaseAndUnderscoredWord))) {
@@ -457,7 +457,7 @@ public static function camelize($lowerCaseAndUnderscoredWord) {
*
* @param string $camelCasedWord Camel-cased word to be "underscorized"
* @return string Underscore-syntaxed version of the $camelCasedWord
* @link http://book.cakephp.org/view/1479/Class-methods
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::underscore
*/
public static function underscore($camelCasedWord) {
if (!($result = self::_cache(__FUNCTION__, $camelCasedWord))) {
@@ -473,7 +473,7 @@ public static function underscore($camelCasedWord) {
*
* @param string $lowerCaseAndUnderscoredWord String to be made more readable
* @return string Human-readable string
* @link http://book.cakephp.org/view/1479/Class-methods
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::humanize
*/
public static function humanize($lowerCaseAndUnderscoredWord) {
if (!($result = self::_cache(__FUNCTION__, $lowerCaseAndUnderscoredWord))) {
@@ -488,7 +488,7 @@ public static function humanize($lowerCaseAndUnderscoredWord) {
*
* @param string $className Name of class to get database table name for
* @return string Name of the database table for given class
* @link http://book.cakephp.org/view/1479/Class-methods
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::tableize
*/
public static function tableize($className) {
if (!($result = self::_cache(__FUNCTION__, $className))) {
@@ -503,7 +503,7 @@ public static function tableize($className) {
*
* @param string $tableName Name of database table to get class name for
* @return string Class name
* @link http://book.cakephp.org/view/1479/Class-methods
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::classify
*/
public static function classify($tableName) {
if (!($result = self::_cache(__FUNCTION__, $tableName))) {
@@ -518,7 +518,7 @@ public static function classify($tableName) {
*
* @param string $string
* @return string in variable form
* @link http://book.cakephp.org/view/1479/Class-methods
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::variable
*/
public static function variable($string) {
if (!($result = self::_cache(__FUNCTION__, $string))) {
@@ -537,7 +537,7 @@ public static function variable($string) {
* @param string $string the string you want to slug
* @param string $replacement will replace keys in map
* @return string
* @link http://book.cakephp.org/view/1479/Class-methods
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::slug
*/
public static function slug($string, $replacement = '_') {
$quotedReplacement = preg_quote($replacement, '/');

0 comments on commit f23d62d

Please sign in to comment.
You can’t perform that action at this time.