Code Duplication    Length = 4-4 lines in 2 locations

api/src/Mail.php 2 locations

@@ 1109-1112 (lines=4) @@
1106
	{
1107
		$retval = true;
1108
		if($folderToSelect && ($folderStatus = $this->getFolderStatus($folderToSelect,false,true))) {
1109
			if (!empty($folderStatus['attributes']) && stripos(array2string($folderStatus['attributes']),'noselect')!==false)
1110
			{
1111
				$retval = false;
1112
			}
1113
		}
1114
		return $retval;
1115
	}
@@ 1257-1260 (lines=4) @@
1254
		}
1255
		if ($folderInfo) $folderBasicInfo[$this->profileID][$_folderName]=$retValue;
1256
		//error_log(__METHOD__.' ('.__LINE__.') '.' '.$_folderName.array2string($retValue['attributes']));
1257
		if ($basicInfoOnly || (isset($retValue['attributes']) && stripos(array2string($retValue['attributes']),'noselect')!==false))
1258
		{
1259
			return $retValue;
1260
		}
1261
		// fetch all in one go for one request, instead of querying them one by one
1262
		// cache it for a minute 60*60*1
1263
		// this should reduce communication to the imap server