Completed
Pull Request — master (#640)
by
unknown
02:28
created
Service/Json/JsonReader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
190 190
     /**
191 191
      * Returns parsed current line.
192 192
      *
193
-     * @return mixed
193
+     * @return string
194 194
      */
195 195
     public function current()
196 196
     {
Please login to merge, or discard this patch.
Command/DocumentGenerateCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      * @param array  $properties
255 255
      * @param string $annotation
256 256
      *
257
-     * @return string
257
+     * @return boolean
258 258
      */
259 259
     private function isUniqueAnnotation($properties, $annotation)
260 260
     {
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
      * Returns formatted exception
553 553
      *
554 554
      * @param string $format
555
-     * @param array  $args
555
+     * @param string[]  $args
556 556
      *
557 557
      * @return \InvalidArgumentException
558 558
      */
Please login to merge, or discard this patch.
Service/Manager.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
      *
374 374
      * @param array $params Parameters that will be passed to the flush or refresh queries.
375 375
      *
376
-     * @return null|array
376
+     * @return callable|null
377 377
      */
378 378
     public function commit(array $params = [])
379 379
     {
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
      *
405 405
      * @param string $resultsType
406 406
      *
407
-     * @return null|array
407
+     * @return callable|null
408 408
      */
409 409
     public function msearch($resultsType = Result::RESULTS_OBJECT)
410 410
     {
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
      *
439 439
      * @throws \InvalidArgumentException
440 440
      *
441
-     * @return null|array
441
+     * @return callable|null
442 442
      */
443 443
     public function bulk($operation, $type, array $query)
444 444
     {
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
      * @param Search   $search     DSL to execute.
490 490
      * @param array    $header    Search header.
491 491
      *
492
-     * @return null|array
492
+     * @return callable|null
493 493
      */
494 494
     public function addSearch(Search $search, $header = [])
495 495
     {
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
      * @param string $className Document class name or Elasticsearch type name
620 620
      * @param string $id        Document ID to find
621 621
      *
622
-     * @return object
622
+     * @return null|\ReflectionClass
623 623
      */
624 624
     public function find($className, $id)
625 625
     {
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
     /**
644 644
      * Executes given search.
645 645
      *
646
-     * @param array  $types
646
+     * @param string[]  $types
647 647
      * @param Search $search
648 648
      * @param string $resultsType
649 649
      *
Please login to merge, or discard this patch.
Service/Repository.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     }
73 73
 
74 74
     /**
75
-     * @return array
75
+     * @return string
76 76
      */
77 77
     public function getType()
78 78
     {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @param string $id Document ID to find
86 86
      *
87
-     * @return object
87
+     * @return null|\ReflectionClass
88 88
      */
89 89
     public function find($id)
90 90
     {
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
      *
277 277
      * @param string $className
278 278
      *
279
-     * @return array
279
+     * @return string
280 280
      */
281 281
     private function resolveType($className)
282 282
     {
Please login to merge, or discard this patch.
Mapping/DocumentParser.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      *
133 133
      * @param \ReflectionProperty $property
134 134
      *
135
-     * @return Property|null
135
+     * @return \ReflectionProperty
136 136
      */
137 137
     private function getPropertyAnnotationData(\ReflectionProperty $property)
138 138
     {
@@ -295,6 +295,7 @@  discard block
 block discarded – undo
295 295
      *
296 296
      * @param \ReflectionClass $reflectionClass
297 297
      * @param string           $property
298
+     * @param string|null $propertyType
298 299
      *
299 300
      * @return array
300 301
      */
Please login to merge, or discard this patch.
Result/Converter.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Converts raw array to document.
40 40
      *
41
-     * @param array   $rawData
41
+     * @param callable   $rawData
42 42
      * @param Manager $manager
43 43
      *
44
-     * @return object
44
+     * @return \ReflectionClass
45 45
      *
46 46
      * @throws \LogicException
47 47
      */
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * @param \ReflectionClass $object
80 80
      * @param array            $aliases
81 81
      *
82
-     * @return object
82
+     * @return \ReflectionClass
83 83
      */
84 84
     public function assignArrayToObject(array $array, $object, array $aliases)
85 85
     {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      *
136 136
      * @param mixed $object
137 137
      * @param array $aliases
138
-     * @param array $fields
138
+     * @param string[] $fields
139 139
      *
140 140
      * @return array
141 141
      */
Please login to merge, or discard this patch.