Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/psr-2_compliance' of git://github.com/RWOverdijk…
Browse files Browse the repository at this point in the history
…/zf2 into RWOverdijk-hotfix/psr-2_compliance
  • Loading branch information
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function addHeaderLine($headerFieldNameOrLine, $fieldValue = null)
if ($fieldValue === null) {
$this->addHeader(Header\GenericHeader::fromString($headerFieldNameOrLine));
} elseif (is_array($fieldValue)) {
foreach($fieldValue as $i) {
foreach ($fieldValue as $i) {
$this->addHeader(new Header\GenericMultiHeader($headerFieldNameOrLine, $i));
}
} else {
Expand Down Expand Up @@ -291,7 +291,7 @@ public function get($name)
}
}

switch(count($results)) {
switch (count($results)) {
case 0:
return false;
case 1:
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/AbstractStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function offsetExists($id)
if ($this->getMessage($id)) {
return true;
}
} catch(Exception\ExceptionInterface $e) {}
} catch (Exception\ExceptionInterface $e) {}

return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Folder/Maildir.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function selectFolder($globalName)

try {
$this->_openMaildir($this->rootdir . '.' . $folder->getGlobalName());
} catch(Exception\ExceptionInterface $e) {
} catch (Exception\ExceptionInterface $e) {
// check what went wrong
if (!$folder->isSelectable()) {
throw new Exception\RuntimeException("{$this->currentFolder} is not selectable", 0, $e);
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Folder/Mbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function selectFolder($globalName)

try {
$this->openMboxFile($this->rootdir . $folder->getGlobalName());
} catch(Exception\ExceptionInterface $e) {
} catch (Exception\ExceptionInterface $e) {
// check what went wrong
if (!$folder->isSelectable()) {
throw new Exception\RuntimeException("{$this->currentFolder} is not selectable", 0, $e);
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function __construct($params)
$this->protocol = $params;
try {
$this->selectFolder('INBOX');
} catch(Exception\ExceptionInterface $e) {
} catch (Exception\ExceptionInterface $e) {
throw new Exception\RuntimeException('cannot select INBOX, is this a valid transport?', 0, $e);
}
return;
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Part.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function isMultipart()
{
try {
return stripos($this->contentType, 'multipart/') === 0;
} catch(Exception\ExceptionInterface $e) {
} catch (Exception\ExceptionInterface $e) {
return false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Pop3.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public function __get($var)
// need to make a real call, because not all server are honest in their capas
try {
$this->protocol->top(1, 0, false);
} catch(MailException\ExceptionInterface $e) {
} catch (MailException\ExceptionInterface $e) {
// ignoring error
}
}
Expand All @@ -274,7 +274,7 @@ public function __get($var)
$id = null;
try {
$id = $this->protocol->uniqueid(1);
} catch(MailException\ExceptionInterface $e) {
} catch (MailException\ExceptionInterface $e) {
// ignoring error
}
$this->has['uniqueid'] = $id ? true : false;
Expand Down

0 comments on commit e0d3e79

Please sign in to comment.