Permalink
Browse files

fixed CS

  • Loading branch information...
1 parent db3e859 commit 1b50bdbbd88e091a9fdd362b3a0c5e1fb93cf53f @fabpot fabpot committed Jul 9, 2012
@@ -27,5 +27,5 @@
* @param MessageCatalogue $messages The message catalogue
* @param array $options Options that are used by the dumper
*/
- function dump(MessageCatalogue $messages, $options = array());
+ public function dump(MessageCatalogue $messages, $options = array());
}
@@ -113,7 +113,7 @@ private function writePadding($data)
{
$padding = strlen($data) % 4;
- if ($padding ) {
+ if ($padding) {
return str_repeat("\xAA", 4 - $padding);
}
}
@@ -27,12 +27,12 @@
* @param string $directory The path to look into
* @param MessageCatalogue $catalogue The catalogue
*/
- function extract($directory, MessageCatalogue $catalogue);
+ public function extract($directory, MessageCatalogue $catalogue);
/**
* Sets the prefix that should be used for new found messages.
*
* @param string $prefix The prefix
*/
- function setPrefix($prefix);
+ public function setPrefix($prefix);
}
View
@@ -39,7 +39,7 @@ class Interval
* @param integer $number A number
* @param string $interval An interval
*/
- static public function test($number, $interval)
+ public static function test($number, $interval)
{
$interval = trim($interval);
@@ -71,7 +71,7 @@ static public function test($number, $interval)
*
* @return string A Regexp (without the delimiters)
*/
- static public function getIntervalRegexp()
+ public static function getIntervalRegexp()
{
return <<<EOF
({\s*
@@ -90,7 +90,7 @@ static public function getIntervalRegexp()
EOF;
}
- static private function convertNumber($number)
+ private static function convertNumber($number)
{
if ('-Inf' === $number) {
return log(0);
@@ -33,5 +33,5 @@
*
* @api
*/
- function load($resource, $locale, $domain = 'messages');
+ public function load($resource, $locale, $domain = 'messages');
}
@@ -29,7 +29,7 @@
*
* @api
*/
- function getLocale();
+ public function getLocale();
/**
* Gets the domains.
@@ -38,7 +38,7 @@ function getLocale();
*
* @api
*/
- function getDomains();
+ public function getDomains();
/**
* Gets the messages within a given domain.
@@ -51,7 +51,7 @@ function getDomains();
*
* @api
*/
- function all($domain = null);
+ public function all($domain = null);
/**
* Sets a message translation.
@@ -62,7 +62,7 @@ function all($domain = null);
*
* @api
*/
- function set($id, $translation, $domain = 'messages');
+ public function set($id, $translation, $domain = 'messages');
/**
* Checks if a message has a translation.
@@ -74,7 +74,7 @@ function set($id, $translation, $domain = 'messages');
*
* @api
*/
- function has($id, $domain = 'messages');
+ public function has($id, $domain = 'messages');
/**
* Checks if a message has a translation (it does not take into account the fallback mechanism).
@@ -86,7 +86,7 @@ function has($id, $domain = 'messages');
*
* @api
*/
- function defines($id, $domain = 'messages');
+ public function defines($id, $domain = 'messages');
/**
* Gets a message translation.
@@ -98,7 +98,7 @@ function defines($id, $domain = 'messages');
*
* @api
*/
- function get($id, $domain = 'messages');
+ public function get($id, $domain = 'messages');
/**
* Sets translations for a given domain.
@@ -108,7 +108,7 @@ function get($id, $domain = 'messages');
*
* @api
*/
- function replace($messages, $domain = 'messages');
+ public function replace($messages, $domain = 'messages');
/**
* Adds translations for a given domain.
@@ -118,7 +118,7 @@ function replace($messages, $domain = 'messages');
*
* @api
*/
- function add($messages, $domain = 'messages');
+ public function add($messages, $domain = 'messages');
/**
* Merges translations from the given Catalogue into the current one.
@@ -129,7 +129,7 @@ function add($messages, $domain = 'messages');
*
* @api
*/
- function addCatalogue(MessageCatalogueInterface $catalogue);
+ public function addCatalogue(MessageCatalogueInterface $catalogue);
/**
* Merges translations from the given Catalogue into the current one
@@ -141,7 +141,7 @@ function addCatalogue(MessageCatalogueInterface $catalogue);
*
* @api
*/
- function addFallbackCatalogue(MessageCatalogueInterface $catalogue);
+ public function addFallbackCatalogue(MessageCatalogueInterface $catalogue);
/**
* Gets the fallback catalogue.
@@ -150,7 +150,7 @@ function addFallbackCatalogue(MessageCatalogueInterface $catalogue);
*
* @api
*/
- function getFallbackCatalogue();
+ public function getFallbackCatalogue();
/**
* Returns an array of resources loaded to build this collection.
@@ -159,7 +159,7 @@ function getFallbackCatalogue();
*
* @api
*/
- function getResources();
+ public function getResources();
/**
* Adds a resource for this collection.
@@ -168,5 +168,5 @@ function getResources();
*
* @api
*/
- function addResource(ResourceInterface $resource);
+ public function addResource(ResourceInterface $resource);
}
@@ -19,7 +19,7 @@
class PluralizationRules
{
// @codeCoverageIgnoreStart
- static private $rules = array();
+ private static $rules = array();
/**
* Returns the plural position to use for the given locale and number.
@@ -29,7 +29,7 @@ class PluralizationRules
*
* @return integer The plural position
*/
- static public function get($number, $locale)
+ public static function get($number, $locale)
{
if ("pt_BR" == $locale) {
// temporary set a locale for brazilian
@@ -195,7 +195,7 @@ static public function get($number, $locale)
*
* @return null
*/
- static public function set($rule, $locale)
+ public static function set($rule, $locale)
{
if ("pt_BR" == $locale) {
// temporary set a locale for brazilian
@@ -32,7 +32,7 @@
*
* @api
*/
- function trans($id, array $parameters = array(), $domain = null, $locale = null);
+ public function trans($id, array $parameters = array(), $domain = null, $locale = null);
/**
* Translates the given choice message by choosing a translation according to a number.
@@ -47,7 +47,7 @@ function trans($id, array $parameters = array(), $domain = null, $locale = null)
*
* @api
*/
- function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null);
+ public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null);
/**
* Sets the current locale.
@@ -56,7 +56,7 @@ function transChoice($id, $number, array $parameters = array(), $domain = null,
*
* @api
*/
- function setLocale($locale);
+ public function setLocale($locale);
/**
* Returns the current locale.
@@ -65,5 +65,5 @@ function setLocale($locale);
*
* @api
*/
- function getLocale();
+ public function getLocale();
}

0 comments on commit 1b50bdb

Please sign in to comment.