Completed
Push — master ( 50e57a...1d39d2 )
by Florian
03:06
created
Services/AbstractSearchService.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,9 @@
 block discarded – undo
32 32
 	 * @see \StingerSoft\EntitySearchBundle\Services\SearchService::setObjectManager()
33 33
 	 */
34 34
 	public function setObjectManager(ObjectManager $om) {
35
-		if($this->objectManager) return;
35
+		if($this->objectManager) {
36
+			return;
37
+		}
36 38
 		$this->objectManager = $om;
37 39
 	}
38 40
 
Please login to merge, or discard this patch.
StingerSoftEntitySearchBundle.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@
 block discarded – undo
17 17
  */
18 18
 class StingerSoftEntitySearchBundle extends Bundle {
19 19
 
20
+	/**
21
+	 * @param string $env
22
+	 */
20 23
 	public static function getRequiredBundles($env) {
21 24
 		$bundles = array();
22 25
 		$bundles['StingerSoftEntitySearchBundle'] = '\StingerSoft\EntitySearchBundle\StingerSoftEntitySearchBundle';
Please login to merge, or discard this patch.
Services/Mapping/EntityToDocumentMapper.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,12 +89,14 @@
 block discarded – undo
89 89
 	 * @return boolean|Document Returns false if no document could be created
90 90
 	 */
91 91
 	public function createDocument(ObjectManager $manager, $object) {
92
-		if(!$this->isIndexable($object))
93
-			return false;
92
+		if(!$this->isIndexable($object)) {
93
+					return false;
94
+		}
94 95
 		$document = $this->getSearchService($manager)->createEmptyDocumentFromEntity($object);
95 96
 		$index = $this->fillDocument($document, $object);
96
-		if($index == false)
97
-			return false;
97
+		if($index == false) {
98
+					return false;
99
+		}
98 100
 		
99 101
 		return $document;
100 102
 	}
Please login to merge, or discard this patch.
Services/Mapping/DocumentToEntityMapperInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
 	 * Tries to create a document from the given object
26 26
 	 *
27 27
 	 * @param ObjectManager $manager        	
28
-	 * @param object $object        	
29 28
 	 * @return boolean|Document Returns false if no document could be created
30 29
 	 */
31 30
 	public function getEntity(ObjectManager $manager, Document $document);
Please login to merge, or discard this patch.
Form/QueryType.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,9 @@
 block discarded – undo
66 66
 		$choices = array();
67 67
 		
68 68
 		foreach($facets as $facet => $count) {
69
-			if($count == 0)
70
-				break;
69
+			if($count == 0) {
70
+							break;
71
+			}
71 72
 			$choices[$facet] = $facet . ' (' . $count . ')';
72 73
 		}
73 74
 		return $choices;
Please login to merge, or discard this patch.
Form/FacetType.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,9 @@
 block discarded – undo
66 66
 		$choices = array();
67 67
 		
68 68
 		foreach($facets as $facet => $count) {
69
-			if($count == 0)
70
-				break;
69
+			if($count == 0) {
70
+							break;
71
+			}
71 72
 			$choices[$facet] = $facet . ' (' . $count . ')';
72 73
 		}
73 74
 		return $choices;
Please login to merge, or discard this patch.