Skip to content

Commit ee050f4

Browse files
Merge branch '2.7' into 2.8
* 2.7: [Intl] Make intl-data tests pass and save language aliases again Remove useless docblocks
2 parents abf805c + 99a1f6d commit ee050f4

File tree

8 files changed

+13
-22
lines changed

8 files changed

+13
-22
lines changed

Dumper/CsvFileDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public function formatCatalogue(MessageCatalogue $messages, $domain, array $opti
5454
/**
5555
* Sets the delimiter and escape character for CSV.
5656
*
57-
* @param string $delimiter delimiter character
58-
* @param string $enclosure enclosure character
57+
* @param string $delimiter Delimiter character
58+
* @param string $enclosure Enclosure character
5959
*/
6060
public function setCsvControl($delimiter = ';', $enclosure = '"')
6161
{

Extractor/AbstractFileExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
abstract class AbstractFileExtractor
2020
{
2121
/**
22-
* @param string|array $resource files, a file or a directory
22+
* @param string|array $resource Files, a file or a directory
2323
*
2424
* @return array
2525
*/
@@ -75,7 +75,7 @@ protected function isFile($file)
7575
abstract protected function canBeExtracted($file);
7676

7777
/**
78-
* @param string|array $resource files, a file or a directory
78+
* @param string|array $resource Files, a file or a directory
7979
*
8080
* @return array files to be extracted
8181
*/

Extractor/ExtractorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface ExtractorInterface
2424
/**
2525
* Extracts translation messages from files, a file or a directory to the catalogue.
2626
*
27-
* @param string|array $resource files, a file or a directory
27+
* @param string|array $resource Files, a file or a directory
2828
* @param MessageCatalogue $catalogue The catalogue
2929
*/
3030
public function extract($resource, MessageCatalogue $catalogue);

Loader/CsvFileLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ protected function loadResource($resource)
5252
/**
5353
* Sets the delimiter, enclosure, and escape character for CSV.
5454
*
55-
* @param string $delimiter delimiter character
56-
* @param string $enclosure enclosure character
57-
* @param string $escape escape character
55+
* @param string $delimiter Delimiter character
56+
* @param string $enclosure Enclosure character
57+
* @param string $escape Escape character
5858
*/
5959
public function setCsvControl($delimiter = ';', $enclosure = '"', $escape = '\\')
6060
{

Loader/IcuResFileLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public function load($resource, $locale, $domain = 'messages')
7070
*
7171
* This function takes an array by reference and will modify it
7272
*
73-
* @param \ResourceBundle $rb the ResourceBundle that will be flattened
74-
* @param array $messages used internally for recursive calls
75-
* @param string $path current path being parsed, used internally for recursive calls
73+
* @param \ResourceBundle $rb The ResourceBundle that will be flattened
74+
* @param array $messages Used internally for recursive calls
75+
* @param string $path Current path being parsed, used internally for recursive calls
7676
*
7777
* @return array the flattened ResourceBundle
7878
*/

Loader/MoFileLoader.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,17 @@ class MoFileLoader extends FileLoader
2121
/**
2222
* Magic used for validating the format of a MO file as well as
2323
* detecting if the machine used to create that file was little endian.
24-
*
25-
* @var float
2624
*/
2725
const MO_LITTLE_ENDIAN_MAGIC = 0x950412de;
2826

2927
/**
3028
* Magic used for validating the format of a MO file as well as
3129
* detecting if the machine used to create that file was big endian.
32-
*
33-
* @var float
3430
*/
3531
const MO_BIG_ENDIAN_MAGIC = 0xde120495;
3632

3733
/**
3834
* The size of the header of a MO file in bytes.
39-
*
40-
* @var int Number of bytes
4135
*/
4236
const MO_HEADER_SIZE = 28;
4337

LoggingTranslator.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ class LoggingTranslator implements TranslatorInterface, TranslatorBagInterface
2323
*/
2424
private $translator;
2525

26-
/**
27-
* @var LoggerInterface
28-
*/
2926
private $logger;
3027

3128
/**

Tests/PluralizationRulesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public function failingLangcodes()
9191
/**
9292
* We validate only on the plural coverage. Thus the real rules is not tested.
9393
*
94-
* @param string $nplural plural expected
95-
* @param array $matrix containing langcodes and their plural index values
94+
* @param string $nplural Plural expected
95+
* @param array $matrix Containing langcodes and their plural index values
9696
* @param bool $expectSuccess
9797
*/
9898
protected function validateMatrix($nplural, $matrix, $expectSuccess = true)

0 commit comments

Comments
 (0)