Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/4352' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Apr 29, 2013
193 parents 2007ccb + dc26d92 + c9c40bb + 5f29760 + 714d1a8 + 84b0297 + cbc5f03 + 76361f8 + e7209df + 87630e0 + df43daf + f7d6cbb + 7e2b798 + 3ed1ead + 87505b6 + c229265 + eb61c8f + efcb00e + 0a0842f + b6d0c88 + 7edee62 + 60ea64c + a08bcca + b40ec3e + 63172ed + 448f428 + 92a516a + 5ecbc99 + a2df21b + 4de87f2 + 7c259ec + a22bdcb + 084ad9f + 9414e5a + 489be93 + cb39e7e + 54a28dc + c9c769e + dda791d + 70d382a + 8bbad0e + 9321185 + 7ab35a6 + b93694e + 3ea7087 + 0fe3d3a + bd5e189 + d1cba17 + 8d75392 + 3fb5b55 + 6cb0ccb + 30aa565 + 8409977 + 8074ba0 + 8f92486 + 94860d1 + 05d33c4 + 425826b + f0e91f0 + e31468f + 7d2af87 + 2e4dc80 + 19d128f + 1b9e4b2 + 1c46483 + fdda3f2 + 595fcd1 + 213395c + 8e514a8 + 2f30186 + bb4ed65 + 132d5b6 + 030ff33 + f2f20f3 + a50e133 + 4c554ee + dbfb1b8 + ccab83f + 00b350f + 78945d0 + f0e5f4b + ceb7d8c + 9e124d1 + 3de5912 + b6a974a + 10a6438 + cb6c1e7 + 18afd6c + 3baf1bd + c800904 + f52dcb8 + 126ccb2 + e7d6206 + e2d24ab + ec1abfc + 290ea90 + 9f4ca1b + edaa760 + c4c0c95 + d21f055 + 5b18029 + e6b97af + 010fb36 + 64c7b8d + 636523e + 4cc2cd6 + e34098a + 16367cd + 943c77f + 8226e5b + 0b47726 + 3cd8a03 + cc4782c + 9c653a6 + 656dbe5 + 9bce1ba + 7dc18ca + 861130d + 2d2ffbd + 4f413a5 + 2e1067a + 1d082e4 + e8aeb79 + b562091 + ff2fdc3 + 4aa72c0 + 1bb67ac + cd015c8 + 5e89910 + 0c21258 + dd54faf + 57f9063 + b88ce2e + af68643 + 06cd3b4 + 2c71b71 + ee02c35 + 9456314 + 5a77a7b + e98a077 + 738f2e6 + cb1e63c + 736df07 + d0a0154 + 990523c + 78687de + a5b6e79 + 6e9dfe9 + e201a1c + d9b45ef + 76222ad + 16d67da + 1ab2258 + b81d711 + ed2e9bc + 61efe82 + f353ea5 + 1f02519 + 58c1fe8 + ed502d9 + 2defba6 + 4885013 + 06a8384 + 17d9eed + 3b21b5d + c62101c + 909ef34 + 13d376a + 8a75367 + 98a3cf5 + 270f2c4 + 3038cfa + 1112202 + c8fb359 + 8d37cd0 + 4d868a7 + 555cb91 + 7ac5858 + 8103f1f + 9fe9c96 + a3ecac6 + 10e77c1 + e0d3e13 + 19ad608 + e0d665c + 1a5b402 + 56ae12a + 9073fc1 + 2d5b32f + a8e6198 + 83e8f34 + 8248c0b + 166fa4c commit cd7f1f4
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/ArrayUtils.php
Expand Up @@ -93,11 +93,11 @@ public static function hasNumericKeys($value, $allowEmpty = false)
*
* For example:
* <code>
* $list = array( 'a','b','c','d' );
* $list = array('a', 'b', 'c', 'd');
* $list = array(
* 0 => 'foo',
* 1 => 'bar',
* 2 => array( 'foo' => 'baz' ),
* 2 => array('foo' => 'baz'),
* );
* </code>
*
Expand Down
2 changes: 1 addition & 1 deletion src/ErrorHandler.php
Expand Up @@ -109,7 +109,7 @@ public static function clean()
*/
public static function addError($errno, $errstr = '', $errfile = '', $errline = 0)
{
$stack = & static::$stack[ count(static::$stack) - 1 ];
$stack = & static::$stack[count(static::$stack) - 1];
$stack = new ErrorException($errstr, 0, $errno, $errfile, $errline, $stack);
}
}
12 changes: 6 additions & 6 deletions src/Glob.php
Expand Up @@ -31,7 +31,7 @@ abstract class Glob
*
* @see http://docs.php.net/glob
* @param string $pattern
* @param integer $flags
* @param int $flags
* @param bool $forceFallback
* @return array|false
*/
Expand All @@ -48,7 +48,7 @@ public static function glob($pattern, $flags, $forceFallback = false)
* Use the glob function provided by the system.
*
* @param string $pattern
* @param integer $flags
* @param int $flags
* @return array|false
*/
protected static function systemGlob($pattern, $flags)
Expand Down Expand Up @@ -82,7 +82,7 @@ protected static function systemGlob($pattern, $flags)
* Expand braces manually, then use the system glob.
*
* @param string $pattern
* @param integer $flags
* @param int $flags
* @return array|false
*/
protected static function fallbackGlob($pattern, $flags)
Expand Down Expand Up @@ -162,9 +162,9 @@ protected static function fallbackGlob($pattern, $flags)
* Find the end of the sub-pattern in a brace expression.
*
* @param string $pattern
* @param integer $begin
* @param integer $flags
* @return integer|null
* @param int $begin
* @param int $flags
* @return int|null
*/
protected static function nextBraceSub($pattern, $begin, $flags)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Hydrator/ClassMethods.php
Expand Up @@ -136,7 +136,7 @@ public function extract($object)
$attribute = $method;
if (preg_match('/^get/', $method)) {
$attribute = substr($method, 3);
if(!property_exists($object, $attribute)) {
if (!property_exists($object, $attribute)) {
$attribute = lcfirst($attribute);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Hydrator/Filter/FilterComposite.php
Expand Up @@ -96,7 +96,7 @@ function($value, $key) {
*/
public function addFilter($name, $filter, $condition = self::CONDITION_OR)
{
if ( !is_callable($filter) && !($filter instanceof FilterInterface) ) {
if (!is_callable($filter) && !($filter instanceof FilterInterface)) {
throw new InvalidArgumentException(
'The value of ' . $name . ' should be either a callable or ' .
'an instance of Zend\Stdlib\Hydrator\Filter\FilterInterface'
Expand Down Expand Up @@ -166,13 +166,13 @@ public function filter($property)
// Check if 1 from the or filters return true
foreach ($this->orFilter as $filter) {
if (is_callable($filter)) {
if ( $filter($property) === true) {
if ($filter($property) === true) {
$returnValue = true;
break;
}
continue;
} else {
if ( $filter->filter($property) === true) {
if ($filter->filter($property) === true) {
$returnValue = true;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Hydrator/Filter/NumberOfParameterFilter.php
Expand Up @@ -39,7 +39,7 @@ public function filter($property)
{
try {
$reflectionMethod = new ReflectionMethod($property);
} catch( ReflectionException $exception) {
} catch (ReflectionException $exception) {
throw new InvalidArgumentException(
"Method $property doesn't exist"
);
Expand Down
6 changes: 3 additions & 3 deletions src/StringWrapper/AbstractStringWrapper.php
Expand Up @@ -140,7 +140,7 @@ public function convert($str, $reverse = false)
* Wraps a string to a given number of characters
*
* @param string $string
* @param integer $width
* @param int $width
* @param string $break
* @param bool $cut
* @return string|false
Expand Down Expand Up @@ -221,9 +221,9 @@ public function wordWrap($string, $width = 75, $break = "\n", $cut = false)
* Pad a string to a certain length with another string
*
* @param string $input
* @param integer $padLength
* @param int $padLength
* @param string $padString
* @param integer $padType
* @param int $padType
* @return string
*/
public function strPad($input, $padLength, $padString = ' ', $padType = STR_PAD_RIGHT)
Expand Down
6 changes: 3 additions & 3 deletions src/StringWrapper/StringWrapperInterface.php
Expand Up @@ -91,7 +91,7 @@ public function convert($str, $reverse = false);
* Wraps a string to a given number of characters
*
* @param string $str
* @param integer $width
* @param int $width
* @param string $break
* @param bool $cut
* @return string
Expand All @@ -102,9 +102,9 @@ public function wordWrap($str, $width = 75, $break = "\n", $cut = false);
* Pad a string to a certain length with another string
*
* @param string $input
* @param integer $padLength
* @param int $padLength
* @param string $padString
* @param integer $padType
* @param int $padType
* @return string
*/
public function strPad($input, $padLength, $padString = ' ', $padType = STR_PAD_RIGHT);
Expand Down

0 comments on commit cd7f1f4

Please sign in to comment.