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 (#12)
by
unknown
02:47
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/Query/Walker/WhereWalker.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Doctrine\ORM\Query\AST\Node;
16 16
 use Doctrine\ORM\Query\AST\NullComparisonExpression;
17 17
 use Doctrine\ORM\Query\AST\PathExpression;
18
-use Doctrine\ORM\Query\AST\SimpleArithmeticExpression;
19 18
 use Doctrine\ORM\Query\AST\WhereClause;
20 19
 use DoctrineElastic\Elastic\ElasticQuery;
21 20
 use DoctrineElastic\Elastic\SearchParams;
Please login to merge, or discard this patch.
src/Connection/ElasticConnection.php 2 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@
 block discarded – undo
249 249
      * @param string $_id
250 250
      * @param array $mergeParams
251 251
      * @param array|null $return
252
-     * @return array|null
252
+     * @return null|callable
253 253
      */
254 254
     public function get($index, $type, $_id, array $mergeParams = [], array &$return = null) {
255 255
         if (!$this->indexExists($index)) {
Please login to merge, or discard this patch.
src/ElasticUnitOfWork.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -337,7 +337,7 @@
 block discarded – undo
337 337
     }
338 338
 
339 339
     public function delete($entity) {
340
-        if(!is_object($entity)){
340
+        if (!is_object($entity)) {
341 341
             throw new InvalidArgumentException('Trying to schedule a non object to delete');
342 342
         }
343 343
 
Please login to merge, or discard this patch.
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -241,6 +241,9 @@  discard block
 block discarded – undo
241 241
         $this->clear($entity);
242 242
     }
243 243
 
244
+    /**
245
+     * @param string $className
246
+     */
244 247
     public function executeInserts($className) {
245 248
         $persister = $this->getEntityPersister($className);
246 249
 
@@ -256,6 +259,9 @@  discard block
 block discarded – undo
256 259
         $persister->executeInserts();
257 260
     }
258 261
 
262
+    /**
263
+     * @param string $className
264
+     */
259 265
     public function executeUpdates($className) {
260 266
         $persister = $this->getEntityPersister($className);
261 267
 
@@ -269,6 +275,9 @@  discard block
 block discarded – undo
269 275
         }
270 276
     }
271 277
 
278
+    /**
279
+     * @param string $className
280
+     */
272 281
     public function executeDeletions($className) {
273 282
         $persister = $this->getEntityPersister($className);
274 283
 
Please login to merge, or discard this patch.
src/Persister/ElasticEntityPersister.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@  discard block
 block discarded – undo
45 45
     /** @var \ReflectionClass */
46 46
     private $reflectionClass;
47 47
 
48
+    /**
49
+     * @param string $className
50
+     */
48 51
     public function __construct(ElasticEntityManager $em, $className) {
49 52
         $this->className = $className;
50 53
         $this->annotationReader = new AnnotationReader();
@@ -85,6 +88,9 @@  discard block
 block discarded – undo
85 88
         }
86 89
     }
87 90
 
91
+    /**
92
+     * @param integer $offset
93
+     */
88 94
     public function loadAll(array $criteria = [], array $orderBy = null, $limit = null, $offset = null) {
89 95
         $type = $this->getEntityType();
90 96
         $sort = $must = [];
@@ -297,6 +303,9 @@  discard block
 block discarded – undo
297 303
         }
298 304
     }
299 305
 
306
+    /**
307
+     * @param integer $limit
308
+     */
300 309
     public function load(
301 310
         array $criteria, $entity = null, $assoc = null, array $hints = [],
302 311
         $lockMode = null, $limit = null, array $orderBy = null
Please login to merge, or discard this patch.
src/Query/ElasticWalker.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@  discard block
 block discarded – undo
36 36
     /** @var SelectStatement */
37 37
     private $_ast;
38 38
 
39
+    /**
40
+     * @param string $className
41
+     */
39 42
     public function __construct(ElasticQuery $query, SelectStatement $AST, $className) {
40 43
         $this->query = $query;
41 44
         $this->walkerHelper = new WalkerHelper();
@@ -126,7 +129,7 @@  discard block
 block discarded – undo
126 129
 
127 130
     /**
128 131
      * @param $propertyName
129
-     * @param $className
132
+     * @param string $className
130 133
      * @return Field
131 134
      */
132 135
     private function getEntityElasticField($propertyName, $className) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,6 +133,6 @@
 block discarded – undo
133 133
         /** @var Field[] $fields */
134 134
         $fields = (new AnnotationEntityHydrator())->extractSpecAnnotations($className, Field::class);
135 135
 
136
-        return isset($fields[$propertyName]) ? $fields[$propertyName]: null;
136
+        return isset($fields[$propertyName]) ? $fields[$propertyName] : null;
137 137
     }
138 138
 }
Please login to merge, or discard this patch.
src/Query/QueryParser.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1143,7 +1143,7 @@  discard block
 block discarded – undo
1143 1143
      * accessible is "FROM", prohibiting an easy implementation without larger
1144 1144
      * changes.}
1145 1145
      *
1146
-     * @return \Doctrine\ORM\Query\AST\SubselectIdentificationVariableDeclaration |
1146
+     * @return AST\IdentificationVariableDeclaration |
1147 1147
      *         \Doctrine\ORM\Query\AST\IdentificationVariableDeclaration
1148 1148
      */
1149 1149
     public function SubselectIdentificationVariableDeclaration() {
@@ -1279,7 +1279,7 @@  discard block
 block discarded – undo
1279 1279
      * PartialObjectExpression ::= "PARTIAL" IdentificationVariable "." PartialFieldSet
1280 1280
      * PartialFieldSet ::= "{" SimpleStateField {"," SimpleStateField}* "}"
1281 1281
      *
1282
-     * @return array
1282
+     * @return AST\PartialObjectExpression
1283 1283
      */
1284 1284
     public function PartialObjectExpression() {
1285 1285
         $this->match(Lexer::T_PARTIAL);
Please login to merge, or discard this patch.