| @@ -150,6 +150,9 @@ | ||
| 150 | 150 | ); | 
| 151 | 151 | } | 
| 152 | 152 | |
| 153 | + /** | |
| 154 | + * @param string $contents | |
| 155 | + */ | |
| 153 | 156 | private function parseEmail($contents) | 
| 154 | 157 |      { | 
| 155 | 158 | $addresses = $this->parseEmailAddress($contents); | 
| @@ -65,11 +65,11 @@ | ||
| 65 | 65 | $type = $mailServiceOptions->getTransportClass(); | 
| 66 | 66 |          if (MailService::TRANSPORT_SMTP == $type) { | 
| 67 | 67 | return new Smtp($mailServiceOptions); | 
| 68 | -        }elseif(MailService::TRANSPORT_FILE == $type){ | |
| 68 | +        } elseif(MailService::TRANSPORT_FILE == $type){ | |
| 69 | 69 | $fileOptions = new FileOptions(); | 
| 70 | 70 | $fileOptions->setPath($mailServiceOptions->getPath()); | 
| 71 | 71 | return new FileTransport($fileOptions); | 
| 72 | -        }elseif(MailService::TRANSPORT_SENDMAIL == $type){ | |
| 72 | +        } elseif(MailService::TRANSPORT_SENDMAIL == $type){ | |
| 73 | 73 | return new Sendmail(); | 
| 74 | 74 | } | 
| 75 | 75 | |
| @@ -93,7 +93,7 @@ discard block | ||
| 93 | 93 | JobContext::removeJobByUser($user); | 
| 94 | 94 | $repo->remove($user,true); | 
| 95 | 95 | $repo->getDocumentManager()->refresh($user); | 
| 96 | -				}catch (\Exception $e){ | |
| 96 | +				} catch (\Exception $e){ | |
| 97 | 97 | |
| 98 | 98 | } | 
| 99 | 99 | } | 
| @@ -280,7 +280,7 @@ discard block | ||
| 280 | 280 | $organization->setOrganizationName($organizationName); | 
| 281 | 281 | $permissions = $organization->getPermissions(); | 
| 282 | 282 | $permissions->grant($user,Permissions::PERMISSION_ALL); | 
| 283 | -		}else { | |
| 283 | +		} else { | |
| 284 | 284 | $organization->getPermissions()->grant($user,Permissions::PERMISSION_ALL); | 
| 285 | 285 | } | 
| 286 | 286 | $organization->setUser($user); |