Fix some IDE warnings about undefined methods
authorMatthias Schmidt <gravatronics@live.com>
Sun, 17 Jul 2016 16:56:39 +0000 (18:56 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 17 Jul 2016 16:56:39 +0000 (18:56 +0200)
wcfsetup/install/files/lib/system/bbcode/CodeBBCode.class.php
wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php
wcfsetup/install/files/lib/system/email/mime/AbstractMultipartMimePart.class.php

index 8ad00a0558a80f0bf4b2b8b02305dfaf39f9b919..e03758eda643abcf69dac77b5b5eca0609daab44 100644 (file)
@@ -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
index 40004998f211986eadcd37b6a375e5d61cb19a2e..98af50a47c95b36a6733797d9c66610224ba9f83 100644 (file)
@@ -182,6 +182,7 @@ class CronjobScheduler extends SingletonFactory {
                }
                
                // execute cronjob
+               /** @var ICronjob $cronjob */
                $cronjob = new $className();
                $cronjob->execute($cronjobEditor->getDecoratedObject());
                
index 569aae205ef7383a01fada79b282cd7155408b88..3abf8bee665a4c7b06787715f90787837e0be08a 100644 (file)
@@ -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";