Completed
Push — master ( b333c5...030b4a )
by Christopher
03:45
created
src/POData/Providers/ProvidersWrapper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -950,7 +950,7 @@
 block discarded – undo
950 950
     }
951 951
     /**
952 952
      * Delete resource from a resource set.
953
-     * @param ResourceSet|null $sourceResourceSet
953
+     * @param ResourceSet $sourceResourceSet
954 954
      * @param object           $sourceEntityInstance
955 955
      *
956 956
      * return bool true if resources sucessfully deteled, otherwise false.
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
                 );
840 840
             }
841 841
             foreach ($targetProperty->getResourceType()->getKeyProperties()
842
- as $keyName => $resourceProperty) {
842
+    as $keyName => $resourceProperty) {
843 843
                 try {
844 844
                     $keyValue = $targetResourceType->getPropertyValue($entityInstance, $keyName);
845 845
                     if (is_null($keyValue)) {
@@ -896,7 +896,7 @@  discard block
 block discarded – undo
896 896
         }
897 897
 
898 898
         foreach ($keyDescriptor->getValidatedNamedValues()
899
- as $keyName => $valueDescription) {
899
+    as $keyName => $valueDescription) {
900 900
             try {
901 901
                 $keyValue = $resourceType->getPropertyValue($entityInstance, $keyName);
902 902
                 if (is_null($keyValue)) {
@@ -923,16 +923,16 @@  discard block
 block discarded – undo
923 923
     }
924 924
     
925 925
         /**
926
-     * Updates a resource
927
-     *
928
-     * @param ResourceSet      $sourceResourceSet    The entity set containing the source entity
929
-     * @param object           $sourceEntityInstance The source entity instance
930
-     * @param KeyDescriptor    $keyDescriptor        The key identifying the entity to fetch
931
-     * @param object           $data                 The New data for the entity instance.
932
-     * @param bool             $shouldUpdate        Should undefined values be updated or reset to default
933
-     *
934
-     * @return object|null The new resource value if it is assignable or throw exception for null.
935
-     */
926
+         * Updates a resource
927
+         *
928
+         * @param ResourceSet      $sourceResourceSet    The entity set containing the source entity
929
+         * @param object           $sourceEntityInstance The source entity instance
930
+         * @param KeyDescriptor    $keyDescriptor        The key identifying the entity to fetch
931
+         * @param object           $data                 The New data for the entity instance.
932
+         * @param bool             $shouldUpdate        Should undefined values be updated or reset to default
933
+         *
934
+         * @return object|null The new resource value if it is assignable or throw exception for null.
935
+         */
936 936
     public function updateResource(
937 937
         ResourceSet $sourceResourceSet,
938 938
         $sourceEntityInstance,
Please login to merge, or discard this patch.