Skip to content

Commit ec1b3d3

Browse files
authored
Merge pull request #1818 from caugner/patch-1
Fixes PHPDoc @param and @return types for several Converter methods
2 parents 21f4bb3 + 1dee5f3 commit ec1b3d3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/PhpWord/Shared/Converter.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static function inchToPoint($inch = 1)
133133
* Convert inch to EMU
134134
*
135135
* @param float $inch
136-
* @return float
136+
* @return int
137137
*/
138138
public static function inchToEmu($inch = 1)
139139
{
@@ -143,7 +143,7 @@ public static function inchToEmu($inch = 1)
143143
/**
144144
* Convert pixel to twip
145145
*
146-
* @param int $pixel
146+
* @param float $pixel
147147
* @return float
148148
*/
149149
public static function pixelToTwip($pixel = 1)
@@ -154,7 +154,7 @@ public static function pixelToTwip($pixel = 1)
154154
/**
155155
* Convert pixel to centimeter
156156
*
157-
* @param int $pixel
157+
* @param float $pixel
158158
* @return float
159159
*/
160160
public static function pixelToCm($pixel = 1)
@@ -165,7 +165,7 @@ public static function pixelToCm($pixel = 1)
165165
/**
166166
* Convert pixel to point
167167
*
168-
* @param int $pixel
168+
* @param float $pixel
169169
* @return float
170170
*/
171171
public static function pixelToPoint($pixel = 1)
@@ -176,7 +176,7 @@ public static function pixelToPoint($pixel = 1)
176176
/**
177177
* Convert pixel to EMU
178178
*
179-
* @param int $pixel
179+
* @param float $pixel
180180
* @return int
181181
*/
182182
public static function pixelToEmu($pixel = 1)
@@ -187,7 +187,7 @@ public static function pixelToEmu($pixel = 1)
187187
/**
188188
* Convert point to twip unit
189189
*
190-
* @param int $point
190+
* @param float $point
191191
* @return float
192192
*/
193193
public static function pointToTwip($point = 1)
@@ -209,7 +209,7 @@ public static function pointToPixel($point = 1)
209209
/**
210210
* Convert point to EMU
211211
*
212-
* @param int $point
212+
* @param float $point
213213
* @return float
214214
*/
215215
public static function pointToEmu($point = 1)
@@ -231,7 +231,7 @@ public static function pointToCm($point = 1)
231231
/**
232232
* Convert EMU to pixel
233233
*
234-
* @param int $emu
234+
* @param float $emu
235235
* @return float
236236
*/
237237
public static function emuToPixel($emu = 1)
@@ -242,7 +242,7 @@ public static function emuToPixel($emu = 1)
242242
/**
243243
* Convert pica to point
244244
*
245-
* @param int $pica
245+
* @param float $pica
246246
* @return float
247247
*/
248248
public static function picaToPoint($pica = 1)
@@ -253,7 +253,7 @@ public static function picaToPoint($pica = 1)
253253
/**
254254
* Convert degree to angle
255255
*
256-
* @param int $degree
256+
* @param float $degree
257257
* @return int
258258
*/
259259
public static function degreeToAngle($degree = 1)
@@ -264,7 +264,7 @@ public static function degreeToAngle($degree = 1)
264264
/**
265265
* Convert angle to degrees
266266
*
267-
* @param int $angle
267+
* @param float $angle
268268
* @return int
269269
*/
270270
public static function angleToDegree($angle = 1)

0 commit comments

Comments
 (0)