Completed
Push — master ( 7e191b...5fbcda )
by Nikolay
03:00
created
services/NorthWind/NorthWindDSExpressionProvider.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,6 @@
 block discarded – undo
50 50
     /**
51 51
      * Constructs new instance of SQLSrverExpressionProvider for NorthWind DB
52 52
      * 
53
-     * @param string $iterName The name of the iterator
54 53
      */
55 54
     public function __construct()
56 55
     {
Please login to merge, or discard this patch.
services/NorthWind/NorthWindMetadata.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
      * 
173 173
      * @throws InvalidOperationException
174 174
      * 
175
-     * @return NorthWindMetadata
175
+     * @return SimpleMetadataProvider
176 176
      */
177 177
     public static function create()
178 178
     {
Please login to merge, or discard this patch.
Unused Use Statements   -9 removed lines patch added patch discarded remove patch
@@ -1,17 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use POData\Providers\Metadata\ResourceStreamInfo;
4
-use POData\Providers\Metadata\ResourceAssociationSetEnd;
5
-use POData\Providers\Metadata\ResourceAssociationSet;
6
-use POData\Common\NotImplementedException;
7 4
 use POData\Providers\Metadata\Type\EdmPrimitiveType;
8
-use POData\Providers\Metadata\ResourceSet;
9
-use POData\Providers\Metadata\ResourcePropertyKind;
10
-use POData\Providers\Metadata\ResourceProperty;
11
-use POData\Providers\Metadata\ResourceTypeKind;
12
-use POData\Providers\Metadata\ResourceType;
13 5
 use POData\Common\InvalidOperationException;
14
-use POData\Providers\Metadata\IMetadataProvider;
15 6
 require_once 'POData\Providers\Metadata\IDataServiceMetadataProvider.php';
16 7
 use POData\Providers\Metadata\SimpleMetadataProvider;
17 8
 //Begin Resource Classes
Please login to merge, or discard this patch.
services/NorthWind/NorthWindQueryProvider.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
      * 
419 419
      * @param array $record each row of customer
420 420
      * 
421
-     * @return object
421
+     * @return Customer
422 422
      */
423 423
     private function _serializeCustomer($record)
424 424
     {
@@ -461,7 +461,8 @@  discard block
 block discarded – undo
461 461
      * 
462 462
      * @param Object &$src    source
463 463
      * @param Object &$target target
464
-     * @param Object $tag     tag
464
+     * @param integer $tag     tag
465
+     * @param Address $target
465 466
      * 
466 467
      * @return void
467 468
      */
@@ -503,7 +504,7 @@  discard block
 block discarded – undo
503 504
      * 
504 505
      * @param array $record each row of customer
505 506
      * 
506
-     * @return object
507
+     * @return Order
507 508
      */
508 509
     private function _serializeOrder($record)
509 510
     {
@@ -547,7 +548,7 @@  discard block
 block discarded – undo
547 548
      * 
548 549
      * @param array $record each row of employee
549 550
      * 
550
-     * @return object
551
+     * @return Employee
551 552
      */
552 553
     private function _serializeEmployee($record)
553 554
     {
@@ -595,7 +596,7 @@  discard block
 block discarded – undo
595 596
      * 
596 597
      * @param array $record each row of order detail
597 598
      * 
598
-     * @return object
599
+     * @return Order_Details
599 600
      */
600 601
     private function _serializeOrderDetail($record)
601 602
     {
Please login to merge, or discard this patch.
services/NorthWind/NorthWindStreamProvider.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param WebOperationContext $operationContext     A reference to the context
49 49
      *                                                  for the current operation.
50 50
      *
51
-     * @return mixed A valid  default stream which is associated with the entity, 
51
+     * @return string A valid  default stream which is associated with the entity, 
52 52
      * Null should never be returned from this method.
53 53
      *
54 54
      * @throws ODataException if a valid stream cannot be returned.  
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *                                                  conditional request.
213 213
      * @param WebOperationContext $operationContext     A reference to the context for the current operation.
214 214
      *
215
-     * @return mixed A valid stream the data service use to query/read a named stream which is
215
+     * @return string A valid stream the data service use to query/read a named stream which is
216 216
      * associated with the $entity. Null may be returned from this method if the requested named
217 217
      * stream has not been created since the creation of $entity. The data service will respond 
218 218
      * with 204 if this method returns null.
Please login to merge, or discard this patch.
services/WordPress/WordPressDataService.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -8,11 +8,6 @@
 block discarded – undo
8 8
 use POData\Configuration\ProtocolVersion;
9 9
 use POData\Configuration\ServiceConfiguration;
10 10
 use POData\BaseService;
11
-use POData\OperationContext\ServiceHost;
12
-use POData\Common\ODataException;
13
-use POData\Common\ODataConstants;
14
-use POData\Common\Messages;
15
-use POData\UriProcessor\UriProcessor;
16 11
 require_once 'WordPressMetadata.php';
17 12
 require_once 'WordPressQueryProvider.php';
18 13
 require_once 'WordPressDSExpressionProvider.php';
Please login to merge, or discard this patch.
services/WordPress/WordPressDSExpressionProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 use POData\UriProcessor\QueryProcessor\ExpressionParser\Expressions\ExpressionType;
4 4
 use POData\Providers\Metadata\Type\IType;
5
-use POData\Common\NotImplementedException;
6 5
 use POData\Common\ODataConstants;
7 6
 use POData\Providers\Expression\IExpressionProvider;
8 7
 use POData\Providers\Metadata\ResourceType;
Please login to merge, or discard this patch.
services/WordPress/WordPressMetadata.php 2 patches
Unused Use Statements   -11 removed lines patch added patch discarded remove patch
@@ -1,20 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use POData\Providers\Metadata\ResourceStreamInfo;
4
-use POData\Providers\Metadata\ResourceAssociationSetEnd;
5
-use POData\Providers\Metadata\ResourceAssociationSet;
6
-use POData\Common\NotImplementedException;
7 3
 use POData\Providers\Metadata\Type\EdmPrimitiveType;
8
-use POData\Providers\Metadata\ResourceSet;
9
-use POData\Providers\Metadata\ResourcePropertyKind;
10
-use POData\Providers\Metadata\ResourceProperty;
11
-use POData\Providers\Metadata\ResourceTypeKind;
12
-use POData\Providers\Metadata\ResourceType;
13 4
 use POData\Common\InvalidOperationException;
14
-use POData\Providers\Metadata\IMetadataProvider;
15 5
 require_once 'POData\Providers\Metadata\IDataServiceMetadataProvider.php';
16 6
 use POData\Providers\Metadata\SimpleMetadataProvider;
17
-use POData\Providers\Metadata\MetadataMapping;
18 7
 
19 8
 //Begin Resource Classes
20 9
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
      * 
173 173
      * @throws InvalidOperationException
174 174
      * 
175
-     * @return NorthWindMetadata
175
+     * @return SimpleMetadataProvider
176 176
      */
177 177
     public static function create()
178 178
     {
Please login to merge, or discard this patch.
services/WordPress/WordPressQueryProvider.php 1 patch
Doc Comments   +10 added lines, -12 removed lines patch added patch discarded remove patch
@@ -76,7 +76,6 @@  discard block
 block discarded – undo
76 76
      * 
77 77
      * @param ResourceSet      $resourceSet   The entity set whose 
78 78
      *                                        entities needs to be fetched
79
-     * @param string           $filterOption  Contains the filter condition
80 79
      * @param string           $select        For future purpose,no need to pass it
81 80
      * @param string           $orderby       For future purpose,no need to pass it
82 81
      * @param string           $top           For future purpose,no need to pass it
@@ -273,7 +272,6 @@  discard block
 block discarded – undo
273 272
      *                                               the navigation property
274 273
      * @param ResourceProperty $targetProperty       The navigation property to be 
275 274
      *                                               retrieved
276
-     * @param string           $filterOption         Contains the filter condition
277 275
      * @param string           $select               For future purpose,no need to pass it
278 276
      * @param string           $orderby              For future purpose,no need to pass it
279 277
      * @param string           $top                  For future purpose,no need to pass it
@@ -662,7 +660,7 @@  discard block
 block discarded – undo
662 660
     /**
663 661
      * Serialize the mysql result array into Post objects
664 662
      * 
665
-     * @param array(array) $result result of the mysql query
663
+     * @param resource $result result of the mysql query
666 664
      * 
667 665
      * @return array(Object)
668 666
      */
@@ -681,7 +679,7 @@  discard block
 block discarded – undo
681 679
      * 
682 680
      * @param array $record each post row
683 681
      * 
684
-     * @return object
682
+     * @return Post
685 683
      */
686 684
     private function _serializePost($record)
687 685
     {
@@ -741,7 +739,7 @@  discard block
 block discarded – undo
741 739
     /**
742 740
      * Serialize the mysql result array into Tag objects
743 741
      * 
744
-     * @param array(array) $result result of the mysql query
742
+     * @param resource $result result of the mysql query
745 743
      * 
746 744
      * @return array(Object)
747 745
      */
@@ -760,7 +758,7 @@  discard block
 block discarded – undo
760 758
      * 
761 759
      * @param array $record each tag row
762 760
      * 
763
-     * @return object
761
+     * @return Tag
764 762
      */
765 763
     private function _serializeTag($record)
766 764
     {
@@ -775,7 +773,7 @@  discard block
 block discarded – undo
775 773
     /**
776 774
      * Serialize the mysql result array into Category objects
777 775
      * 
778
-     * @param array(array) $result result of the mysql query
776
+     * @param resource $result result of the mysql query
779 777
      * 
780 778
      * @return array(Object)
781 779
      */
@@ -794,7 +792,7 @@  discard block
 block discarded – undo
794 792
      * 
795 793
      * @param array $record each category row
796 794
      * 
797
-     * @return object
795
+     * @return Category
798 796
      */
799 797
     private function _serializeCategory($record)
800 798
     {
@@ -809,7 +807,7 @@  discard block
 block discarded – undo
809 807
     /**
810 808
      * Serialize the mysql result array into Comment objects
811 809
      * 
812
-     * @param array(array) $result mysql query result
810
+     * @param resource $result mysql query result
813 811
      * 
814 812
      * @return array(Object)
815 813
      */
@@ -828,7 +826,7 @@  discard block
 block discarded – undo
828 826
      * 
829 827
      * @param array $record each comment row
830 828
      * 
831
-     * @return object
829
+     * @return Comment
832 830
      */
833 831
     private function _serializeComment($record)
834 832
     {
@@ -867,7 +865,7 @@  discard block
 block discarded – undo
867 865
     /**
868 866
      * Serialize the mysql result array into User objects
869 867
      * 
870
-     * @param array(array) $result result of the mysql query
868
+     * @param resource $result result of the mysql query
871 869
      * 
872 870
      * @return array(Object)
873 871
      */
@@ -886,7 +884,7 @@  discard block
 block discarded – undo
886 884
      * 
887 885
      * @param array $record each user row
888 886
      * 
889
-     * @return object
887
+     * @return User
890 888
      */
891 889
     private function _serializeUser($record)
892 890
     {
Please login to merge, or discard this patch.
src/POData/BaseService.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -665,6 +665,7 @@
 block discarded – undo
665 665
      * @param boolean      &$needToSerializeResponse On return, this will contain 
666 666
      *                                               True if response needs to be
667 667
      *                                               serialized, False otherwise.
668
+     * @param boolean $needToSerializeResponse
668 669
      *                                              
669 670
      * @return string|null The ETag for the entry object if it has eTag properties 
670 671
      *                     NULL otherwise.
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@  discard block
 block discarded – undo
5 5
 use POData\Common\MimeTypes;
6 6
 use POData\Common\Version;
7 7
 use POData\OperationContext\HTTPRequestMethod;
8
-use POData\Providers\Metadata\ResourceTypeKind;
9 8
 use POData\Common\ErrorHandler;
10 9
 use POData\Common\Messages;
11 10
 use POData\Common\ODataException;
@@ -30,11 +29,9 @@  discard block
 block discarded – undo
30 29
 use POData\Writers\Json\JsonODataV1Writer;
31 30
 use POData\Writers\Json\JsonODataV2Writer;
32 31
 use POData\Writers\ResponseWriter;
33
-
34 32
 use POData\Providers\Query\IQueryProvider;
35 33
 use POData\Providers\Metadata\IMetadataProvider;
36 34
 use POData\OperationContext\IOperationContext;
37
-
38 35
 use POData\Writers\ODataWriterRegistry;
39 36
 
40 37
 /**
Please login to merge, or discard this patch.