Completed
Pull Request — master (#1017)
by Tim
03:41
created
lib/Elastica/Tool/CrossIndex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
             $types = is_array($types) ? $types : array($types);
134 134
 
135 135
             $types = array_map(
136
-                function ($type) {
136
+                function($type) {
137 137
                     if ($type instanceof Type) {
138 138
                         $type = $type->getName();
139 139
                     }
Please login to merge, or discard this patch.
lib/Elastica/Query/MoreLikeThis.php 1 patch
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@  discard block
 block discarded – undo
30 30
      * @param array $ids Document ids
31 31
      *
32 32
      * @deprecated Option "ids" deprecated as of ES 2.0.0-beta1 and will be removed in further Elastica releases. Use "like" instead.
33
-
34 33
      * @return \Elastica\Query\MoreLikeThis Current object
35 34
      */
36 35
     public function setIds(array $ids)
@@ -56,7 +55,6 @@  discard block
 block discarded – undo
56 55
      * @param string $likeText
57 56
      *
58 57
      * @deprecated Option "like_text" deprecated as of ES 2.0.0-beta1 and will be removed at further Elastica releases. Use "like" instead.
59
-
60 58
      * @return $this
61 59
      */
62 60
     public function setLikeText($likeText)
Please login to merge, or discard this patch.
lib/Elastica/Query/BoolQuery.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      * @param \Elastica\Filter\AbstractFilter $filter Filter object
56 56
      *
57 57
      * @return $this
58
-    */
58
+     */
59 59
     public function addFilter(AbstractFilter $filter)
60 60
     {
61 61
         return $this->addParam('filter', $filter);
Please login to merge, or discard this patch.
lib/Elastica/Client.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,12 +80,10 @@
 block discarded – undo
80 80
     public function __construct(array $config = array(), $callback = null)
81 81
     {
82 82
         $dispatcher = isset($config['dispatcher']) ?
83
-            $config['dispatcher'] :
84
-            null;
83
+            $config['dispatcher'] : null;
85 84
         unset($config['dispatcher']);
86 85
         $resultSetBuilder = isset($config['resultSetBuilder']) ?
87
-            $config['resultSetBuilder'] :
88
-            new Builder($dispatcher);
86
+            $config['resultSetBuilder'] : new Builder($dispatcher);
89 87
         unset($config['resultSetBuilder']);
90 88
 
91 89
         $this->_resultSetBuilder = $resultSetBuilder;
Please login to merge, or discard this patch.
lib/Elastica/Transformer/Doctrine/AbstractDoctrineTransformer.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,6 @@
 block discarded – undo
55 55
     private function getObjectIdentifier($object)
56 56
     {
57 57
         return method_exists($object, 'getId') ?
58
-            $object->getId() :
59
-            $object->id;
58
+            $object->getId() : $object->id;
60 59
     }
61 60
 }
Please login to merge, or discard this patch.