Fix parameter documentation
authorMatthias Schmidt <gravatronics@live.com>
Sat, 7 May 2016 14:04:56 +0000 (16:04 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 7 May 2016 14:04:56 +0000 (16:04 +0200)
wcfsetup/install/files/lib/system/WCFSetup.class.php
wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php
wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php
wcfsetup/install/files/lib/system/image/adapter/IImageAdapter.class.php
wcfsetup/install/files/lib/system/image/adapter/ImageAdapter.class.php
wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php
wcfsetup/install/files/lib/system/label/LabelHandler.class.php

index c2c8786b86ad7dfff9b0b0fcf4dafcbbd35efb3d..b7e1cb25e39ff19e72c0060823afd5787e0634d9 100644 (file)
@@ -25,7 +25,7 @@ use wcf\util\UserUtil;
 use wcf\util\XML;
 
 // define
-define('PACKAGE_ID', '0');
+define('PACKAGE_ID', 0);
 define('HTTP_ENABLE_NO_CACHE_HEADERS', 0);
 define('HTTP_ENABLE_GZIP', 0);
 define('HTTP_GZIP_LEVEL', 0);
index 71437a12bbc6b776fc02e446d0f0464bea6904cf..5b5bfb90a6a4780f172ac461f9864ba3767f4ba9 100644 (file)
@@ -94,7 +94,7 @@ class BBCodeHandler extends SingletonFactory {
        /**
         * Sets the allowed BBCodes.
         * 
-        * @param       string[]
+        * @param       string[]        $bbCodes
         */
        public function setAllowedBBCodes(array $bbCodes) {
                $this->allowedBBCodes = $bbCodes;
index 244f34bab6c3edd8b700bf4fbf439cbb4808a8b7..0dd5006adf259aed6fae9c0bd985da827c54f3d8 100644 (file)
@@ -185,7 +185,7 @@ class GDImageAdapter implements IImageAdapter {
        /**
         * @see \wcf\system\image\adapter\IImageAdapter::drawText()
         */
-       public function drawText($text, $x, $y, $font, $size, $opacity = 1) {
+       public function drawText($text, $x, $y, $font, $size, $opacity = 1.0) {
                // set opacity
                $color = imagecolorallocatealpha($this->image, $this->colorData['red'], $this->colorData['green'], $this->colorData['blue'], (1 - $opacity) * 127);
                
@@ -196,7 +196,7 @@ class GDImageAdapter implements IImageAdapter {
        /**
         * @see \wcf\system\image\adapter\IImageAdapter::drawTextRelative()
         */
-       public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1) {
+       public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1.0) {
                // split text into multiple lines
                $lines = explode("\n", StringUtil::unifyNewlines($text));
                
index 159d810536d03f5d4dd8ac99eeb23cd1cc991c52..e3e76ff2e5f7d39c570c87dd998b8606bf86c31d 100644 (file)
@@ -93,7 +93,7 @@ interface IImageAdapter {
         * @see         \wcf\system\image\adapter\IImageAdapter::getImage()
         * @see         \wcf\system\image\adapter\IImageAdapter::setColor()
         */
-       public function drawText($text, $x, $y, $font, $size, $opacity = 1);
+       public function drawText($text, $x, $y, $font, $size, $opacity = 1.0);
        
        /**
         * Draws (multiple lines of) text on the image at the given relative position
@@ -108,7 +108,7 @@ interface IImageAdapter {
         * @param       integer         $size           font size
         * @param       float           $opacity
         */
-       public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1);
+       public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1.0);
        
        /**
         * Returns true if the given text fits the image.
index 6a24392caa35bea3b5ac452e54d201c6d1cb4e4d..59a7ab5d02dad77eb44c4abdcb73cd97bfa80ded 100644 (file)
@@ -128,7 +128,7 @@ class ImageAdapter implements IImageAdapter {
        /**
         * @see \wcf\system\image\adapter\IImageAdapter::drawText()
         */
-       public function drawText($text, $x, $y, $font, $size, $opacity = 1) {
+       public function drawText($text, $x, $y, $font, $size, $opacity = 1.0) {
                if (!$this->adapter->hasColor()) {
                        throw new SystemException("Cannot draw text unless a color has been specified with setColor().");
                }
@@ -144,7 +144,7 @@ class ImageAdapter implements IImageAdapter {
        /**
         * @see \wcf\system\image\adapter\IImageAdapter::drawTextRelative()
         */
-       public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1) {
+       public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1.0) {
                if (!$this->adapter->hasColor()) {
                        throw new SystemException("Cannot draw text unless a color has been specified with setColor().");
                }
index f5b27ddcad65c36190f33bdb53361aa9cc2c5baf..9aa27c20e712ec060c94c970eaba70a2603843cb 100644 (file)
@@ -187,7 +187,7 @@ class ImagickImageAdapter implements IImageAdapter {
        /**
         * @see \wcf\system\image\adapter\IImageAdapter::drawText()
         */
-       public function drawText($text, $x, $y, $font, $size, $opacity = 1) {
+       public function drawText($text, $x, $y, $font, $size, $opacity = 1.0) {
                $draw = new \ImagickDraw();
                $draw->setFillOpacity($opacity);
                $draw->setFillColor($this->color);
@@ -214,7 +214,7 @@ class ImagickImageAdapter implements IImageAdapter {
        /**
         * @see \wcf\system\image\adapter\IImageAdapter::drawTextRelative()
         */
-       public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1) {
+       public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1.0) {
                $draw = new \ImagickDraw();
                $draw->setFont($font);
                $draw->setFontSize($size);
index 8d11f3014ac1b87f83de0d4f50d41bf950df6376..dce83e4bf156dd3c4680cc3f18dd244333b310e2 100644 (file)
@@ -197,9 +197,9 @@ class LabelHandler extends SingletonFactory {
        /**
         * Returns all assigned labels, optionally filtered to validate permissions.
         * 
-        * @param       integer                 $objectTypeID
-        * @param       integer[]               $objectIds
-        * @param       boolean                 $validatePermissions
+        * @param       integer         $objectTypeID
+        * @param       integer[]       $objectIDs
+        * @param       boolean         $validatePermissions
         * @return      array
         */
        public function getAssignedLabels($objectTypeID, array $objectIDs, $validatePermissions = true) {
@@ -343,8 +343,8 @@ class LabelHandler extends SingletonFactory {
        /**
         * Removes all assigned labels for given object ids.
         * 
-        * @param       integer                 $objectTypeID
-        * @param       integer[]               $objectID
+        * @param       integer         $objectTypeID
+        * @param       integer[]       $objectIDs
         */
        public function removeLabels($objectTypeID, array $objectIDs) {
                $conditions = new PreparedStatementConditionBuilder();