From f8f263c990482d84dd0426ea05aec61bbfea3f3b Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Oct 2012 17:35:11 +0700 Subject: [PATCH] fix cs casting variable for (array) --- src/Protocol/Imap.php | 2 +- src/Storage/Imap.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Protocol/Imap.php b/src/Protocol/Imap.php index a5c90f12..76fe1d55 100644 --- a/src/Protocol/Imap.php +++ b/src/Protocol/Imap.php @@ -536,7 +536,7 @@ public function fetch($items, $from, $to = null) $set = (int) $from . ':' . (int)$to; } - $items = (array)$items; + $items = (array) $items; $itemList = $this->escapeList($items); $tag = null; // define $tag variable before first use diff --git a/src/Storage/Imap.php b/src/Storage/Imap.php index d87e81a6..72b0268e 100644 --- a/src/Storage/Imap.php +++ b/src/Storage/Imap.php @@ -76,7 +76,7 @@ public function countMessages($flags = null) } $params = array(); - foreach ((array)$flags as $flag) { + foreach ((array) $flags as $flag) { if (isset(self::$searchFlags[$flag])) { $params[] = self::$searchFlags[$flag]; } else {