Skip to content

Commit

Permalink
missed spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Aug 10, 2012
1 parent f2be6f8 commit fa2fc27
Show file tree
Hide file tree
Showing 41 changed files with 160 additions and 160 deletions.
2 changes: 1 addition & 1 deletion library/Zend/Console/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function writeBox(
$this->write(str_repeat($fillChar, $width), $fillColor, $fillBgColor);
}
} else {
switch ($lineStyle){
switch ($lineStyle) {
case static::LINE_DOUBLE:
$lineChar = $charset::LINE_DOUBLE_NS;
break;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Console/Adapter/WindowsAnsicon.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function readChar($mask = null)
// Retrieve char from the result.
$char = !empty($result) ? implode('', $result) : null;

if (!empty($char) && !$return){
if (!empty($char) && !$return) {
// We have obtained an ASCII code, convert back to a char ...
$char = chr($char);

Expand Down
10 changes: 5 additions & 5 deletions library/Zend/Console/Prompt/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,18 @@ public function show()
$number = parent::show();
if ($number === "" && !$this->allowEmpty) {
$valid = false;
} elseif ($number === ""){
} elseif ($number === "") {
$number = null;
} elseif (!is_numeric($number)){
} elseif (!is_numeric($number)) {
$this->getConsole()->writeLine("$number is not a number\n");
$valid = false;
} elseif (!$this->allowFloat && (round($number) != $number) ){
} elseif (!$this->allowFloat && (round($number) != $number) ) {
$this->getConsole()->writeLine("Please enter a non-floating number, i.e. ".round($number)."\n");
$valid = false;
} elseif ($this->max !== null && $number > $this->max){
} elseif ($this->max !== null && $number > $this->max) {
$this->getConsole()->writeLine("Please enter a number not greater than ".$this->max."\n");
$valid = false;
} elseif ($this->min !== null && $number < $this->min){
} elseif ($this->min !== null && $number < $this->min) {
$this->getConsole()->writeLine("Please enter a number not smaller than ".$this->min."\n");
$valid = false;
}
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/EventManager/SharedEventManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function attach($id, $event, $callback, $priority = 1)
}
$listeners[] = $this->identifiers[$id]->attach($event, $callback, $priority);
}
if (count($listeners) > 1){
if (count($listeners) > 1) {
return $listeners;
}
return $listeners[0];
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Filter/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ abstract class AbstractFilter implements FilterInterface
public static function hasPcreUnicodeSupport()
{
if (static::$hasPcreUnicodeSupport === null) {
if (defined('PREG_BAD_UTF8_OFFSET_ERROR') || @preg_match('/\pL/u', 'a') == 1){
if (defined('PREG_BAD_UTF8_OFFSET_ERROR') || @preg_match('/\pL/u', 'a') == 1) {
static::$hasPcreUnicodeSupport = true;
} else {
static::$hasPcreUnicodeSupport = false;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Filter/RealPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RealPath extends AbstractFilter
public function __construct($existsOrOptions = true)
{
if ($existsOrOptions !== null) {
if (!static::isOptions($existsOrOptions)){
if (!static::isOptions($existsOrOptions)) {
$this->setExists($existsOrOptions);
} else {
$this->setOptions($existsOrOptions);
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Filter/StringToLower.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class StringToLower extends AbstractUnicode
public function __construct($encodingOrOptions = null)
{
if ($encodingOrOptions !== null) {
if (!static::isOptions($encodingOrOptions)){
if (!static::isOptions($encodingOrOptions)) {
$this->setEncoding($encodingOrOptions);
} else {
$this->setOptions($encodingOrOptions);
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Filter/StringToUpper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class StringToUpper extends AbstractUnicode
public function __construct($encodingOrOptions = null)
{
if ($encodingOrOptions !== null) {
if (!static::isOptions($encodingOrOptions)){
if (!static::isOptions($encodingOrOptions)) {
$this->setEncoding($encodingOrOptions);
} else {
$this->setOptions($encodingOrOptions);
Expand Down
6 changes: 3 additions & 3 deletions library/Zend/Form/View/Helper/Captcha/ReCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ function windowOnLoad(fn)
}
function zendBindEvent(el, eventName, eventHandler)
{
if (el.addEventListener){
if (el.addEventListener) {
el.addEventListener(eventName, eventHandler, false);
} $elseif (el.attachEvent){
} $elseif (el.attachEvent) {
el.attachEvent('on'+eventName, eventHandler);
}
}
windowOnLoad(function(){
windowOnLoad(function() {
zendBindEvent(
document.getElementById("$challengeId").form,
'submit',
Expand Down
6 changes: 3 additions & 3 deletions library/Zend/Http/PhpEnvironment/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function getContent()
{
if (empty($this->content)) {
$requestBody = file_get_contents('php://input');
if (strlen($requestBody) > 0){
if (strlen($requestBody) > 0) {
$this->content = $requestBody;
}
}
Expand Down Expand Up @@ -307,7 +307,7 @@ public function getServer($name = null, $default = null)
$this->serverParams = new Parameters();
}

if ($name === null){
if ($name === null) {
return $this->serverParams;
}

Expand Down Expand Up @@ -340,7 +340,7 @@ public function getEnv($name = null, $default = null)
$this->envParams = new Parameters();
}

if ($name === null){
if ($name === null) {
return $this->envParams;
}

Expand Down
10 changes: 5 additions & 5 deletions library/Zend/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function getQuery($name = null, $default = null)
$this->queryParams = new Parameters();
}

if ($name === null){
if ($name === null) {
return $this->queryParams;
}

Expand Down Expand Up @@ -270,7 +270,7 @@ public function getPost($name = null, $default = null)
$this->postParams = new Parameters();
}

if ($name === null){
if ($name === null) {
return $this->postParams;
}

Expand Down Expand Up @@ -314,7 +314,7 @@ public function getFiles($name = null, $default = null)
$this->fileParams = new Parameters();
}

if ($name === null){
if ($name === null) {
return $this->fileParams;
}

Expand All @@ -336,11 +336,11 @@ public function getHeaders($name = null, $default = false)
$this->headers = (is_string($this->headers)) ? Headers::fromString($this->headers) : new Headers();
}

if ($name === null){
if ($name === null) {
return $this->headers;
}

if ($this->headers->has($name)){
if ($this->headers->has($name)) {
return $this->headers->get($name);
}

Expand Down
2 changes: 1 addition & 1 deletion library/Zend/I18n/Filter/Alnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Alnum extends AbstractLocale
public function __construct($allowWhiteSpaceOrOptions = null, $locale = null)
{
if ($allowWhiteSpaceOrOptions !== null) {
if (static::isOptions($allowWhiteSpaceOrOptions)){
if (static::isOptions($allowWhiteSpaceOrOptions)) {
$this->setOptions($allowWhiteSpaceOrOptions);
} else {
$this->setAllowWhiteSpace($allowWhiteSpaceOrOptions);
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Json/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,14 @@ private static function _encodeMethods(\ReflectionClass $cls)
}
$argNames .= "];";

$result .= "){"
$result .= ") {"
. $argNames
. 'var result = ZAjaxEngine.invokeRemoteMethod('
. "this, '" . $method->getName()
. "',argNames,arguments);"
. 'return(result);}';
} else {
$result .= "){}";
$result .= ") {}";
}
}

Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Json/Expr.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
* 'integer' =>9,
* 'string' =>'test string',
* 'function' => Zend_Json_Expr(
* 'function(){ window.alert("javascript function encoded by Zend_Json") }'
* 'function() { window.alert("javascript function encoded by Zend_Json") }'
* ),
* );
*
* Zend_Json::encode($foo, false, array('enableJsonExprFinder' => true));
* // it will returns json encoded string:
* // {"integer":9,"string":"test string","function":function(){window.alert("javascript function encoded by Zend_Json")}}
* // {"integer":9,"string":"test string","function":function() {window.alert("javascript function encoded by Zend_Json")}}
* </code>
*
* @category Zend
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Ldap/Converter/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public static function fromLdapDateTime($date, $asUtc = true)
}

// Set Offset
$offsetRegEx = '/([Z\-\+])(\d{2}\'?){0,1}(\d{2}\'?){0,1}$/';
$offsetRegEx = '/([Z\-\+])(\d{2}\'?) {0,1}(\d{2}\'?) {0,1}$/';
$off = array();
if (preg_match($offsetRegEx, $date, $off)) {
$offset = $off[1];
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Log/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public static function registerExceptionHandler(Logger $logger)
throw new Exception\InvalidArgumentException('Invalid Logger specified');
}

set_exception_handler(function ($exception) use ($logger){
set_exception_handler(function ($exception) use ($logger) {
$extra = array(
'file' => $exception->getFile(),
'line' => $exception->getLine(),
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Mime/Part.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function getHeadersArray($EOL = Mime::LINEEND)
$headers[] = array('Content-Location', $this->location);
}

if ($this->language){
if ($this->language) {
$headers[] = array('Content-Language', $this->language);
}

Expand Down
Loading

0 comments on commit fa2fc27

Please sign in to comment.