@@ -65,11 +65,17 @@ |
||
65 | 65 | return $this->setCostsByArray(($this->costs) ? $this->costs : $defaultCosts); |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param Costs $value |
|
70 | + */ |
|
68 | 71 | public function setCosts($value) |
69 | 72 | { |
70 | 73 | return $this->set('costs', $value); |
71 | 74 | } |
72 | 75 | |
76 | + /** |
|
77 | + * @param string $key |
|
78 | + */ |
|
73 | 79 | protected function set($key, $value) |
74 | 80 | { |
75 | 81 | $this->$key = $value; |
@@ -62,6 +62,9 @@ |
||
62 | 62 | return $this->input; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $name |
|
67 | + */ |
|
65 | 68 | protected function factoryExpert($name) |
66 | 69 | { |
67 | 70 | $expertObject = __NAMESPACE__.'\\Similar'.ucfirst($name); |
@@ -32,11 +32,11 @@ |
||
32 | 32 | |
33 | 33 | public function stripStopwords($string, $list) |
34 | 34 | { |
35 | - usort($list, function ($a, $b) { |
|
35 | + usort($list, function($a, $b) { |
|
36 | 36 | return strlen($b) - strlen($a); |
37 | 37 | }); |
38 | 38 | |
39 | - $addSpaces = function (&$v) { |
|
39 | + $addSpaces = function(&$v) { |
|
40 | 40 | $v = ' '.trim($v).' '; |
41 | 41 | |
42 | 42 | return $v; |