Completed
Push — development ( 1b87d2...43bb99 )
by Thomas
06:02
created
htdocs/lib2/logic/cachelist.class.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -146,6 +146,9 @@  discard block
 block discarded – undo
146 146
         return $this->reCachelist->setValue('description', $desc);
147 147
     }
148 148
 
149
+    /**
150
+     * @param string $pw
151
+     */
149 152
     public function setPassword($pw)
150 153
     {
151 154
         $this->reCachelist->setValue('password', $pw);
@@ -226,6 +229,9 @@  discard block
 block discarded – undo
226 229
         return sql_fetch_assoc_table($rs);
227 230
     }
228 231
 
232
+    /**
233
+     * @param string $wp
234
+     */
229 235
     public function addCacheByWP($wp)
230 236
     {
231 237
         $cache = cache::fromWP($wp);
@@ -262,6 +268,9 @@  discard block
 block discarded – undo
262 268
         return $this->addCache(new cache($cache_id));
263 269
     }
264 270
 
271
+    /**
272
+     * @param cache $cache
273
+     */
265 274
     public function addCache($cache)
266 275
     {
267 276
         if (!$cache->exist() || !$cache->allowView()) {
@@ -497,6 +506,9 @@  discard block
 block discarded – undo
497 506
         return false;
498 507
     }
499 508
 
509
+    /**
510
+     * @param string $condition
511
+     */
500 512
     private static function getLists(
501 513
         $condition,
502 514
         $prio = 0,
Please login to merge, or discard this patch.
htdocs/lib2/logic/countriesList.class.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -92,6 +92,9 @@
 block discarded – undo
92 92
         return $returnValue;
93 93
     }
94 94
 
95
+    /**
96
+     * @param boolean $showall
97
+     */
95 98
     public function getRS($selectedId, $showall)
96 99
     {
97 100
         if ($showall != false) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public function isDefault($id)
27 27
     {
28
-        $isDefault = (int) sql_value(
28
+        $isDefault = (int)sql_value(
29 29
             "SELECT COUNT(*) FROM `countries_list_default` WHERE `lang`='&1' AND `show`='&2'",
30 30
             0,
31 31
             $this->locale,
Please login to merge, or discard this patch.
htdocs/lib2/logic/labels.inc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -164,6 +164,9 @@  discard block
 block discarded – undo
164 164
         self::$aLabels[$name] = unserialize($serialized);
165 165
     }
166 166
 
167
+    /**
168
+     * @param string $name
169
+     */
167 170
     public static function getLabels($name)
168 171
     {
169 172
         if (isset(self::$aLabels[$name])) {
@@ -173,6 +176,9 @@  discard block
 block discarded – undo
173 176
         return false;
174 177
     }
175 178
 
179
+    /**
180
+     * @param string $name
181
+     */
176 182
     public static function getLabelValue($name, $id)
177 183
     {
178 184
         if (isset(self::$aLabels[$name])) {
Please login to merge, or discard this patch.
htdocs/lib2/logic/logtypes.inc.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -122,12 +122,19 @@
 block discarded – undo
122 122
 }
123 123
 
124 124
 
125
+/**
126
+ * @param integer $cache_id
127
+ * @param integer $old_logtype
128
+ */
125 129
 function logtype_ok($cache_id, $logtype_id, $old_logtype, $statusLogs = true)
126 130
 {
127 131
     return in_array($logtype_id, get_cache_log_types($cache_id, $old_logtype, $statusLogs));
128 132
 }
129 133
 
130 134
 
135
+/**
136
+ * @param integer $cache_id
137
+ */
131 138
 function teamcomment_allowed($cache_id, $logtype_id, $old_teamcomment = false)
132 139
 {
133 140
     global $login, $opt;
Please login to merge, or discard this patch.
htdocs/lib2/logic/statpic.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
 
10 10
     public $reUser;
11 11
 
12
+    /**
13
+     * @param integer $nNewUserId
14
+     */
12 15
     public function __construct($nNewUserId)
13 16
     {
14 17
         $this->reUser = new rowEditor('user');
Please login to merge, or discard this patch.
htdocs/sitemap.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -27,6 +27,10 @@
 block discarded – undo
27 27
     return $aItems;
28 28
 }
29 29
 
30
+/**
31
+ * @param integer $parentId
32
+ * @param integer $sublevel
33
+ */
30 34
 function pAppendSites($parentId, $viewall, $sublevel, &$aItems)
31 35
 {
32 36
     global $opt;
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/Coordinate/CoordinateCoordinate.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -22,6 +22,10 @@
 block discarded – undo
22 22
         $this->longitude = $longitude;
23 23
     }
24 24
 
25
+    /**
26
+     * @param boolean $latHem
27
+     * @param boolean $lonHem
28
+     */
25 29
     public static function fromHemDegMin($latHem, $latDeg, $latMin, $lonHem, $lonDeg, $lonMin)
26 30
     {
27 31
         $latitude = self::hemDegMinToFloat($latHem, $latDeg, $latMin);
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/autoarchive_caches.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -131,6 +131,9 @@
 block discarded – undo
131 131
         sql_free_result($rs);
132 132
     }
133 133
 
134
+    /**
135
+     * @param string $comment
136
+     */
134 137
     public function archiveCache($cache_id, $comment, $months = 0)
135 138
     {
136 139
         global $login, $translate;
Please login to merge, or discard this patch.
htdocs/adminreports.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
 /** @var Connection $connection */
25 25
 $connection = AppKernel::Container()->get(Connection::class);
26 26
 
27
-$id = (int) isset($_REQUEST['id']) ? $_REQUEST['id'] : 0;
28
-$rId = (int) isset($_REQUEST['rid']) ? $_REQUEST['rid'] : 0;
29
-$cacheId = (int) isset($_REQUEST['cacheid']) ? $_REQUEST['cacheid'] : 0;
30
-$ownerId = (int) isset($_REQUEST['ownerid']) ? $_REQUEST['ownerid'] : 0;
27
+$id = (int)isset($_REQUEST['id']) ? $_REQUEST['id'] : 0;
28
+$rId = (int)isset($_REQUEST['rid']) ? $_REQUEST['rid'] : 0;
29
+$cacheId = (int)isset($_REQUEST['cacheid']) ? $_REQUEST['cacheid'] : 0;
30
+$ownerId = (int)isset($_REQUEST['ownerid']) ? $_REQUEST['ownerid'] : 0;
31 31
 
32 32
 $reportData = $connection
33 33
     ->fetchAssoc(
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
         ['id' => $rId]
38 38
     );
39 39
 
40
-$reporterId = (int) $reportData['userid'];
41
-$adminId = (int) $reportData['adminid'];
40
+$reporterId = (int)$reportData['userid'];
41
+$adminId = (int)$reportData['adminid'];
42 42
 $age = $reportData['age'];
43 43
 
44 44
 if (isset($_REQUEST['savecomment'])) {
Please login to merge, or discard this patch.