Skip to content

Commit

Permalink
again: PSR-2 : add space after and before parenthesis and bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 21, 2013
1 parent 3bd643a commit 5b93651
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion library/Zend/Filter/BaseName.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function filter($value)
return null;
}

if (!is_scalar($value)){
if (!is_scalar($value)) {
trigger_error(
sprintf(
'%s expects parameter to be scalar, "%s" given; cannot filter',
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Filter/Digits.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function filter($value)
return null;
}

if (!is_scalar($value)){
if (!is_scalar($value)) {
trigger_error(
sprintf(
'%s expects parameter to be scalar, "%s" given; cannot filter',
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Filter/HtmlEntities.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function filter($value)
return null;
}

if (!is_scalar($value)){
if (!is_scalar($value)) {
trigger_error(
sprintf(
'%s expects parameter to be scalar, "%s" given; cannot filter',
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Filter/Int.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function filter($value)
return null;
}

if (!is_scalar($value)){
if (!is_scalar($value)) {
trigger_error(
sprintf(
'%s expects parameter to be scalar, "%s" given; cannot filter',
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 @@ -78,7 +78,7 @@ public function filter($value)
return null;
}

if (!is_scalar($value)){
if (!is_scalar($value)) {
trigger_error(
sprintf(
'%s expects parameter to be scalar, "%s" given; cannot filter',
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 @@ -53,7 +53,7 @@ public function filter($value)
return null;
}

if (!is_scalar($value)){
if (!is_scalar($value)) {
trigger_error(
sprintf(
'%s expects parameter to be scalar, "%s" given; cannot filter',
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 @@ -53,7 +53,7 @@ public function filter($value)
return null;
}

if (!is_scalar($value)){
if (!is_scalar($value)) {
trigger_error(
sprintf(
'%s expects parameter to be scalar, "%s" given; cannot filter',
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Filter/StripTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function filter($value)
return null;
}

if (!is_scalar($value)){
if (!is_scalar($value)) {
trigger_error(
sprintf(
'%s expects parameter to be scalar, "%s" given; cannot filter',
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Soap/Wsdl.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function setClassMap($classMap)
*/
public function setUri($uri)
{
if ($uri instanceof Uri){
if ($uri instanceof Uri) {
$uri = $uri->toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ public function url($url, $method = HttpRequest::METHOD_GET, $params = array())
}

if ($method == HttpRequest::METHOD_POST) {
if (count($params) != 0){
if (count($params) != 0) {
$post = $params;
}
} elseif ($method == HttpRequest::METHOD_GET) {
$query = array_merge($query, $params);
} elseif ($method == HttpRequest::METHOD_PUT) {
if (count($params) != 0){
if (count($params) != 0) {
array_walk($params,
function(&$item, $key) { $item = $key . '=' . $item; }
);
Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/I18n/Translator/TranslatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public function testListenerOnNoMessagesLoadedEventCanReturnTextDomainObject()
$events->attach(Translator::EVENT_NO_MESSAGES_LOADED, function(EventInterface $event) use ($textDomain) {
return $textDomain;
});
$events->attach(Translator::EVENT_NO_MESSAGES_LOADED, function(EventInterface $event) use (&$doNotTrigger){
$events->attach(Translator::EVENT_NO_MESSAGES_LOADED, function(EventInterface $event) use (&$doNotTrigger) {
$doNotTrigger = true;
});

Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/InputFilter/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public function testFactoryWillNotGetPrioritySetting()
// string_to_upper (1001), string_to_lower (1000), string_trim (999)
$index = 0;
foreach($input->getFilterChain()->getFilters() as $filter) {
switch($index) {
switch ($index) {
case 0:
$this->assertInstanceOf('Zend\Filter\StringToUpper', $filter);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function replaceList($items)
public function patchList($items)
{
//This isn't great code to have in a test class, but I seems the simplest without BC breaks.
if (isset($items['name']) && $items['name'] == 'testDispatchViaPatchWithoutIdentifierReturns405ResponseIfPatchListThrowsException'){
if (isset($items['name']) && $items['name'] == 'testDispatchViaPatchWithoutIdentifierReturns405ResponseIfPatchListThrowsException') {
parent::patchList($items);
}
return $items;
Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Navigation/ServiceFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function testConstructedNavigationFactoryInjectRouterAndMatcher()
$this->isInstanceOf("Zend\Mvc\Router\RouteMatch"),
$this->isInstanceOf("Zend\Mvc\Router\RouteStackInterface"));

$this->serviceManager->setFactory('Navigation', function ($serviceLocator) use ($factory){
$this->serviceManager->setFactory('Navigation', function ($serviceLocator) use ($factory) {
return $factory->createService($serviceLocator);
});

Expand Down

0 comments on commit 5b93651

Please sign in to comment.