Completed
Pull Request — master (#2252)
by ྅༻ Ǭɀħ
02:31
created
includes/functions-l10n.php 1 patch
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -117,7 +117,6 @@  discard block
 block discarded – undo
117 117
  * @since 1.6
118 118
  *
119 119
  * @param string $pattern Text to translate
120
- * @param string $arg1, $arg2... Optional: sprintf tokens, and translation domain
121 120
  * @return string Translated text
122 121
  */
123 122
 function yourls_s( $pattern ) {
@@ -158,8 +157,7 @@  discard block
 block discarded – undo
158 157
  * @see sprintf()
159 158
  * @since 1.6
160 159
  *
161
- * @param string $text Text to translate
162
- * @param string $arg1, $arg2... Optional: sprintf tokens, and translation domain
160
+ * @param string $pattern
163 161
  * @return string Translated text
164 162
  */
165 163
 function yourls_se( $pattern ) {
@@ -347,6 +345,7 @@  discard block
 block discarded – undo
347 345
  * @see yourls_n()
348 346
  * @see yourls_x()
349 347
  *
348
+ * @param integer $number
350 349
  */
351 350
 function yourls_nx($single, $plural, $number, $context, $domain = 'default') {
352 351
 	$translations = yourls_get_translations_for_domain( $domain );
@@ -503,7 +502,7 @@  discard block
 block discarded – undo
503 502
  * translated (.mo) file is named based on the locale.
504 503
  *
505 504
  * @since 1.6
506
- * @return bool True on success, false on failure
505
+ * @return boolean|null True on success, false on failure
507 506
  */
508 507
 function yourls_load_default_textdomain() {
509 508
 	$yourls_locale = yourls_get_locale();
@@ -517,7 +516,7 @@  discard block
 block discarded – undo
517 516
  * returns empty Translations instance.
518 517
  *
519 518
  * @param string $domain
520
- * @return object A Translation instance
519
+ * @return NOOPTranslations A Translation instance
521 520
  */
522 521
 function yourls_get_translations_for_domain( $domain ) {
523 522
 	global $yourls_l10n;
@@ -683,7 +682,7 @@  discard block
 block discarded – undo
683 682
  * @since 1.6
684 683
  *
685 684
  * @param string $type Either 'mysql' or 'timestamp'.
686
- * @param int|bool $gmt Optional. Whether to use GMT timezone. Default is false.
685
+ * @param integer $gmt Optional. Whether to use GMT timezone. Default is false.
687 686
  * @return int|string String if $type is 'gmt', int if $type is 'timestamp'.
688 687
  */
689 688
 function yourls_current_time( $type, $gmt = 0 ) {
@@ -1040,7 +1039,7 @@  discard block
 block discarded – undo
1040 1039
  *
1041 1040
  * @param string $domain Unique identifier (the "domain") for retrieving translated strings
1042 1041
  * @param string $path Full path to directory containing MO files.
1043
- * @return mixed Returns nothing if locale undefined, otherwise return bool: true on success, false on failure
1042
+ * @return boolean|null Returns nothing if locale undefined, otherwise return bool: true on success, false on failure
1044 1043
  */
1045 1044
 function yourls_load_custom_textdomain( $domain, $path ) {
1046 1045
 	$locale = yourls_apply_filter( 'load_custom_textdomain', yourls_get_locale(), $domain );
Please login to merge, or discard this patch.
includes/vendor/composer/autoload_static.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@
 block discarded – undo
41 41
         ),
42 42
     );
43 43
 
44
+    /**
45
+     * @return callable
46
+     */
44 47
     public static function getInitializer(ClassLoader $loader)
45 48
     {
46 49
         return \Closure::bind(function () use ($loader) {
Please login to merge, or discard this patch.
includes/vendor/composer/ClassLoader.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -367,6 +367,10 @@
 block discarded – undo
367 367
         return $file;
368 368
     }
369 369
 
370
+    /**
371
+     * @param string $class
372
+     * @param string $ext
373
+     */
370 374
     private function findFileWithExtension($class, $ext)
371 375
     {
372 376
         // PSR-4 lookup
Please login to merge, or discard this patch.
includes/vendor/pomo/pomo/src/MO.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -182,6 +182,9 @@
 block discarded – undo
182 182
         }
183 183
     }
184 184
 
185
+    /**
186
+     * @param FileReader $reader
187
+     */
185 188
     public function import_from_reader($reader)
186 189
     {
187 190
         $endian_string = $this->get_byteorder($reader->readint32());
Please login to merge, or discard this patch.
includes/vendor/pomo/pomo/src/PO.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      * Builds a string from the entry for inclusion in PO file
241 241
      *
242 242
      * @param  object      &$entry the entry to convert to po string
243
-     * @return string|bool PO-style formatted string for the entry or
243
+     * @return false|string PO-style formatted string for the entry or
244 244
      *                            false if the entry is empty
245 245
      */
246 246
     public static function export_entry(&$entry)
@@ -460,6 +460,9 @@  discard block
 block discarded – undo
460 460
         return $line;
461 461
     }
462 462
 
463
+    /**
464
+     * @param string $po_comment_line
465
+     */
463 466
     public function add_comment_to_entry(&$entry, $po_comment_line)
464 467
     {
465 468
         $first_two = substr($po_comment_line, 0, 2);
Please login to merge, or discard this patch.
includes/vendor/pomo/pomo/src/Streams/FileReader.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -15,12 +15,18 @@
 block discarded – undo
15 15
  */
16 16
 class FileReader extends Reader
17 17
 {
18
+    /**
19
+     * @param string $filename
20
+     */
18 21
     public function __construct($filename)
19 22
     {
20 23
         parent::__construct();
21 24
         $this->_f = fopen($filename, 'rb');
22 25
     }
23 26
 
27
+    /**
28
+     * @param integer $bytes
29
+     */
24 30
     public function read($bytes)
25 31
     {
26 32
         return fread($this->_f, $bytes);
Please login to merge, or discard this patch.
includes/vendor/pomo/pomo/src/Translations/GettextTranslations.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      *
52 52
      * @param  integer $nplurals
53 53
      * @param  string  $expression
54
-     * @return integer The right translation index
54
+     * @return string The right translation index
55 55
      */
56 56
     public function make_plural_form_function($nplurals, $expression)
57 57
     {
Please login to merge, or discard this patch.