Completed
Push — master ( 952cc5...be4e59 )
by Michal
06:14 queued 02:50
created
src/ShapeFile.lib.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -27,6 +27,8 @@  discard block
 block discarded – undo
27 27
  * along with this program; if not, you can download one from
28 28
  * http://www.gnu.org/copyleft/gpl.html.
29 29
  *
30
+ * @param string $type
31
+ * @param string $data
30 32
  */
31 33
   function loadData($type, $data) {
32 34
     if (!$data) return $data;
@@ -34,6 +36,9 @@  discard block
 block discarded – undo
34 36
     return current($tmp);
35 37
   }
36 38
 
39
+  /**
40
+   * @param string $binValue
41
+   */
37 42
   function swap($binValue) {
38 43
     $result = $binValue{strlen($binValue) - 1};
39 44
     for($i = strlen($binValue) - 2; $i >= 0 ; $i--) {
@@ -43,6 +48,9 @@  discard block
 block discarded – undo
43 48
     return $result;
44 49
   }
45 50
 
51
+  /**
52
+   * @return string
53
+   */
46 54
   function packDouble($value, $mode = 'LE') {
47 55
     $value = (double)$value;
48 56
     $bin = pack("d", $value);
@@ -339,6 +347,9 @@  discard block
 block discarded – undo
339 347
       }
340 348
     }
341 349
 
350
+    /**
351
+     * @param string $error
352
+     */
342 353
     function setError($error) {
343 354
       $this->lastError = $error;
344 355
       return false;
@@ -357,6 +368,9 @@  discard block
 block discarded – undo
357 368
     var $SHPData = array();
358 369
     var $DBFData = array();
359 370
 
371
+    /**
372
+     * @param integer $shapeType
373
+     */
360 374
     public function __construct($shapeType) {
361 375
       $this->shapeType = $shapeType;
362 376
     }
@@ -672,6 +686,9 @@  discard block
 block discarded – undo
672 686
       }
673 687
     }
674 688
 
689
+    /**
690
+     * @param string $error
691
+     */
675 692
     function setError($error) {
676 693
       $this->lastError = $error;
677 694
       return false;
Please login to merge, or discard this patch.