From: Matthias Schmidt Date: Sun, 17 Jul 2016 16:56:39 +0000 (+0200) Subject: Fix some IDE warnings about undefined methods X-Git-Tag: 3.0.0_Beta_1~1064 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f3713db8e6f8b5035f19728978f35e51a0c1dd98;p=GitHub%2FWoltLab%2FWCF.git Fix some IDE warnings about undefined methods --- diff --git a/wcfsetup/install/files/lib/system/bbcode/CodeBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/CodeBBCode.class.php index 8ad00a0558..e03758eda6 100644 --- a/wcfsetup/install/files/lib/system/bbcode/CodeBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/CodeBBCode.class.php @@ -151,6 +151,7 @@ class CodeBBCode extends AbstractBBCode { return WCF::getTPL()->fetch('codeBBCodeTag'); } else if ($parser->getOutputType() == 'text/simplified-html') { + /** @noinspection PhpUndefinedMethodInspection */ return WCF::getLanguage()->getDynamicVariable('wcf.bbcode.code.text', [ 'highlighterTitle' => $className::getInstance()->getTitle(), 'lines' => substr_count($content, "\n") + 1 diff --git a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php index 40004998f2..98af50a47c 100644 --- a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php @@ -182,6 +182,7 @@ class CronjobScheduler extends SingletonFactory { } // execute cronjob + /** @var ICronjob $cronjob */ $cronjob = new $className(); $cronjob->execute($cronjobEditor->getDecoratedObject()); diff --git a/wcfsetup/install/files/lib/system/email/mime/AbstractMultipartMimePart.class.php b/wcfsetup/install/files/lib/system/email/mime/AbstractMultipartMimePart.class.php index 569aae205e..3abf8bee66 100644 --- a/wcfsetup/install/files/lib/system/email/mime/AbstractMultipartMimePart.class.php +++ b/wcfsetup/install/files/lib/system/email/mime/AbstractMultipartMimePart.class.php @@ -59,6 +59,8 @@ abstract class AbstractMultipartMimePart extends AbstractMimePart implements IRe */ protected function getConcatenatedParts($parts) { $content = ""; + + /** @var AbstractMimePart $part */ foreach ($parts as $part) { $content .= "--".$this->boundary."\r\n"; $content .= "content-type: ".$part->getContentType()."\r\n";