Skip to content
Browse files

Global namespace not needed for constants

  • Loading branch information...
1 parent 5ef114b commit adb68275584e4e4c8c43d7149892eb4b09bbdc35 @marc-mabe committed Jan 6, 2013
View
2 library/Zend/ProgressBar/Adapter/Console.php
@@ -443,7 +443,7 @@ public function notify($current, $max, $percent, $timeTaken, $timeRemaining, $te
substr($text, 0, $this->textWidth),
$this->textWidth,
' ',
- \STR_PAD_RIGHT
+ STR_PAD_RIGHT
);
break;
}
View
6 library/Zend/Stdlib/StringWrapper/AbstractStringWrapper.php
@@ -232,7 +232,7 @@ public function wordWrap($string, $width = 75, $break = "\n", $cut = false)
* @param integer $padType
* @return string
*/
- public function strPad($input, $padLength, $padString = ' ', $padType = \STR_PAD_RIGHT)
+ public function strPad($input, $padLength, $padString = ' ', $padType = STR_PAD_RIGHT)
{
if (StringUtils::isSingleByteEncoding($this->getEncoding())) {
return str_pad($input, $padLength, $padString, $padType);
@@ -250,7 +250,7 @@ public function strPad($input, $padLength, $padString = ' ', $padType = \STR_PAD
$repeatCount = floor($lengthOfPadding / $padStringLength);
- if ($padType === \STR_PAD_BOTH) {
+ if ($padType === STR_PAD_BOTH) {
$lastStringLeft = '';
$lastStringRight = '';
$repeatCountLeft = $repeatCountRight = ($repeatCount - $repeatCount % 2) / 2;
@@ -269,7 +269,7 @@ public function strPad($input, $padLength, $padString = ' ', $padType = \STR_PAD
$lastString = $this->substr($padString, 0, $lengthOfPadding % $padStringLength);
- if ($padType === \STR_PAD_LEFT) {
+ if ($padType === STR_PAD_LEFT) {
return str_repeat($padString, $repeatCount) . $lastString . $input;
}
View
2 library/Zend/Stdlib/StringWrapper/StringWrapperInterface.php
@@ -115,5 +115,5 @@ public function wordWrap($str, $width = 75, $break = "\n", $cut = false);
* @param integer $padType
* @return string
*/
- public function strPad($input, $padLength, $padString = ' ', $padType = \STR_PAD_RIGHT);
+ public function strPad($input, $padLength, $padString = ' ', $padType = STR_PAD_RIGHT);
}
View
2 library/Zend/Text/MultiByte.php
@@ -57,7 +57,7 @@ public static function wordWrap($string, $width = 75, $break = "\n", $cut = fals
* @return string
* @deprecated Please use Zend\Stdlib\StringUtils instead
*/
- public static function strPad($input, $padLength, $padString = ' ', $padType = \STR_PAD_RIGHT, $charset = 'utf-8')
+ public static function strPad($input, $padLength, $padString = ' ', $padType = STR_PAD_RIGHT, $charset = 'utf-8')
{
trigger_error(sprintf(
"This method is deprecated, please use '%s' instead",

0 comments on commit adb6827

Please sign in to comment.
Something went wrong with that request. Please try again.