Completed
Pull Request — master (#22)
by Sergey
15:55
created
oldtests/BaseTestCase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     /**
73 73
      * Delete index.
74 74
      *
75
-     * @param mixed $index
75
+     * @param string $index
76 76
      */
77 77
     protected function deleteIndex($index)
78 78
     {
Please login to merge, or discard this patch.
src/Collection/ECollection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     /**
19 19
      * Put response.
20 20
      *
21
-     * @param array $response
21
+     * @param callable $response
22 22
      */
23 23
     public function response(array $response)
24 24
     {
Please login to merge, or discard this patch.
src/Repository/ElasticsearchRepository.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use Elasticsearch\Client;
6 6
 use Elasticsearch\Common\Exceptions\Missing404Exception;
7
+use Isswp101\Persimmon\CollectionParser\ElasticsearchCollectionParser;
7 8
 use Isswp101\Persimmon\Collection\ElasticsearchCollection;
8 9
 use Isswp101\Persimmon\Collection\IElasticsearchCollection;
9
-use Isswp101\Persimmon\CollectionParser\ElasticsearchCollectionParser;
10 10
 use Isswp101\Persimmon\Contracts\Storable;
11 11
 use Isswp101\Persimmon\Exceptions\ClassTypeErrorException;
12 12
 use Isswp101\Persimmon\Exceptions\ModelNotFoundException;
Please login to merge, or discard this patch.
src/Elasticsearch/InnerHits.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
         $this->hits = Arr::get($response, 'inner_hits', []);
14 14
     }
15 15
 
16
+    /**
17
+     * @param string $parentType
18
+     */
16 19
     public function getParentId($parentType)
17 20
     {
18 21
         return Arr::get($this->hits, $parentType . '.hits.hits.0._id');
Please login to merge, or discard this patch.
src/Relationship/HasManyRelationship.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@
 block discarded – undo
36 36
         return ($this->childClass)::all(new QueryBuilder($query));
37 37
     }
38 38
 
39
+    /**
40
+     * @param integer $id
41
+     */
39 42
     public function find($id): IElasticsearchModel
40 43
     {
41 44
         $relationshipKey = new RelationshipKey($id, $this->parent->getPrimaryKey());
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Isswp101\Persimmon\Relationship;
4 4
 
5
-use Isswp101\Persimmon\Collection\IElasticsearchCollection;
6 5
 use Isswp101\Persimmon\CollectionParser\ElasticsearchCollectionParser;
6
+use Isswp101\Persimmon\Collection\IElasticsearchCollection;
7 7
 use Isswp101\Persimmon\Model\IElasticsearchModel;
8 8
 use Isswp101\Persimmon\QueryBuilder\QueryBuilder;
9 9
 
Please login to merge, or discard this patch.