Completed
Pull Request — master (#269)
by Christopher
09:48 queued 37s
created
src/POData/HttpProcessUtility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -414,7 +414,7 @@
 block discarded – undo
414 414
 
415 415
         $textLen = strlen($text);
416 416
         if ($textIndex >= $textLen || '.' != $text[$textIndex]) {
417
-            return $qualityValue * 1000;
417
+            return $qualityValue*1000;
418 418
         }
419 419
 
420 420
         ++$textIndex;
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/Type/Binary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     public static function validateWithoutPrefix(string $value, &$outValue)
103 103
     {
104 104
         $length = strlen($value);
105
-        if (0 == $length || 0 != $length % 2) {
105
+        if (0 == $length || 0 != $length%2) {
106 106
             return false;
107 107
         }
108 108
 
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/ResourceAssociationSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         $type1 = $end1->getResourceType();
67 67
         $type2 = $end2->getResourceType();
68 68
 
69
-        if ($type1 === $type2  && $prop1 === $prop2) {
69
+        if ($type1 === $type2 && $prop1 === $prop2) {
70 70
             throw new InvalidArgumentException(
71 71
                 Messages::resourceAssociationSetSelfReferencingAssociationCannotBeBiDirectional()
72 72
             );
Please login to merge, or discard this patch.
src/POData/ObjectModel/CynicDeserialiser.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             $hasExpanded = null !== $link->getExpandedResult();
92 92
 
93 93
             $isEntry = ($link->getExpandedResult() ? $link->getExpandedResult()->getData() : null)
94
-                       instanceof ODataEntry;
94
+                        instanceof ODataEntry;
95 95
 
96 96
             if ($hasExpanded) {
97 97
                 if ($isEntry) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         assert($set instanceof ResourceSet, get_class($set));
138 138
         $type       = $set->getResourceType();
139 139
         $properties = $this->getDeserialiser()->bulkDeserialise($type, $content);
140
-        $properties = (object)$properties;
140
+        $properties = (object) $properties;
141 141
 
142 142
         if ($isCreate) {
143 143
             $result = $this->getWrapper()->createResourceforResourceSet($set, null, $properties);
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
             for ($i = 0; $i < $numEntries; $i++) {
323 323
                 $targEntityInstance = $bulkResult[$i];
324 324
                 $this->getWrapper()->hookSingleModel($sourceSet, $source, $targSet, $targEntityInstance, $propName);
325
-                $key                                                   = $this->generateKeyDescriptor($targType, $targEntityInstance);
325
+                $key = $this->generateKeyDescriptor($targType, $targEntityInstance);
326 326
                 $link->getExpandedResult()->getFeed()->getEntries()[$i]->id = $key;
327 327
             }
328 328
         }
Please login to merge, or discard this patch.
src/POData/ObjectModel/ODataLink.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
     {
225 225
         return !array_reduce(
226 226
             ['isExpanded', 'isCollection', 'expandedResult', 'title', 'type', 'name', 'url'],
227
-            function ($carry, $value){
227
+            function ($carry, $value) {
228 228
                 return $carry || isset($this->{$value});
229 229
             }, false);
230 230
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
     {
225 225
         return !array_reduce(
226 226
             ['isExpanded', 'isCollection', 'expandedResult', 'title', 'type', 'name', 'url'],
227
-            function ($carry, $value){
227
+            function ($carry, $value) {
228 228
                 return $carry || isset($this->{$value});
229 229
             }, false);
230 230
     }
Please login to merge, or discard this patch.
src/POData/Readers/Atom/Processors/Entry/PropertyProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         assert($tagNamespace === ODataConstants::ODATA_NAMESPACE ||
51 51
             $tagNamespace === ODataConstants::ODATA_METADATA_NAMESPACE);
52 52
 
53
-        $property           = new ODataProperty(
53
+        $property = new ODataProperty(
54 54
             $tagName,
55 55
             $this->arrayKeyOrDefault(
56 56
                 $attributes,
Please login to merge, or discard this patch.
POData/UriProcessor/ResourcePathProcessor/SegmentParser/KeyDescriptor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -590,13 +590,13 @@
 block discarded – undo
590 590
         foreach ($values as $propName => $propDeets) {
591 591
             assert(2 == count($propDeets));
592 592
             assert($propDeets[1] instanceof IType);
593
-            $property           = new ODataProperty(
593
+            $property = new ODataProperty(
594 594
                 strval($propName),
595 595
                 $propDeets[1]->getFullTypeName(),
596 596
                 $propDeets[1]->convert($propDeets[0])
597 597
 
598 598
             );
599
-            $result[$propName]  = $property;
599
+            $result[$propName] = $property;
600 600
         }
601 601
 
602 602
         return $result;
Please login to merge, or discard this patch.
src/POData/Readers/Atom/Processors/FeedProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME,
85 85
             ''
86 86
         );
87
-        $prop                     = $rel === ODataConstants::ATOM_SELF_RELATION_ATTRIBUTE_VALUE ? 'setSelfLink' : 'setNextPageLink';
87
+        $prop = $rel === ODataConstants::ATOM_SELF_RELATION_ATTRIBUTE_VALUE ? 'setSelfLink' : 'setNextPageLink';
88 88
         $this->oDataFeed->{$prop}(new ODataLink(
89 89
             $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME, ''),
90 90
             $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_TITLE_ELELMET_NAME, ''),
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     public function handleStartMetadataCount()
98 98
     {
99 99
         $this->enqueueEnd(function () {
100
-            $this->oDataFeed->setRowCount((int)$this->popCharData());
100
+            $this->oDataFeed->setRowCount((int) $this->popCharData());
101 101
         });
102 102
     }
103 103
 
Please login to merge, or discard this patch.
src/POData/ObjectModel/ODataPropertyContent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function setPropertys(array $newProperties): self
41 41
     {
42
-        assert(array_reduce($newProperties, function($carry, $item) { return  $carry & $item instanceof ODataProperty; }, true));
42
+        assert(array_reduce($newProperties, function ($carry, $item) { return  $carry & $item instanceof ODataProperty; }, true));
43 43
         $this->properties = $newProperties;
44 44
         return $this;
45 45
     }
Please login to merge, or discard this patch.