GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#8)
by Anderson
02:16
created
src/Elastic/ElasticQuery.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@
 block discarded – undo
69 69
         return $this->_dql;
70 70
     }
71 71
 
72
+    /**
73
+     * @param string $dql
74
+     */
72 75
     public function setDQL($dql) {
73 76
         $this->_dql = $dql;
74 77
     }
Please login to merge, or discard this patch.
src/Persister/AbstractEntityPersister.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      *
188 188
      * @param object $entity The entity to delete.
189 189
      *
190
-     * @return bool TRUE if the entity got deleted in the database, FALSE otherwise.
190
+     * @return boolean|null TRUE if the entity got deleted in the database, FALSE otherwise.
191 191
      */
192 192
     public function delete($entity) {
193 193
         // TODO: Implement delete() method.
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
      * @param object $entity
386 386
      * @param Criteria|null $extraConditions
387 387
      *
388
-     * @return boolean TRUE if the entity exists in the database, FALSE otherwise.
388
+     * @return boolean|null TRUE if the entity exists in the database, FALSE otherwise.
389 389
      */
390 390
     public function exists($entity, Criteria $extraConditions = null) {
391 391
         // TODO: Implement exists() method.
Please login to merge, or discard this patch.
src/Persister/ElasticEntityPersister.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@
 block discarded – undo
45 45
         $this->validateEntity($class->name);
46 46
     }
47 47
 
48
+    /**
49
+     * @param string $className
50
+     */
48 51
     private function validateEntity($className) {
49 52
         $type = $this->annotationReader->getClassAnnotation($this->class->getReflectionClass(), Type::class);
50 53
 
Please login to merge, or discard this patch.
src/Query/ElasticWalker.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@  discard block
 block discarded – undo
39 39
     /** @var SelectStatement */
40 40
     private $_ast;
41 41
 
42
+    /**
43
+     * @param string $className
44
+     */
42 45
     public function __construct(ElasticQuery $query, SelectStatement $AST, $className) {
43 46
         $this->query = $query;
44 47
         $this->walkerHelper = new WalkerHelper();
@@ -126,7 +129,7 @@  discard block
 block discarded – undo
126 129
     }
127 130
 
128 131
     /**
129
-     * @param $className
132
+     * @param string $className
130 133
      * @return Type
131 134
      */
132 135
     private function getEntityElasticType($className) {
Please login to merge, or discard this patch.
src/Query/Walker/WhereWalker.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -44,6 +44,9 @@  discard block
 block discarded – undo
44 44
 
45 45
     private $fieldAnnotations = [];
46 46
 
47
+    /**
48
+     * @param string $className
49
+     */
47 50
     public function __construct(ElasticQuery $query, $className, WalkerHelper $walkerHelper) {
48 51
         $this->query = $query;
49 52
         $this->className = $className;
@@ -96,6 +99,9 @@  discard block
 block discarded – undo
96 99
         $this->walkTermsAndFactors($termsAndFactors, $searchParams);
97 100
     }
98 101
 
102
+    /**
103
+     * @param SearchParams $searchParams
104
+     */
99 105
     private function walkTermsAndFactors(array $termsAndFactors, $searchParams) {
100 106
         foreach ($termsAndFactors['factors'] as $factor) {
101 107
             $this->walkANDFactor($factor, $searchParams);
@@ -251,6 +257,9 @@  discard block
 block discarded – undo
251 257
         $this->addBodyStatement($field, $operator, null, $searchParams);
252 258
     }
253 259
 
260
+    /**
261
+     * @param string $field
262
+     */
254 263
     private function addBodyStatement($field, $operator, $value, SearchParams $searchParams) {
255 264
         $body = $searchParams->getBody();
256 265
         $this->walkerHelper->addBodyStatement($field, $operator, $value, $body);
Please login to merge, or discard this patch.
src/Query/ElasticParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $this->query = $query;
28 28
         $doctrineQuery = new Query($query->getEntityManager());
29 29
         $doctrineQuery->setDQL($query->getDQL());
30
-        $this->doctrineParser = new Parser($doctrineQuery);;
30
+        $this->doctrineParser = new Parser($doctrineQuery); ;
31 31
     }
32 32
 
33 33
     public function getAST() {
Please login to merge, or discard this patch.
src/Connection/ElasticConnection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
         );
211 211
 
212 212
         $params = array_merge_recursive($defaultParams, $mergeParams);
213
-        $existsParams = array_filter($params, function ($key) {
213
+        $existsParams = array_filter($params, function($key) {
214 214
             return in_array($key, ['id', 'index', 'type', 'refresh']);
215 215
         }, ARRAY_FILTER_USE_KEY);
216 216
 
Please login to merge, or discard this patch.
src/Service/ElasticSearchService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
                     $data = $rowData['_source'];
37 37
                     $data['_id'] = $rowData['_id'];
38 38
 
39
-                    if(isset($results['aggregations'])) {
39
+                    if (isset($results['aggregations'])) {
40 40
                         $aggregations = $results['aggregations'];
41 41
                         $iterator->append($aggregations);
42 42
                         unset($results['aggregations']);
Please login to merge, or discard this patch.