Permalink
Browse files

CS Fixes - Replaced "array of type" by "Type[]" in PHPDoc block

  • Loading branch information...
1 parent 51862fd commit e1f6651d95747c11809035ec0d94b2f87863f0ec @raziel057 raziel057 committed with fabpot Nov 1, 2012
Showing with 28 additions and 9 deletions.
  1. +1 −1 Extractor/ChainExtractor.php
  2. +27 −8 Translator.php
View
2 Extractor/ChainExtractor.php
@@ -23,7 +23,7 @@ class ChainExtractor implements ExtractorInterface
/**
* The extractors.
*
- * @var array
+ * @var ExtractorInterface[]
*/
private $extractors = array();
View
35 Translator.php
@@ -22,11 +22,34 @@
*/
class Translator implements TranslatorInterface
{
- protected $catalogues;
+ /**
+ * @var MessageCatalogueInterface[]
+ */
+ protected $catalogues = array();
+
+ /**
+ * @var string
+ */
protected $locale;
- private $fallbackLocales;
- private $loaders;
- private $resources;
+
+ /**
+ * @var array
+ */
+ private $fallbackLocales = array();
+
+ /**
+ * @var LoaderInterface[]
+ */
+ private $loaders = array();
+
+ /**
+ * @var array
+ */
+ private $resources = array();
+
+ /**
+ * @var MessageSelector
+ */
private $selector;
/**
@@ -41,10 +64,6 @@ public function __construct($locale, MessageSelector $selector = null)
{
$this->locale = $locale;
$this->selector = null === $selector ? new MessageSelector() : $selector;
- $this->loaders = array();
- $this->resources = array();
- $this->catalogues = array();
- $this->fallbackLocales = array();
}
/**

0 comments on commit e1f6651

Please sign in to comment.