Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix CheckStyle errors

  • Loading branch information...
commit 7f33110ddb906ac00b3e21e6b74317695b7d8448 1 parent a8435bc
@ogail ogail authored
View
4 WindowsAzure/Blob/BlobRestProxy.php
@@ -337,7 +337,7 @@ private function _addCreateBlobOptionalHeaders($options, $headers)
private function _addOptionalRangeHeader($headers, $start, $end)
{
if (!is_null($start) || !is_null($end)) {
- $range = $start . '-' . $end;
+ $range = $start . '-' . $end;
$rangeValue = 'bytes=' . $range;
$this->addOptionalHeader($headers, Resources::RANGE, $rangeValue);
}
@@ -2064,7 +2064,7 @@ public function deleteBlob($container, $blob, $options = null)
);
}
- $headers = $this->addOptionalAccessConditionHeader(
+ $headers = $this->addOptionalAccessConditionHeader(
$headers, $options->getAccessCondition()
);
View
4 WindowsAzure/Blob/Models/BlobBlockType.php
@@ -54,10 +54,10 @@ public static function isValid($type)
case self::COMMITTED_TYPE:
case self::LATEST_TYPE:
case self::UNCOMMITTED_TYPE:
- return true;
+ return true;
default:
- return false;
+ return false;
}
}
}
View
7 WindowsAzure/Common/Internal/Atom/AtomBase.php
@@ -276,8 +276,11 @@ protected function processLinkNode($xmlArray)
*
* @return none
*/
- protected function writeOptionalAttribute($xmlWriter, $attributeName, $attributeValue)
- {
+ protected function writeOptionalAttribute(
+ $xmlWriter,
+ $attributeName,
+ $attributeValue
+ ) {
Validate::notNull($xmlWriter, 'xmlWriter');
Validate::isString($attributeName, 'attributeName');
View
10 WindowsAzure/Common/Internal/ConnectionStringParser.php
@@ -122,7 +122,7 @@ private function _parse()
switch ($this->_state) {
case ParserState::EXPECT_KEY:
- $key = $this->_extractKey();
+ $key = $this->_extractKey();
$this->_state = ParserState::EXPECT_ASSIGNMENT;
break;
@@ -132,11 +132,11 @@ private function _parse()
break;
case ParserState::EXPECT_VALUE:
- $value = $this->_extractValue();
- $this->_state = ParserState::EXPECT_SEPARATOR;
+ $value = $this->_extractValue();
+ $this->_state = ParserState::EXPECT_SEPARATOR;
$connectionStringValues[$key] = $value;
- $key = null;
- $value = null;
+ $key = null;
+ $value = null;
break;
default:
Please sign in to comment.
Something went wrong with that request. Please try again.