@@ -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 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function load(array $configs, ContainerBuilder $container) |
| 21 | 21 | { |
| 22 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 22 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 23 | 23 | $loader->load('services.yml'); |
| 24 | 24 | } |
| 25 | 25 | } |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | |
| 161 | 161 | foreach ($properties as $property) { |
| 162 | 162 | $value = null; |
| 163 | - $method = array($object, 'get' . ucfirst($property)); |
|
| 163 | + $method = array($object, 'get'.ucfirst($property)); |
|
| 164 | 164 | |
| 165 | 165 | if (is_callable($method)) { |
| 166 | 166 | $value = call_user_func($method); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | $query = $this->createQueryBuilder('r') |
| 18 | 18 | ->where('r.value LIKE :term') |
| 19 | - ->setParameter('term', '%' . $term . '%') |
|
| 19 | + ->setParameter('term', '%'.$term.'%') |
|
| 20 | 20 | ->getQuery(); |
| 21 | 21 | |
| 22 | 22 | $results = $query->getResult(); |