Completed
Push — master ( 3b2be2...aa3dba )
by Yannick
06:52
created
require/libs/geoPHP/lib/adapters/WKB.class.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -123,6 +123,9 @@  discard block
 block discarded – undo
123 123
     return new Polygon($components);
124 124
   }
125 125
 
126
+  /**
127
+   * @param string $type
128
+   */
126 129
   function getMulti(&$mem, $type) {
127 130
     // Get the number of items expected in this multi out of the first 4 bytes
128 131
     $multi_length = unpack('L',fread($mem,4));
@@ -196,6 +199,9 @@  discard block
 block discarded – undo
196 199
     }
197 200
   }
198 201
 
202
+  /**
203
+   * @param Geometry $point
204
+   */
199 205
   function writePoint($point) {
200 206
     // Set the coords
201 207
     $wkb = pack('dd',$point->x(), $point->y());
@@ -215,6 +221,9 @@  discard block
 block discarded – undo
215 221
     return $wkb;
216 222
   }
217 223
 
224
+  /**
225
+   * @param Geometry $poly
226
+   */
218 227
   function writePolygon($poly) {
219 228
     // Set the number of lines in this poly
220 229
     $wkb = pack('L',$poly->numGeometries());
@@ -227,6 +236,9 @@  discard block
 block discarded – undo
227 236
     return $wkb;
228 237
   }
229 238
 
239
+  /**
240
+   * @param Geometry $geometry
241
+   */
230 242
   function writeMulti($geometry) {
231 243
     // Set the number of components
232 244
     $wkb = pack('L',$geometry->numGeometries());
Please login to merge, or discard this patch.
require/libs/geoPHP/lib/adapters/WKT.class.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@  discard block
 block discarded – undo
8 8
   /**
9 9
    * Read WKT string into geometry objects
10 10
    *
11
-   * @param string $WKT A WKT string
12 11
    *
13 12
    * @return Geometry
14 13
    */
@@ -184,11 +183,17 @@  discard block
 block discarded – undo
184 183
     else return $str;
185 184
   }
186 185
   
186
+  /**
187
+   * @param string $char
188
+   */
187 189
   protected function beginsWith($str, $char) {
188 190
     if (substr($str,0,strlen($char)) == $char) return TRUE;
189 191
     else return FALSE;
190 192
   }
191 193
 
194
+  /**
195
+   * @param string $char
196
+   */
192 197
   protected function endsWith($str, $char) {
193 198
     if (substr($str,(0 - strlen($char))) == $char) return TRUE;
194 199
     else return FALSE;
Please login to merge, or discard this patch.
require/libs/geoPHP/lib/geometry/Polygon.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -193,6 +193,9 @@
 block discarded – undo
193 193
     }
194 194
   }
195 195
   
196
+  /**
197
+   * @param Point $point
198
+   */
196 199
   public function pointOnVertex($point) {
197 200
     foreach($this->getPoints() as $vertex) {
198 201
       if ($point->equals($vertex)) {
Please login to merge, or discard this patch.
require/libs/geoPHP/tests/postgis.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -41,6 +41,10 @@
 block discarded – undo
41 41
   print "Testing Done!";
42 42
 }
43 43
 
44
+/**
45
+ * @param resource $connection
46
+ * @param string $format
47
+ */
44 48
 function test_postgis($name, $type, $geom, $connection, $format) {
45 49
   global $table;
46 50
   
Please login to merge, or discard this patch.
require/libs/geoPHP/tests/test.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -112,6 +112,9 @@  discard block
 block discarded – undo
112 112
   $geometry->m();
113 113
 }
114 114
 
115
+/**
116
+ * @param string $input
117
+ */
115 118
 function test_adapters($geometry, $format, $input) {
116 119
   // Test adapter output and input. Do a round-trip and re-test
117 120
   foreach (geoPHP::getAdapterMap() as $adapter_key => $adapter_class) {
@@ -234,6 +237,9 @@  discard block
 block discarded – undo
234 237
   }
235 238
 }
236 239
 
240
+/**
241
+ * @param string $value
242
+ */
237 243
 function test_detection($value, $format, $file) {
238 244
   $detected = geoPHP::detectFormat($value);
239 245
   if ($detected != $format) {
Please login to merge, or discard this patch.
require/libs/geoPHP/tests/tests/methodsTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -58,6 +58,10 @@
 block discarded – undo
58 58
     }
59 59
   }
60 60
 
61
+  /**
62
+   * @param string $method_name
63
+   * @param string|null $argument
64
+   */
61 65
   function _methods_tester($geometry, $method_name, $argument) {
62 66
 
63 67
     if (!method_exists($geometry, $method_name)) {
Please login to merge, or discard this patch.
require/libs/uagent/uagent.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -122,6 +122,9 @@
 block discarded – undo
122 122
         return self::array_random( empty( $lang ) ? self::$languages : $lang );
123 123
     }
124 124
 
125
+    /**
126
+     * @param string $os
127
+     */
125 128
     private static function get_processor( $os )
126 129
     {
127 130
         return self::array_random( self::$processors[$os] );
Please login to merge, or discard this patch.
require/class.Image.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -319,6 +319,9 @@
 block discarded – undo
319 319
 		return false;
320 320
 	}
321 321
 
322
+	/**
323
+	 * @param string $aircraft_icao
324
+	 */
322 325
 	public function fromIvaoMtl($aircraft_icao,$airline_icao) {
323 326
 		$Common = new Common();
324 327
 		//echo "\n".'SEARCH IMAGE : http://mtlcatalog.ivao.aero/images/aircraft/'.$aircraft_icao.$airline_icao.'.jpg';
Please login to merge, or discard this patch.
require/libs/Predict/Predict.php 1 patch
Doc Comments   +3 added lines, -17 removed lines patch added patch discarded remove patch
@@ -146,20 +146,6 @@  discard block
 block discarded – undo
146 146
 
147 147
     /** Predict first pass after a certain time.
148 148
      *
149
-     *  @param Predict_Sat $sat   The satellite data.
150
-     *  @param Predict_QTH $qth   The observer's location data.
151
-     *  @param float       $start Starting time.
152
-     *  @param int         $maxdt The maximum number of days to look ahead (0 for no limit).
153
-     *
154
-     *  @return Predict_Pass or NULL if there was an error.
155
-     *
156
-     * This function will find the first upcoming pass with AOS no earlier than
157
-     * t = start and no later than t = (start+maxdt).
158
-     *
159
-     *  note For no time limit use maxdt = 0.0
160
-     *
161
-     *  note the data in sat will be corrupt (future) and must be refreshed
162
-     *       by the caller, if the caller will need it later on
163 149
      */
164 150
     public function get_pass(Predict_Sat $sat_in, Predict_QTH $qth, $start, $maxdt)
165 151
     {
@@ -407,7 +393,7 @@  discard block
 block discarded – undo
407 393
      *  @param Predict_QTH $qth   The observer's location (QTH) data.
408 394
      *  @param float       $start The julian date where calculation should start.
409 395
      *  @param int         $maxdt The upper time limit in days (0.0 = no limit)
410
-     *  @return The julain date of the next AOS or 0.0 if the satellite has no AOS.
396
+     *  @return double julain date of the next AOS or 0.0 if the satellite has no AOS.
411 397
      *
412 398
      * This function finds the time of AOS for the first coming pass taking place
413 399
      * no earlier that start.
@@ -563,7 +549,7 @@  discard block
 block discarded – undo
563 549
      *  @param Predict_QTH $qth The QTH observer location data.
564 550
      *  @param float       $start The time where calculation should start. (Julian Date)
565 551
      *  @param int         $maxdt The upper time limit in days (0.0 = no limit)
566
-     *  @return The time (julian date) of the next LOS or 0.0 if the satellite has no LOS.
552
+     *  @return double time (julian date) of the next LOS or 0.0 if the satellite has no LOS.
567 553
      *
568 554
      * This function finds the time of LOS for the first coming pass taking place
569 555
      * no earlier that start.
@@ -648,7 +634,7 @@  discard block
 block discarded – undo
648 634
      *  @param Predict_Sat $sat   The satellite to find AOS for.
649 635
      *  @param Predict_QTH $qth   The ground station.
650 636
      *  @param float       $start Start time, prefereably now.
651
-     *  @return The time of the previous AOS or 0.0 if the satellite has no AOS.
637
+     *  @return double time of the previous AOS or 0.0 if the satellite has no AOS.
652 638
      *
653 639
      * This function can be used to find the AOS time in the past of the
654 640
      * current pass.
Please login to merge, or discard this patch.