Skip to content

Commit

Permalink
little code improvements and performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
dkemper committed Dec 2, 2014
1 parent 5b557b2 commit f6fd83c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
11 changes: 6 additions & 5 deletions library/Zend/Form/View/Helper/File/FormFileUploadProgress.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ public function __invoke(ElementInterface $element = null)
*/
public function renderHiddenId()
{
$attributes = array();
$attributes['id'] = 'progress_key';
$attributes['name'] = $this->getName();
$attributes['type'] = 'hidden';
$attributes['value'] = $this->getValue();
$attributes = array(
'id' => 'progress_key',
'name' => $this->getName(),
'type' => 'hidden',
'value' => $this->getValue()
);

return sprintf(
'<input %s%s',
Expand Down
4 changes: 1 addition & 3 deletions library/Zend/Form/View/Helper/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ public function openTag(FormInterface $form = null)
$attributes = array_merge($attributes, $formAttributes);
}

$tag = sprintf('<form %s>', $this->createAttributesString($attributes));

return $tag;
return sprintf('<form %s>', $this->createAttributesString($attributes));
}

/**
Expand Down
3 changes: 1 addition & 2 deletions library/Zend/Form/View/Helper/FormDateTimeSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ public function render(ElementInterface $element)
$markup .= $data[$value];
}
}
$markup = trim($markup);

return $markup;
return trim($markup);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Uri/UriFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ public static function getRegisteredSchemeClass($scheme)
{
if (isset(static::$schemeClasses[$scheme])) {
return static::$schemeClasses[$scheme];
} else {
return null;
}

return null;
}

/**
Expand Down

0 comments on commit f6fd83c

Please sign in to comment.