@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | protected $filters; |
12 | 12 | |
13 | 13 | /** |
14 | - * @param array $filters |
|
14 | + * @param FilterInterface[] $filters |
|
15 | 15 | */ |
16 | 16 | public function __construct(array $filters = array()) |
17 | 17 | { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * Add a filter to filter out words. |
34 | 34 | * @param FilterInterface $filter |
35 | - * @return bool |
|
35 | + * @return boolean|null |
|
36 | 36 | */ |
37 | 37 | public function addFilter(FilterInterface $filter) |
38 | 38 | { |
@@ -10,7 +10,7 @@ |
||
10 | 10 | protected $unwantedWords; |
11 | 11 | |
12 | 12 | /** |
13 | - * @param array $unwantedWords Array of words to be removed. |
|
13 | + * @param string[] $unwantedWords Array of words to be removed. |
|
14 | 14 | */ |
15 | 15 | public function __construct($unwantedWords = array( |
16 | 16 | 'and', 'our', 'your', 'their', 'his', 'her', 'the', 'you', 'them', 'yours', |
@@ -125,6 +125,10 @@ discard block |
||
125 | 125 | return new ArrayCollection(iterator_to_array($iterator)); |
126 | 126 | } |
127 | 127 | |
128 | + /** |
|
129 | + * @param string $sortBy |
|
130 | + * @param string $sortOrder |
|
131 | + */ |
|
128 | 132 | public function sortWords($sortBy, $sortOrder) |
129 | 133 | { |
130 | 134 | if (!in_array($sortBy, $this->allowedSortBy)) { |
@@ -182,6 +186,9 @@ discard block |
||
182 | 186 | return $this->words->count(); |
183 | 187 | } |
184 | 188 | |
189 | + /** |
|
190 | + * @param string $words |
|
191 | + */ |
|
185 | 192 | public function importWords($words, Filters $filters = null, $maxWords = 100) |
186 | 193 | { |
187 | 194 | $array = preg_split("/[\n\r\t ]+/", $words); |
@@ -217,6 +224,9 @@ discard block |
||
217 | 224 | $entity->setCount($entity->getCount() + 1); |
218 | 225 | } |
219 | 226 | |
227 | + /** |
|
228 | + * @param string $html |
|
229 | + */ |
|
220 | 230 | public function importHtml($html, Filters $filters = null, $maxWords = 100) |
221 | 231 | { |
222 | 232 | if (!$html) { |
@@ -238,6 +248,9 @@ discard block |
||
238 | 248 | $this->importWords($text, $maxWords, $filters); |
239 | 249 | } |
240 | 250 | |
251 | + /** |
|
252 | + * @param string $url |
|
253 | + */ |
|
241 | 254 | public function importUrl($url, Filters $filters = null, $maxWords = 100) |
242 | 255 | { |
243 | 256 | $this->importHtml(file_get_contents($url), $maxWords, $filters); |
@@ -10,6 +10,9 @@ |
||
10 | 10 | /** @var int */ |
11 | 11 | protected $increment = 0; |
12 | 12 | |
13 | + /** |
|
14 | + * @param double $n |
|
15 | + */ |
|
13 | 16 | protected function sign($n) { |
14 | 17 | return ($n > 0) - ($n < 0); |
15 | 18 | } |
@@ -25,6 +25,10 @@ |
||
25 | 25 | /** @var \SixtyNine\Cloud\Placer\PlacerInterface */ |
26 | 26 | protected $placer; |
27 | 27 | |
28 | + /** |
|
29 | + * @param integer $imgWidth |
|
30 | + * @param integer $imgHeight |
|
31 | + */ |
|
28 | 32 | public function __construct( |
29 | 33 | $imgWidth, |
30 | 34 | $imgHeight, |