Completed
Pull Request — master (#62)
by Christopher
03:55
created
src/POData/BaseService.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use POData\Common\ODataException;
12 12
 use POData\Common\ODataConstants;
13 13
 use POData\Common\NotImplementedException;
14
-use POData\Common\InvalidOperationException;
15 14
 use POData\Common\HttpStatus;
16 15
 use POData\Providers\Metadata\Type\IType;
17 16
 use POData\Providers\ProvidersWrapper;
Please login to merge, or discard this patch.
src/POData/UriProcessor/RequestExpander.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
     }
302 302
 
303 303
     /**
304
-     * @param $expandedProjectionNode
304
+     * @param ExpandedProjectionNode $expandedProjectionNode
305 305
      * @param $entry
306 306
      * @return null|\object[]
307 307
      */
@@ -327,10 +327,10 @@  discard block
 block discarded – undo
327 327
     }
328 328
 
329 329
     /**
330
-     * @param $expandedProjectionNode
330
+     * @param ExpandedProjectionNode $expandedProjectionNode
331 331
      * @param $entry
332
-     * @param $resourceType
333
-     * @param $expandedPropertyName
332
+     * @param \POData\Providers\Metadata\ResourceType $resourceType
333
+     * @param string $expandedPropertyName
334 334
      * @throws InvalidOperationException
335 335
      * @throws \POData\Common\ODataException
336 336
      */
@@ -360,9 +360,9 @@  discard block
 block discarded – undo
360 360
     /**
361 361
      * @param $entry
362 362
      * @param $result
363
-     * @param $expandedProjectionNode
364
-     * @param $resourceType
365
-     * @param $expandedPropertyName
363
+     * @param ExpandedProjectionNode $expandedProjectionNode
364
+     * @param \POData\Providers\Metadata\ResourceType $resourceType
365
+     * @param string $expandedPropertyName
366 366
      * @throws InvalidOperationException
367 367
      */
368 368
     private function executeCollectionExpansionProcessExpansion(
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      * @throws InvalidOperationException If this function invoked with non-navigation
195 195
      *                                   property instance
196 196
      */
197
-    private function pushSegmentForNavigationProperty(ResourceProperty &$resourceProperty)
197
+    private function pushSegmentForNavigationProperty(ResourceProperty & $resourceProperty)
198 198
     {
199 199
         if ($resourceProperty->getTypeKind() == ResourceTypeKind::ENTITY) {
200 200
             assert(!empty($this->getStack()->getSegmentNames()), '!is_empty($this->getStack()->getSegmentNames())');
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
      *
280 280
      * @return bool true if the segment was push, false otherwise
281 281
      */
282
-    private function pushSegment($segmentName, ResourceSetWrapper &$resourceSetWrapper)
282
+    private function pushSegment($segmentName, ResourceSetWrapper & $resourceSetWrapper)
283 283
     {
284 284
         return $this->getStack()->pushSegment($segmentName, $resourceSetWrapper);
285 285
     }
Please login to merge, or discard this patch.
src/POData/SimpleDataService.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,8 @@
 block discarded – undo
3 3
 namespace POData;
4 4
 
5 5
 use POData\Configuration\IServiceConfiguration;
6
-use POData\Configuration\ServiceConfiguration;
7 6
 use POData\Configuration\EntitySetRights;
8 7
 use POData\ObjectModel\IObjectSerialiser;
9
-use POData\ObjectModel\ObjectModelSerializer;
10 8
 use POData\OperationContext\ServiceHost;
11 9
 use POData\Providers\Stream\IStreamProvider;
12 10
 use POData\Providers\Metadata\IMetadataProvider;
Please login to merge, or discard this patch.
src/POData/Readers/Atom/AtomODataReader.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use DOMDocument;
6 6
 use ReflectionClass;
7 7
 use ReflectionException;
8
-use ReflectionProperty;
9 8
 
10 9
 class AtomODataReader
11 10
 {
Please login to merge, or discard this patch.
src/POData/Providers/Stream/SimpleStreamProvider.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
         $checkETagForEquality,
15 15
         IOperationContext $operationContext
16 16
     ) {
17
-         return null; // TODO: find default stream and return.
18
-      }
17
+            return null; // TODO: find default stream and return.
18
+        }
19 19
     public function getStreamContentType($entity,IOperationContext $operationContext)
20 20
     {
21 21
         return 'application/octet-stream';
22 22
     }
23
-     public function getStreamETag($entity, IOperationContext $operationContext)
23
+        public function getStreamETag($entity, IOperationContext $operationContext)
24 24
     {
25 25
         return null; // TODO: find default stream and return.
26 26
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     ) {
17 17
          return null; // TODO: find default stream and return.
18 18
       }
19
-    public function getStreamContentType($entity,IOperationContext $operationContext)
19
+    public function getStreamContentType($entity, IOperationContext $operationContext)
20 20
     {
21 21
         return 'application/octet-stream';
22 22
     }
Please login to merge, or discard this patch.