Passed
Pull Request — master (#329)
by Mirko
08:13
created
htdocs/lib2/translate_filescan.class.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -76,6 +76,10 @@  discard block
 block discarded – undo
76 76
         }
77 77
     }
78 78
 
79
+    /**
80
+     * @param string $sCode
81
+     * @param integer $nStartSearch
82
+     */
79 83
     public function findEndOfPHPString($sCode, $nStartSearch)
80 84
     {
81 85
         $nEnd = 0;
@@ -116,6 +120,10 @@  discard block
 block discarded – undo
116 120
     }
117 121
 
118 122
     // TODO: performance ... scan once at __construct and store line positions
123
+
124
+    /**
125
+     * @param integer $nPos
126
+     */
119 127
     public function findLineOfPos($nPos)
120 128
     {
121 129
         $nLine = 1;
Please login to merge, or discard this patch.
htdocs/lib2/translationHandler.class.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -196,6 +196,11 @@  discard block
 block discarded – undo
196 196
 
197 197
     /* import variables for substition from config2/nodetext/
198 198
      */
199
+
200
+    /**
201
+     * @param string $file
202
+     * @param string $language
203
+     */
199 204
     public function loadNodeTextFile(&$variables, $file, $language)
200 205
     {
201 206
         // generic load
@@ -222,6 +227,9 @@  discard block
 block discarded – undo
222 227
         return false;
223 228
     }
224 229
 
230
+    /**
231
+     * @param string $lang
232
+     */
225 233
     public function substitueVariables(&$variables, $lang, $str)
226 234
     {
227 235
         $langstr = $str;
Please login to merge, or discard this patch.
htdocs/lib2/util.inc.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -246,11 +246,21 @@  discard block
 block discarded – undo
246 246
     return $ret;
247 247
 }
248 248
 
249
+/**
250
+ * @param string $name
251
+ * @param string $default
252
+ *
253
+ * @return string
254
+ */
249 255
 function getSysConfig($name, $default)
250 256
 {
251 257
     return sql_value("SELECT `value` FROM `sysconfig` WHERE `name`='&1'", $default, $name);
252 258
 }
253 259
 
260
+/**
261
+ * @param string $name
262
+ * @param string $value
263
+ */
254 264
 function setSysConfig($name, $value)
255 265
 {
256 266
     sql(
@@ -333,6 +343,9 @@  discard block
 block discarded – undo
333 343
 }
334 344
 
335 345
 
346
+/**
347
+ * @return string
348
+ */
336 349
 function escape_javascript($text)
337 350
 {
338 351
     return str_replace('\'', '\\\'', str_replace('"', '"', $text));
Please login to merge, or discard this patch.
htdocs/mydetails.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -128,6 +128,9 @@
 block discarded – undo
128 128
 }
129 129
 
130 130
 
131
+/**
132
+ * @param boolean $include_editor
133
+ */
131 134
 function assignFromDB($userid, $include_editor)
132 135
 {
133 136
     global $tpl, $opt, $smilies, $_REQUEST;
Please login to merge, or discard this patch.
htdocs/myprofile.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -182,6 +182,9 @@
 block discarded – undo
182 182
     $tpl->display();
183 183
 }
184 184
 
185
+/**
186
+ * @param user $user
187
+ */
185 188
 function assignFromUser($user)
186 189
 {
187 190
     global $tpl;
Please login to merge, or discard this patch.
htdocs/restorecaches.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -675,7 +675,7 @@
 block discarded – undo
675 675
  * @param $admins
676 676
  * @param $wp_oc
677 677
  * @param $r
678
- * @param $field
678
+ * @param string $field
679 679
  * @param $oldvalue
680 680
  * @param $newvalue
681 681
  */
Please login to merge, or discard this patch.
htdocs/search.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -1461,6 +1461,10 @@
 block discarded – undo
1461 1461
         }
1462 1462
 
1463 1463
         // helper function for output modules
1464
+
1465
+        /**
1466
+         * @param string $str
1467
+         */
1464 1468
         function append_output($str)
1465 1469
         {
1466 1470
             global $db, $content, $bUseZip;
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/ChildWp/PresenterChildWp.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -54,6 +54,9 @@  discard block
 block discarded – undo
54 54
         $this->onDoSubmit($this->coordinate->getCoordinate(), $this->getDesc());
55 55
     }
56 56
 
57
+    /**
58
+     * @param \Oc\Libse\Coordinate\CoordinateCoordinate $coordinate
59
+     */
57 60
     abstract protected function onDoSubmit($coordinate, $description);
58 61
 
59 62
     protected function getType()
@@ -74,6 +77,9 @@  discard block
 block discarded – undo
74 77
         $this->typeImages = $childWpHandler->getChildNamesAndImages();
75 78
     }
76 79
 
80
+    /**
81
+     * @param \Oc\Libse\Coordinate\CoordinateCoordinate $coords
82
+     */
77 83
     public function initCoordinate($coords)
78 84
     {
79 85
         $this->coordinate->init($coords->latitude(), $coords->longitude());
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/Coordinate/PresenterCoordinate.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@  discard block
 block discarded – undo
35 35
         $this->init(0, 0);
36 36
     }
37 37
 
38
+    /**
39
+     * @param boolean $request
40
+     */
38 41
     private function initRequest($request)
39 42
     {
40 43
         if ($request) {
@@ -44,6 +47,9 @@  discard block
 block discarded – undo
44 47
         return new RequestHttp();
45 48
     }
46 49
 
50
+    /**
51
+     * @param boolean $translator
52
+     */
47 53
     private function initTranslator($translator)
48 54
     {
49 55
         if ($translator) {
Please login to merge, or discard this patch.