Completed
Push — 6.7 ( 74258d...b52bfc )
by André
22:01
created
Tests/EventListener/BackgroundIndexingTerminateListenerTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
     /**
91 91
      * @dataProvider indexingProvider
92 92
      *
93
-     * @param array|null $value
93
+     * @param array|null $values
94 94
      * @param \Psr\Log\LoggerInterface|\PHPUnit_Framework_MockObject_MockObject|null $logger
95 95
      */
96 96
     public function testIndexing(array $values = null, $logger = null)
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/HttpCachePassTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      * @dataProvider processPurgeClientProvider
63 63
      *
64 64
      * @param string $paramValue
65
-     * @param string $expectedServiceAlias
65
+     * @param string $expectedServiceId
66 66
      * @param \Symfony\Component\DependencyInjection\Definition|null $customService
67 67
      */
68 68
     public function testProcessPurgeClient($paramValue, $expectedServiceId, Definition $customService = null)
Please login to merge, or discard this patch.
eZ/Publish/Core/FieldType/Tests/RichText/InternalLinkValidatorTest.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -268,6 +268,9 @@  discard block
 block discarded – undo
268 268
         $this->assertContainsEzRemoteInvalidLinkError($contentRemoteId, $errors);
269 269
     }
270 270
 
271
+    /**
272
+     * @param integer $locationId
273
+     */
271 274
     private function assertContainsEzLocationInvalidLinkError($locationId, array $errors)
272 275
     {
273 276
         $format = 'Invalid link "ezlocation://%d": target location cannot be found';
@@ -275,6 +278,9 @@  discard block
 block discarded – undo
275 278
         $this->assertContains(sprintf($format, $locationId), $errors);
276 279
     }
277 280
 
281
+    /**
282
+     * @param integer $contentId
283
+     */
278 284
     private function assertContainsEzContentInvalidLinkError($contentId, array $errors)
279 285
     {
280 286
         $format = 'Invalid link "ezcontent://%d": target content cannot be found';
@@ -282,6 +288,9 @@  discard block
 block discarded – undo
282 288
         $this->assertContains(sprintf($format, $contentId), $errors);
283 289
     }
284 290
 
291
+    /**
292
+     * @param string $contentId
293
+     */
285 294
     private function assertContainsEzRemoteInvalidLinkError($contentId, array $errors)
286 295
     {
287 296
         $format = 'Invalid link "ezremote://%s": target content cannot be found';
@@ -303,6 +312,9 @@  discard block
 block discarded – undo
303 312
             ->getMock();
304 313
     }
305 314
 
315
+    /**
316
+     * @param string $scheme
317
+     */
306 318
     private function createInputDocument($scheme, $id)
307 319
     {
308 320
         $url = $scheme . '://' . $id;
Please login to merge, or discard this patch.
eZ/Publish/API/Repository/Tests/BaseTest.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -212,7 +212,6 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @param \eZ\Publish\API\Repository\Values\ValueObject $expectedValues
214 214
      * @param \eZ\Publish\API\Repository\Values\ValueObject $actualObject
215
-     * @param array $propertyNames
216 215
      */
217 216
     protected function assertStructPropertiesCorrect(ValueObject $expectedValues, ValueObject $actualObject, array $additionalProperties = array())
218 217
     {
@@ -474,7 +473,7 @@  discard block
 block discarded – undo
474 473
     /**
475 474
      * Create role of a given name with the given policies described by an array.
476 475
      *
477
-     * @param $roleName
476
+     * @param string $roleName
478 477
      * @param array $policiesData [['module' => 'content', 'function' => 'read', 'limitations' => []]
479 478
      *
480 479
      * @return \eZ\Publish\API\Repository\Values\User\Role
Please login to merge, or discard this patch.
eZ/Bundle/EzPublishRestBundle/Features/Context/RestClient/BuzzDriver.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     /**
124 124
      * Get response status code.
125 125
      *
126
-     * @return string
126
+     * @return integer
127 127
      *
128 128
      * @throws \RuntimeException If request hasn't been send already
129 129
      */
Please login to merge, or discard this patch.
eZ/Publish/API/Repository/Tests/URLAliasServiceTest.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1270,7 +1270,7 @@  discard block
 block discarded – undo
1270 1270
 
1271 1271
     /**
1272 1272
      * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo
1273
-     * @param $fieldDefinitionIdentifier
1273
+     * @param string $fieldDefinitionIdentifier
1274 1274
      * @param array $fieldValues
1275 1275
      *
1276 1276
      * @return \eZ\Publish\API\Repository\Values\Content\Content
@@ -1387,6 +1387,10 @@  discard block
 block discarded – undo
1387 1387
         $contentTypeService->publishContentTypeDraft($contentTypeDraft);
1388 1388
     }
1389 1389
 
1390
+    /**
1391
+     * @param string $expectedPath
1392
+     * @param boolean $expectedIsHistory
1393
+     */
1390 1394
     private function assertUrlAliasPropertiesCorrect(
1391 1395
         Location $expectedDestinationLocation,
1392 1396
         $expectedPath,
Please login to merge, or discard this patch.
eZ/Publish/API/Repository/Tests/LocationServiceTest.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
     /**
764 764
      * Test for the loadLocationChildren() method.
765 765
      *
766
-     * @return \eZ\Publish\API\Repository\Values\Content\Location[]
766
+     * @return LocationList
767 767
      *
768 768
      * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset)
769 769
      * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildren
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
     /**
828 828
      * Test for the loadLocationChildren() method.
829 829
      *
830
-     * @return \eZ\Publish\API\Repository\Values\Content\Location[]
830
+     * @return LocationList
831 831
      *
832 832
      * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset, $limit)
833 833
      * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildren
@@ -856,7 +856,7 @@  discard block
 block discarded – undo
856 856
     /**
857 857
      * Test for the loadLocationChildren() method.
858 858
      *
859
-     * @param \eZ\Publish\API\Repository\Values\Content\Location[] $locations
859
+     * @param LocationList $locations
860 860
      *
861 861
      * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset, $limit)
862 862
      * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildrenWithOffsetAndLimit
@@ -1140,7 +1140,7 @@  discard block
 block discarded – undo
1140 1140
      * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
1141 1141
      * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException
1142 1142
      *
1143
-     * @return int[]
1143
+     * @return Content[]
1144 1144
      */
1145 1145
     public function testSwapLocationForMainAndSecondaryLocation()
1146 1146
     {
@@ -2342,7 +2342,7 @@  discard block
 block discarded – undo
2342 2342
      * Assert generated aliases to expected alias return.
2343 2343
      *
2344 2344
      * @param \eZ\Publish\API\Repository\URLAliasService $urlAliasService
2345
-     * @param array $expectedAliases
2345
+     * @param string[] $expectedAliases
2346 2346
      */
2347 2347
     protected function assertGeneratedAliases($urlAliasService, array $expectedAliases)
2348 2348
     {
@@ -2354,7 +2354,7 @@  discard block
 block discarded – undo
2354 2354
 
2355 2355
     /**
2356 2356
      * @param \eZ\Publish\API\Repository\URLAliasService $urlAliasService
2357
-     * @param array $expectedSubItemAliases
2357
+     * @param string[] $expectedSubItemAliases
2358 2358
      */
2359 2359
     private function assertAliasesBeforeCopy($urlAliasService, array $expectedSubItemAliases)
2360 2360
     {
Please login to merge, or discard this patch.
eZ/Bundle/EzPublishRestBundle/Tests/Functional/TestCase.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,6 +109,7 @@  discard block
 block discarded – undo
109 109
     }
110 110
 
111 111
     /**
112
+     * @param string $method
112 113
      * @return HttpRequest
113 114
      */
114 115
     public function createHttpRequest($method, $uri, $contentType = '', $acceptType = '')
@@ -170,6 +171,9 @@  discard block
 block discarded – undo
170 171
         return $errorMessageString;
171 172
     }
172 173
 
174
+    /**
175
+     * @param string $header
176
+     */
173 177
     protected function assertHttpResponseHasHeader(HttpResponse $response, $header, $expectedValue = null)
174 178
     {
175 179
         $headerValue = $response->getHeader($header);
@@ -179,6 +183,9 @@  discard block
 block discarded – undo
179 183
         }
180 184
     }
181 185
 
186
+    /**
187
+     * @param string $typeString
188
+     */
182 189
     protected function generateMediaTypeString($typeString)
183 190
     {
184 191
         return "application/vnd.ez.api.$typeString";
@@ -209,7 +216,7 @@  discard block
 block discarded – undo
209 216
     /**
210 217
      * @param string $string The value of the folders name field
211 218
      * @param string $parentLocationId The REST id of the parent location
212
-     * @param null $remoteId
219
+     * @param string $remoteId
213 220
      *
214 221
      * @return array created Content, as an array
215 222
      */
@@ -294,6 +301,9 @@  discard block
 block discarded – undo
294 301
         return $folderLocations;
295 302
     }
296 303
 
304
+    /**
305
+     * @param string $string
306
+     */
297 307
     protected function addTestSuffix($string)
298 308
     {
299 309
         if (!isset(self::$testSuffix)) {
Please login to merge, or discard this patch.