Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed most of the docblocks/unused namespaces

  • Loading branch information...
commit 11ef179d313afca983b3be2063f082b6a40a2a8c 1 parent 80dd709
@dlsniper dlsniper authored fabpot committed
View
4 Interval.php
@@ -38,6 +38,10 @@ class Interval
*
* @param integer $number A number
* @param string $interval An interval
+ *
+ * @return Boolean
+ *
+ * @throws \InvalidArgumentException
*/
public static function test($number, $interval)
{
View
4 Loader/XliffFileLoader.php
@@ -61,6 +61,8 @@ public function load($resource, $locale, $domain = 'messages')
* @param string $file
*
* @return \SimpleXMLElement
+ *
+ * @throws InvalidResourceException
*/
private function parseFile($file)
{
@@ -115,6 +117,8 @@ private function parseFile($file)
/**
* Returns the XML errors of the internal XML parser
*
+ * @param Boolean $internalErrors
+ *
* @return array An array of errors
*/
private function getXmlErrors($internalErrors)
View
2  MetadataAwareInterface.php
@@ -11,8 +11,6 @@
namespace Symfony\Component\Translation;
-use Symfony\Component\Config\Resource\ResourceInterface;
-
/**
* MetadataAwareInterface.
*
View
2  PluralizationRules.php
@@ -194,6 +194,8 @@ public static function get($number, $locale)
* @param string $locale The locale
*
* @return null
+ *
+ * @throws \LogicException
*/
public static function set($rule, $locale)
{
View
2  Writer/TranslationWriter.php
@@ -55,6 +55,8 @@ public function getFormats()
* @param MessageCatalogue $catalogue The message catalogue to dump
* @param string $format The format to use to dump the messages
* @param array $options Options that are passed to the dumper
+ *
+ * @throws \InvalidArgumentException
*/
public function writeTranslations(MessageCatalogue $catalogue, $format, $options = array())
{
Please sign in to comment.
Something went wrong with that request. Please try again.