2626class Client {
2727
2828 /**
29- * @var bool |resource
29+ * @var boolean |resource
3030 */
3131 public $ connection = false ;
3232
@@ -145,7 +145,7 @@ public function setConfig(array $config) {
145145 /**
146146 * Get the current imap resource
147147 *
148- * @return resource
148+ * @return resource|boolean
149149 */
150150 public function getConnection () {
151151 return $ this ->connection ;
@@ -251,7 +251,7 @@ public function disconnect() {
251251 */
252252 public function getFolder ($ folder_name , $ attributes = 32 , $ delimiter = null ) {
253253
254- $ delimiter = $ delimiter == null ? config ('imap.options.delimiter ' , '/ ' ) : $ delimiter ;
254+ $ delimiter = $ delimiter === null ? config ('imap.options.delimiter ' , '/ ' ) : $ delimiter ;
255255
256256 $ oFolder = new Folder ($ this , (object ) [
257257 'name ' => $ this ->getAddress ().$ folder_name ,
@@ -266,8 +266,8 @@ public function getFolder($folder_name, $attributes = 32, $delimiter = null) {
266266 * Get folders list.
267267 * If hierarchical order is set to true, it will make a tree of folders, otherwise it will return flat array.
268268 *
269- * @param bool $hierarchical
270- * @param null $parent_folder
269+ * @param boolean $hierarchical
270+ * @param string| null $parent_folder
271271 *
272272 * @return FolderCollection
273273 * @throws ConnectionFailedException
@@ -315,8 +315,7 @@ public function openFolder(Folder $folder, $attempts = 3) {
315315
316316 /**
317317 * Create a new Folder
318- *
319- * @param $name
318+ * @param string $name
320319 *
321320 * @return bool
322321 */
0 commit comments