Completed
Push — ezp26297-rest_embedding_http_c... ( 6dcd26...7b4207 )
by
unknown
44:13 queued 12:57
created
eZ/Publish/Core/REST/Server/Values/ResourceRouteReference.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * ResourceRouteReference constructor.
37
-     * @param array $route
37
+     * @param string $route
38 38
      * @param $loadParameters
39 39
      * @param string $mediaType The media-type name (ContentInfo, Location) of the resource. If null, the default will be used.
40 40
      */
Please login to merge, or discard this patch.
Server/Tests/Output/PathExpansion/RequestHeaderPathExpansionCheckerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@
 block discarded – undo
59 59
         self::assertFalse($checker->needsExpansion('Location.urlAliases'));
60 60
     }
61 61
 
62
+    /**
63
+     * @param string $headerValue
64
+     */
62 65
     private function buildRequestStackWithHeader($headerValue)
63 66
     {
64 67
         $requestStack = new RequestStack();
Please login to merge, or discard this patch.
Core/REST/Server/Tests/Output/ValueObjectVisitor/ResourceLinkTest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     }
226 226
 
227 227
     /**
228
-     * @return \eZ\Publish\Core\REST\Server\Output\PathExpansion\ValueLoaders\UriValueLoader|\PHPUnit_Framework_MockObject_MockObject
228
+     * @return \eZ\Publish\Core\REST\Server\Output\PathExpansion\ValueLoaders\UriValueLoader
229 229
      */
230 230
     protected function getValueLoaderMock()
231 231
     {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     }
240 240
 
241 241
     /**
242
-     * @return \eZ\Publish\Core\REST\Server\Output\PathExpansion\PathExpansionChecker|\PHPUnit_Framework_MockObject_MockObject
242
+     * @return \eZ\Publish\Core\REST\Server\Output\PathExpansion\PathExpansionChecker
243 243
      */
244 244
     protected function getPathExpansionCheckerMock()
245 245
     {
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
     }
254 254
 
255 255
     /**
256
-     * @return \eZ\Publish\Core\REST\Common\Output\ValueObjectVisitorDispatcher|\PHPUnit_Framework_MockObject_MockObject
256
+     * @return \eZ\Publish\Core\REST\Common\Output\ValueObjectVisitorDispatcher
257 257
      */
258 258
     protected function getValueObjectVisitorDispatcherMock()
259 259
     {
Please login to merge, or discard this patch.
Server/Tests/Output/PathExpansion/ValueLoaders/UniqueUriValueLoaderTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     }
47 47
 
48 48
     /**
49
-     * @return \PHPUnit_Framework_MockObject_MockObject|\eZ\Publish\Core\REST\Server\Output\PathExpansion\ValueLoaders\UriValueLoader
49
+     * @return \eZ\Publish\Core\REST\Server\Output\PathExpansion\ValueLoaders\UriValueLoader
50 50
      */
51 51
     protected function getInnerLoaderMock()
52 52
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/MVC/Symfony/Cache/Http/Proxy/TagAwareStore.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * @param string $tag    The tag key
98 98
      * @param string $digest The digest hash to store representing the cache item.
99 99
      *
100
-     * @return bool|void
100
+     * @return false|null
101 101
      */
102 102
     private function saveTag($tag, $digest)
103 103
     {
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      *
132 132
      * @param \Symfony\Component\HttpFoundation\Request $request
133 133
      *
134
-     * @return bool True if purge was successful. False otherwise
134
+     * @return boolean|null True if purge was successful. False otherwise
135 135
      */
136 136
     public function purgeByRequest(Request $request)
137 137
     {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      *
174 174
      * @deprecated Use cache:clear, with multi tagging theoretically there shouldn't be need to delete all anymore from core.
175 175
      *
176
-     * @return bool
176
+     * @return boolean|null
177 177
      */
178 178
     public function purgeAllContent()
179 179
     {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      *
187 187
      * @param string $tag
188 188
      *
189
-     * @return bool
189
+     * @return false|null
190 190
      */
191 191
     private function purgeByCacheTag($tag)
192 192
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/MVC/Symfony/Cache/Http/SignalSlot/AbstractContentSlot.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
     /**
101 101
      * Returns an array of allowed IPs for Http PURGE requests.
102 102
      *
103
-     * @return array
103
+     * @return string[]
104 104
      */
105 105
     protected function getInternalAllowedIPs()
106 106
     {
Please login to merge, or discard this patch.
eZ/Publish/Core/REST/Server/Controller/User.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      *
142 142
      * @param $groupPath
143 143
      *
144
-     * @return \eZ\Publish\Core\REST\Server\Values\RestUserGroup
144
+     * @return Values\CachedValue
145 145
      */
146 146
     public function loadUserGroup($groupPath)
147 147
     {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      *
179 179
      * @param $userId
180 180
      *
181
-     * @return \eZ\Publish\Core\REST\Server\Values\RestUser
181
+     * @return Values\CachedValue
182 182
      */
183 183
     public function loadUser($userId)
184 184
     {
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
      *
712 712
      * @param $groupPath
713 713
      *
714
-     * @return \eZ\Publish\Core\REST\Server\Values\UserGroupList|\eZ\Publish\Core\REST\Server\Values\UserGroupRefList
714
+     * @return Values\CachedValue
715 715
      */
716 716
     public function loadSubUserGroups($groupPath, Request $request)
717 717
     {
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
      *
768 768
      * @param $userId
769 769
      *
770
-     * @return \eZ\Publish\Core\REST\Server\Values\UserGroupRefList
770
+     * @return Values\CachedValue
771 771
      */
772 772
     public function loadUserGroupsOfUser($userId, Request $request)
773 773
     {
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
      *
808 808
      * @param $groupPath
809 809
      *
810
-     * @return \eZ\Publish\Core\REST\Server\Values\UserList|\eZ\Publish\Core\REST\Server\Values\UserRefList
810
+     * @return Values\CachedValue
811 811
      */
812 812
     public function loadUsersFromGroup($groupPath, Request $request)
813 813
     {
Please login to merge, or discard this patch.
eZ/Bundle/EzPublishRestBundle/Tests/Functional/TestCase.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -111,6 +111,7 @@  discard block
 block discarded – undo
111 111
     }
112 112
 
113 113
     /**
114
+     * @param string $method
114 115
      * @return HttpRequest
115 116
      */
116 117
     public function createHttpRequest($method, $uri, $contentType = '', $acceptType = '')
@@ -172,6 +173,9 @@  discard block
 block discarded – undo
172 173
         return $errorMessageString;
173 174
     }
174 175
 
176
+    /**
177
+     * @param string $header
178
+     */
175 179
     protected function assertHttpResponseHasHeader(HttpResponse $response, $header, $expectedValue = null)
176 180
     {
177 181
         $headerValue = $response->getHeader($header);
@@ -181,6 +185,9 @@  discard block
 block discarded – undo
181 185
         }
182 186
     }
183 187
 
188
+    /**
189
+     * @param string $typeString
190
+     */
184 191
     protected function generateMediaTypeString($typeString)
185 192
     {
186 193
         return "application/vnd.ez.api.$typeString";
Please login to merge, or discard this patch.
eZ/Bundle/EzPublishRestBundle/Tests/Functional/ContentTypeTest.php 1 patch
Doc Comments   +14 added lines, -2 removed lines patch added patch discarded remove patch
@@ -489,6 +489,7 @@  discard block
 block discarded – undo
489 489
     /**
490 490
      * @depends testAddContentTypeDraftFieldDefinition
491 491
      * @covers GET /content/types/<contentTypeId>/fieldDefinitions/<fieldDefinitionId>
492
+     * @param Response $fieldDefinitionHref
492 493
      */
493 494
     public function testLoadContentTypeFieldDefinition($fieldDefinitionHref)
494 495
     {
@@ -653,7 +654,7 @@  discard block
 block discarded – undo
653 654
     }
654 655
 
655 656
     /**
656
-     * @param $response
657
+     * @param Response $response
657 658
      * @return ContentTypeGroupList
658 659
      */
659 660
     private function parseContentTypeGroupListFromResponse($response): ContentTypeGroupList
@@ -661,6 +662,10 @@  discard block
 block discarded – undo
661 662
         $struct = json_decode($response->getContent(), true);
662 663
         $contentTypeGroupList = new ContentTypeGroupList(
663 664
             array_map(
665
+
666
+                /**
667
+                 * @param Response $row
668
+                 */
664 669
                 function (array $row) {
665 670
                     return new ContentTypeGroup(
666 671
                         [
@@ -676,7 +681,7 @@  discard block
 block discarded – undo
676 681
     }
677 682
 
678 683
     /**
679
-     * @param $response
684
+     * @param Response $response
680 685
      * @return ContentTypeInfoList
681 686
      */
682 687
     private function parseContentTypeInfoListFromResponse($response): ContentTypeInfoList
@@ -684,6 +689,10 @@  discard block
 block discarded – undo
684 689
         $struct = json_decode($response->getContent(), true);
685 690
         $contentTypeInfoList = new ContentTypeInfoList(
686 691
             array_map(
692
+
693
+                /**
694
+                 * @param Response $row
695
+                 */
687 696
                 function (array $row) {
688 697
                     return new ContentType(
689 698
                         [
@@ -733,6 +742,9 @@  discard block
 block discarded – undo
733 742
         );
734 743
     }
735 744
 
745
+    /**
746
+     * @param Response $response
747
+     */
736 748
     private function parseContentTypeListFromRespose($response)
737 749
     {
738 750
     }
Please login to merge, or discard this patch.