Test Failed
Push — master ( 4eb591...3e14b5 )
by Stiofan
20:20
created
geodirectory-admin/admin_hooks_actions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1844,6 +1844,7 @@  discard block
 block discarded – undo
1844 1844
  * @since 1.0.0
1845 1845
  * @package GeoDirectory
1846 1846
  * @global object $current_user Current user object.
1847
+ * @param string|null $input
1847 1848
  * @return array Returns parsed data as array.
1848 1849
  */
1849 1850
 function geodir_str_getcsv($input, $delimiter = ",", $enclosure = '"', $escape = "\\")
@@ -2373,7 +2374,6 @@  discard block
 block discarded – undo
2373 2374
  *
2374 2375
  * @since 1.6.9
2375 2376
  *
2376
- * @param array $settings Array of GeoDirectory general settings.
2377 2377
  * @return array Array of settings.
2378 2378
  */
2379 2379
 function geodir_uninstall_settings($general_settings) {
Please login to merge, or discard this patch.
geodirectory-admin/class.analytics.stats.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -223,6 +223,9 @@
 block discarded – undo
223 223
 	 * @param filter - the property to filter on
224 224
 	 * @param limit - the number of items to get
225 225
 	 * @param realtime - if the realtime api should be used
226
+	 * @param string $metric
227
+	 * @param string $startDate
228
+	 * @param string $endDate
226 229
 	 * @return the specific metrics in array form
227 230
 	 **/
228 231
 	function getMetrics($metric, $startDate, $endDate, $dimensions = false, $sort = false, $filter = false, $limit = false, $realtime = false)
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Auth/OAuth2.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
    * @param [$issuer] the expected issues, defaults to Google
501 501
    * @param [$max_expiry] the max lifetime of a token, defaults to MAX_TOKEN_LIFETIME_SECS
502 502
    * @throws Google_Auth_Exception
503
-   * @return mixed token information if valid, false if not
503
+   * @return Google_Auth_LoginTicket token information if valid, false if not
504 504
    */
505 505
   public function verifySignedJwtWithCerts(
506 506
       $jwt,
@@ -626,6 +626,7 @@  discard block
 block discarded – undo
626 626
 
627 627
   /**
628 628
    * Add a parameter to the auth params if not empty string.
629
+   * @param string $name
629 630
    */
630 631
   private function maybeAddParam($params, $name)
631 632
   {
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Cache/File.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -129,6 +129,9 @@  discard block
 block discarded – undo
129 129
     );
130 130
   }
131 131
 
132
+  /**
133
+   * @param string $file
134
+   */
132 135
   private function getWriteableCacheFile($file)
133 136
   {
134 137
     return $this->getCacheFile($file, true);
@@ -139,6 +142,9 @@  discard block
 block discarded – undo
139 142
     return $this->getCacheDir($file, $forWrite) . '/' . md5($file);
140 143
   }
141 144
 
145
+  /**
146
+   * @param boolean $forWrite
147
+   */
142 148
   private function getCacheDir($file, $forWrite)
143 149
   {
144 150
     // use the first 2 characters of the hash as a directory prefix
@@ -157,11 +163,17 @@  discard block
 block discarded – undo
157 163
     return $storageDir;
158 164
   }
159 165
 
166
+  /**
167
+   * @param string $storageFile
168
+   */
160 169
   private function acquireReadLock($storageFile)
161 170
   {
162 171
     return $this->acquireLock(LOCK_SH, $storageFile);
163 172
   }
164 173
 
174
+  /**
175
+   * @param string $storageFile
176
+   */
165 177
   private function acquireWriteLock($storageFile)
166 178
   {
167 179
     $rc = $this->acquireLock(LOCK_EX, $storageFile);
@@ -175,6 +187,9 @@  discard block
 block discarded – undo
175 187
     return $rc;
176 188
   }
177 189
 
190
+  /**
191
+   * @param integer $type
192
+   */
178 193
   private function acquireLock($type, $storageFile)
179 194
   {
180 195
     $mode = $type == LOCK_EX ? "w" : "r";
@@ -197,6 +212,9 @@  discard block
 block discarded – undo
197 212
     return true;
198 213
   }
199 214
 
215
+  /**
216
+   * @param string $storageFile
217
+   */
200 218
   public function unlock($storageFile)
201 219
   {
202 220
     if ($this->fh) {
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Client.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 
192 192
   /**
193 193
    * @throws Google_Auth_Exception
194
-   * @return array
194
+   * @return string
195 195
    * @visible For Testing
196 196
    */
197 197
   public function prepareScopes()
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
    * @param $audience string the expected consumer of the token
491 491
    * @param $issuer string the expected issuer, defaults to Google
492 492
    * @param [$max_expiry] the max lifetime of a token, defaults to MAX_TOKEN_LIFETIME_SECS
493
-   * @return mixed token information if valid, false if not
493
+   * @return Google_Auth_LoginTicket token information if valid, false if not
494 494
    */
495 495
   public function verifySignedJwt($id_token, $cert_location, $audience, $issuer, $max_expiry = null)
496 496
   {
@@ -512,6 +512,7 @@  discard block
 block discarded – undo
512 512
    * Will remove any previously configured scopes.
513 513
    * @param array $scopes, ie: array('https://www.googleapis.com/auth/plus.login',
514 514
    * 'https://www.googleapis.com/auth/moderator')
515
+   * @param string[] $scopes
515 516
    */
516 517
   public function setScopes($scopes)
517 518
   {
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Http/Request.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
   
80 80
   /**
81 81
    * Set the base URL that path and query parameters will be added to.
82
-   * @param $baseComponent string
82
+   * @param string $baseComponent string
83 83
    */
84 84
   public function setBaseComponent($baseComponent)
85 85
   {
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
   /**
134 134
    * Set a new query parameter.
135
-   * @param $key - string to set, does not need to be URL encoded
135
+   * @param string $key - string to set, does not need to be URL encoded
136 136
    * @param $value - string to set, does not need to be URL encoded
137 137
    */
138 138
   public function setQueryParam($key, $value)
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
   }
142 142
 
143 143
   /**
144
-   * @return string HTTP Response Code.
144
+   * @return integer HTTP Response Code.
145 145
    */
146 146
   public function getResponseHttpCode()
147 147
   {
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Logger/Abstract.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
   /**
262 262
    * Logs with an arbitrary level.
263 263
    *
264
-   * @param mixed $level    The log level
264
+   * @param string $level    The log level
265 265
    * @param string $message The log message
266 266
    * @param array $context  The log context
267 267
    */
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
   /**
381 381
    * Converts a given log level to the integer form.
382 382
    *
383
-   * @param  mixed $level   The logging level
383
+   * @param  integer $level   The logging level
384 384
    * @return integer $level The normalized level
385 385
    * @throws Google_Logger_Exception If $level is invalid
386 386
    */
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Model.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
   /**
222 222
    * Given a variable name, discover its type.
223 223
    *
224
-   * @param $name
224
+   * @param string $name
225 225
    * @param $item
226 226
    * @return object The object from the item.
227 227
    */
@@ -278,6 +278,9 @@  discard block
 block discarded – undo
278 278
     return $key . "Type";
279 279
   }
280 280
 
281
+  /**
282
+   * @param string $key
283
+   */
281 284
   protected function dataType($key)
282 285
   {
283 286
     return $key . "DataType";
Please login to merge, or discard this patch.
google-api-php-client/src/Google/Service/AdExchangeBuyer.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
    * (accounts.patch)
436 436
    *
437 437
    * @param int $id The account id
438
-   * @param Google_Account $postBody
438
+   * @param Google_Service_AdExchangeBuyer_Account $postBody
439 439
    * @param array $optParams Optional parameters.
440 440
    * @return Google_Service_AdExchangeBuyer_Account
441 441
    */
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
    * Updates an existing account. (accounts.update)
451 451
    *
452 452
    * @param int $id The account id
453
-   * @param Google_Account $postBody
453
+   * @param Google_Service_AdExchangeBuyer_Account $postBody
454 454
    * @param array $optParams Optional parameters.
455 455
    * @return Google_Service_AdExchangeBuyer_Account
456 456
    */
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
    * updated.
540 540
    * @param string $billingId The billing id associated with the budget being
541 541
    * updated.
542
-   * @param Google_Budget $postBody
542
+   * @param Google_Service_AdExchangeBuyer_Budget $postBody
543 543
    * @param array $optParams Optional parameters.
544 544
    * @return Google_Service_AdExchangeBuyer_Budget
545 545
    */
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
    * updated.
560 560
    * @param string $billingId The billing id associated with the budget being
561 561
    * updated.
562
-   * @param Google_Budget $postBody
562
+   * @param Google_Service_AdExchangeBuyer_Budget $postBody
563 563
    * @param array $optParams Optional parameters.
564 564
    * @return Google_Service_AdExchangeBuyer_Budget
565 565
    */
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
   /**
602 602
    * Submit a new creative. (creatives.insert)
603 603
    *
604
-   * @param Google_Creative $postBody
604
+   * @param Google_Service_AdExchangeBuyer_Creative $postBody
605 605
    * @param array $optParams Optional parameters.
606 606
    * @return Google_Service_AdExchangeBuyer_Creative
607 607
    */
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
    *
763 763
    * @param string $accountId The account id to insert the pretargeting config
764 764
    * for.
765
-   * @param Google_PretargetingConfig $postBody
765
+   * @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody
766 766
    * @param array $optParams Optional parameters.
767 767
    * @return Google_Service_AdExchangeBuyer_PretargetingConfig
768 768
    */
@@ -795,7 +795,7 @@  discard block
 block discarded – undo
795 795
    * @param string $accountId The account id to update the pretargeting config
796 796
    * for.
797 797
    * @param string $configId The specific id of the configuration to update.
798
-   * @param Google_PretargetingConfig $postBody
798
+   * @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody
799 799
    * @param array $optParams Optional parameters.
800 800
    * @return Google_Service_AdExchangeBuyer_PretargetingConfig
801 801
    */
@@ -812,7 +812,7 @@  discard block
 block discarded – undo
812 812
    * @param string $accountId The account id to update the pretargeting config
813 813
    * for.
814 814
    * @param string $configId The specific id of the configuration to update.
815
-   * @param Google_PretargetingConfig $postBody
815
+   * @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody
816 816
    * @param array $optParams Optional parameters.
817 817
    * @return Google_Service_AdExchangeBuyer_PretargetingConfig
818 818
    */
Please login to merge, or discard this patch.