@@ -99,6 +99,10 @@ |
||
99 | 99 | private $name; |
100 | 100 | private $surname; |
101 | 101 | |
102 | + /** |
|
103 | + * @param string $name |
|
104 | + * @param string $surname |
|
105 | + */ |
|
102 | 106 | public function __construct($name, $surname) |
103 | 107 | { |
104 | 108 | $this->name = $name; |
@@ -89,7 +89,7 @@ |
||
89 | 89 | |
90 | 90 | usort( |
91 | 91 | $sortedItems, |
92 | - function (SearchResult $result1, SearchResult $result2) { |
|
92 | + function(SearchResult $result1, SearchResult $result2) { |
|
93 | 93 | if ($result1->getWeight() < $result2->getWeight()) { |
94 | 94 | return 1; |
95 | 95 | } |
@@ -117,7 +117,7 @@ |
||
117 | 117 | |
118 | 118 | $eventDispatcher->method('dispatch') |
119 | 119 | ->will($this->returnCallback( |
120 | - function ($eventName, $event) use ($eventResult) { |
|
120 | + function($eventName, $event) use ($eventResult) { |
|
121 | 121 | foreach ($eventResult as $item) { |
122 | 122 | $event->addResult($item); |
123 | 123 | } |