Skip to content

Commit 8c8d476

Browse files
@throws annotations should go after @return
1 parent e75d88c commit 8c8d476

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

Extractor/AbstractFileExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ private function toSplFileInfo($file)
5454
/**
5555
* @param string $file
5656
*
57-
* @throws \InvalidArgumentException
58-
*
5957
* @return bool
58+
*
59+
* @throws \InvalidArgumentException
6060
*/
6161
protected function isFile($file)
6262
{

Loader/XliffFileLoader.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,9 @@ private function utf8ToCharset($content, $encoding = null)
112112
*
113113
* @param string $file
114114
*
115-
* @throws \RuntimeException
116-
*
117115
* @return \SimpleXMLElement
118116
*
117+
* @throws \RuntimeException
119118
* @throws InvalidResourceException
120119
*/
121120
private function parseFile($file)

TranslatorBagInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ interface TranslatorBagInterface
2323
*
2424
* @param string|null $locale The locale or null to use the default
2525
*
26-
* @throws \InvalidArgumentException If the locale contains invalid characters
27-
*
2826
* @return MessageCatalogueInterface
27+
*
28+
* @throws \InvalidArgumentException If the locale contains invalid characters
2929
*/
3030
public function getCatalogue($locale = null);
3131
}

TranslatorInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ interface TranslatorInterface
2626
* @param string|null $domain The domain for the message or null to use the default
2727
* @param string|null $locale The locale or null to use the default
2828
*
29-
* @throws \InvalidArgumentException If the locale contains invalid characters
30-
*
3129
* @return string The translated string
30+
*
31+
* @throws \InvalidArgumentException If the locale contains invalid characters
3232
*/
3333
public function trans($id, array $parameters = array(), $domain = null, $locale = null);
3434

@@ -41,9 +41,9 @@ public function trans($id, array $parameters = array(), $domain = null, $locale
4141
* @param string|null $domain The domain for the message or null to use the default
4242
* @param string|null $locale The locale or null to use the default
4343
*
44-
* @throws \InvalidArgumentException If the locale contains invalid characters
45-
*
4644
* @return string The translated string
45+
*
46+
* @throws \InvalidArgumentException If the locale contains invalid characters
4747
*/
4848
public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null);
4949

0 commit comments

Comments
 (0)