fixing some commits i accidently overwrote.
This commit is contained in:
parent
994949c6ce
commit
a675b05237
|
@ -53,8 +53,8 @@ public static function load($class)
|
||||||
protected static function find($class)
|
protected static function find($class)
|
||||||
{
|
{
|
||||||
// After PHP namespaces were introduced, most libaries ditched underscores for
|
// After PHP namespaces were introduced, most libaries ditched underscores for
|
||||||
// for namespaces to indicate the class directory hierarchy. We will check for
|
// namespaces to indicate the class directory hierarchy. We will check for the
|
||||||
// the presence of namespace slashes to determine the directory separator.
|
// presence of namespace slashes to determine the directory separator.
|
||||||
$separator = (strpos($class, '\\') !== false) ? '\\' : '_';
|
$separator = (strpos($class, '\\') !== false) ? '\\' : '_';
|
||||||
|
|
||||||
$library = substr($class, 0, strpos($class, $separator));
|
$library = substr($class, 0, strpos($class, $separator));
|
||||||
|
|
|
@ -394,7 +394,7 @@ protected function validate_unique($attribute, $value, $parameters)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate than an attribute is a valid e-mail address.
|
* Validate that an attribute is a valid e-mail address.
|
||||||
*
|
*
|
||||||
* @param string $attribute
|
* @param string $attribute
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
|
@ -406,7 +406,7 @@ protected function validate_email($attribute, $value)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate than an attribute is a valid URL.
|
* Validate that an attribute is a valid URL.
|
||||||
*
|
*
|
||||||
* @param string $attribute
|
* @param string $attribute
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
|
@ -444,7 +444,7 @@ protected function validate_image($attribute, $value)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate than an attribute contains only alphabetic characters.
|
* Validate that an attribute contains only alphabetic characters.
|
||||||
*
|
*
|
||||||
* @param string $attribute
|
* @param string $attribute
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
|
@ -456,7 +456,7 @@ protected function validate_alpha($attribute, $value)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate than an attribute contains only alpha-numeric characters.
|
* Validate that an attribute contains only alpha-numeric characters.
|
||||||
*
|
*
|
||||||
* @param string $attribute
|
* @param string $attribute
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
|
@ -468,7 +468,7 @@ protected function validate_alpha_num($attribute, $value)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate than an attribute contains only alpha-numeric characters, dashes, and underscores.
|
* Validate that an attribute contains only alpha-numeric characters, dashes, and underscores.
|
||||||
*
|
*
|
||||||
* @param string $attribute
|
* @param string $attribute
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
|
|
Loading…
Reference in New Issue