Skip to content

Commit 7639459

Browse files
committed
Spacings fixed
1 parent 1260b87 commit 7639459

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/IMAP/Folder.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function setChildren($children = []) {
153153
*
154154
* @return Message|null
155155
*/
156-
public function getMessage($uid, $msglist = null){
156+
public function getMessage($uid, $msglist = null) {
157157
if(imap_msgno($this->getClient()->getConnection(), $uid) > 0){
158158
return new Message($uid, $msglist, $this->getClient());
159159
}
@@ -260,7 +260,7 @@ public function searchMessages(array $where, $fetch_options = null, $parse_body
260260

261261
$this->getClient()->checkConnection();
262262

263-
if($this->validateWhereStatements($where) === false){
263+
if($this->validateWhereStatements($where) === false) {
264264
throw new MessageSearchValidationException('Invalid imap search criteria provided');
265265
}
266266

@@ -269,8 +269,8 @@ public function searchMessages(array $where, $fetch_options = null, $parse_body
269269
$messages = MessageCollection::make([]);
270270

271271
$query = '';
272-
foreach($where as $statement){
273-
if(count($statement) == 1){
272+
foreach($where as $statement) {
273+
if(count($statement) == 1) {
274274
$query .= $statement[0];
275275
} else{
276276
$query .= $statement[0].' "'.$statement[1].'"';
@@ -308,14 +308,14 @@ public function searchMessages(array $where, $fetch_options = null, $parse_body
308308
* https://tools.ietf.org/html/rfc1064
309309
* https://tools.ietf.org/html/rfc822
310310
*/
311-
protected function validateWhereStatements($statements){
312-
foreach($statements as $statement){
311+
protected function validateWhereStatements($statements) {
312+
foreach($statements as $statement) {
313313
$criteria = $statement[0];
314314
if(in_array($criteria, [
315315
'OR', 'AND',
316316
'ALL', 'ANSWERED', 'BCC', 'BEFORE', 'BODY', 'CC', 'DELETED', 'FLAGGED', 'FROM', 'KEYWORD',
317317
'NEW', 'OLD', 'ON', 'RECENT', 'SEEN', 'SINCE', 'SUBJECT', 'TEXT', 'TO',
318-
'UNANSWERED', 'UNDELETED', 'UNFLAGGED', 'UNKEYWORD', 'UNSEEN']) == false){
318+
'UNANSWERED', 'UNDELETED', 'UNFLAGGED', 'UNKEYWORD', 'UNSEEN']) == false) {
319319
return false;
320320
}
321321
}
@@ -368,7 +368,7 @@ protected function parseAttributes($attributes) {
368368
*
369369
* @return bool
370370
*/
371-
public function delete(){
371+
public function delete() {
372372
$status = imap_deletemailbox($this->client->connection, $this->path);
373373
$this->client->expunge();
374374

@@ -382,7 +382,7 @@ public function delete(){
382382
*
383383
* @return bool
384384
*/
385-
public function move($target_mailbox){
385+
public function move($target_mailbox) {
386386
$status = imap_renamemailbox($this->client->connection, $this->path, $target_mailbox);
387387
$this->client->expunge();
388388

@@ -402,7 +402,7 @@ public function move($target_mailbox){
402402
*
403403
* @return object
404404
*/
405-
public function getStatus($options){
405+
public function getStatus($options) {
406406
return imap_status($this->client->connection, $this->path, $options);
407407
}
408408

@@ -415,7 +415,7 @@ public function getStatus($options){
415415
*
416416
* @return bool
417417
*/
418-
public function appendMessage($message, $options = null, $internal_date = null){
418+
public function appendMessage($message, $options = null, $internal_date = null) {
419419
return imap_append($this->client->connection, $this->path, $message, $options, $internal_date);
420420
}
421421

@@ -424,7 +424,7 @@ public function appendMessage($message, $options = null, $internal_date = null){
424424
*
425425
* @return Client
426426
*/
427-
public function getClient(){
427+
public function getClient() {
428428
return $this->client;
429429
}
430430
}

0 commit comments

Comments
 (0)