Completed
Pull Request — master (#17)
by
unknown
03:35
created
Tests/Entity/IndexItemTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -99,6 +99,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Helper/Search.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
Tests/Helper/SearchTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
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
                     }
Please login to merge, or discard this patch.
DependencyInjection/SumoCodersFrameworkSearchExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Entity/IndexItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Entity/IndexItemRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.