Passed
Pull Request — master (#245)
by Christopher
04:06
created
src/POData/OperationContext/Web/IncomingRequest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
             }
132 132
 
133 133
             $this->rawUrl .= '://' .
134
-                             $_SERVER[HttpProcessUtility::headerToServerKey(ODataConstants::HTTPREQUEST_HEADER_HOST)];
134
+                                $_SERVER[HttpProcessUtility::headerToServerKey(ODataConstants::HTTPREQUEST_HEADER_HOST)];
135 135
             $this->rawUrl .= utf8_decode(urldecode($_SERVER[ODataConstants::HTTPREQUEST_URI]));
136 136
         }
137 137
 
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/SimpleMetadataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -693,7 +693,7 @@
 block discarded – undo
693 693
         ResourceEntityType $concreteType = null
694 694
     ) {
695 695
         $allowedMult   = ['*', '1', '0..1'];
696
-        $backMultArray = [ '*' => '*', '1' => '0..1', '0..1' => '1'];
696
+        $backMultArray = ['*' => '*', '1' => '0..1', '0..1' => '1'];
697 697
         $this->checkInstanceProperty($name, $sourceResourceType);
698 698
 
699 699
         // check that property and resource name don't up and collide - would violate OData spec
Please login to merge, or discard this patch.
src/POData/Readers/Atom/Processors/Entry/LinkProcessor.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         switch ($this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME, null)) {
24 24
             case ODataConstants::ATOM_EDIT_RELATION_ATTRIBUTE_VALUE:
25 25
             case ODataConstants::ODATA_RELATED_NAMESPACE .
26
-                 $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_TITLE_ELELMET_NAME, ''):
26
+                    $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_TITLE_ELELMET_NAME, ''):
27 27
                 $object = ODataLink::class;
28 28
                 break;
29 29
             case ODataConstants::ATOM_EDIT_MEDIA_RELATION_ATTRIBUTE_VALUE:
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,14 +43,14 @@
 block discarded – undo
43 43
     public function handleStartNode($tagNamespace, $tagName, $attributes)
44 44
     {
45 45
         //The only sub notes that will exist will be the inline ones before we process the feed or entity.
46
-        assert($tagNamespace  === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE));
46
+        assert($tagNamespace === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE));
47 47
         assert($tagName === strtolower(ODataConstants::ATOM_INLINE_ELEMENT_NAME));
48 48
     }
49 49
 
50 50
     public function handleEndNode($tagNamespace, $tagName)
51 51
     {
52 52
         //The only sub notes that will exist will be the inline ones before we process the feed or entity.
53
-        assert($tagNamespace  === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE));
53
+        assert($tagNamespace === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE));
54 54
         assert($tagName === strtolower(ODataConstants::ATOM_INLINE_ELEMENT_NAME));
55 55
     }
56 56
 
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
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function handleStartAtomLink($attributes)
79 79
     {
80
-        $rel                      = $this->arrayKeyOrDefault(
80
+        $rel = $this->arrayKeyOrDefault(
81 81
             $attributes,
82 82
             ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME,
83 83
             ''
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     public function handleStartMetadataCount()
96 96
     {
97 97
         $this->enqueueEnd(function () {
98
-            $this->oDataFeed->rowCount =  (int)$this->popCharData();
98
+            $this->oDataFeed->rowCount = (int) $this->popCharData();
99 99
         });
100 100
     }
101 101
 
Please login to merge, or discard this patch.
src/POData/Readers/Atom/Processors/Entry/PropertyProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         if (strtolower($tagNamespace) === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE) &&
46 46
             strtolower($tagName) === strtolower((ODataConstants::ATOM_PROPERTIES_ELEMENT_NAME))
47 47
         ) {
48
-            return ;
48
+            return;
49 49
         }
50 50
         //TODO: this will need to be expanded with opengis namespaces as well when supported
51 51
         assert($tagNamespace === ODataConstants::ODATA_NAMESPACE ||
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         if (strtolower($tagNamespace) === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE) &&
72 72
             strtolower($tagName) === strtolower((ODataConstants::ATOM_PROPERTIES_ELEMENT_NAME))
73 73
         ) {
74
-            return ;
74
+            return;
75 75
         }
76 76
         // Pops a complex object off the stack
77 77
         $prop                                                  = $this->properties->pop();
Please login to merge, or discard this patch.
src/POData/Common/Messages/expressionLexer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@
 block discarded – undo
73 73
         $functionName,
74 74
         $protoTypes,
75 75
         $position
76
-    )
77
-    {
76
+    ) {
78 77
         return 'No applicable function found for \'' . $functionName . '\' at position ' . $position .
79 78
             ' with the specified arguments. The functions considered are: ' . $protoTypes;
80 79
     }
Please login to merge, or discard this patch.
src/POData/Common/Messages/expandProjectionParser.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@  discard block
 block discarded – undo
69 69
     public static function expandProjectionParserPrimitivePropertyUsedAsNavigationProperty(
70 70
         $resourceTypeName,
71 71
         $primitivePropertyName
72
-    )
73
-    {
72
+    ) {
74 73
         return 'Property \'' . $primitivePropertyName . '\' on type \'' . $resourceTypeName
75 74
             . '\' is of primitive type and cannot be used as a navigation property.';
76 75
     }
@@ -88,8 +87,7 @@  discard block
 block discarded – undo
88 87
     public static function expandProjectionParserComplexPropertyAsInnerSelectSegment(
89 88
         $resourceTypeName,
90 89
         $complexTypeName
91
-    )
92
-    {
90
+    ) {
93 91
         return 'select doesn\'t support selection of properties of complex type. The property \'' . $complexTypeName
94 92
             . '\' on type \'' . $resourceTypeName . '\' is a complex type.';
95 93
     }
Please login to merge, or discard this patch.
src/POData/Common/Messages/request.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@
 block discarded – undo
69 69
         $requestHeaderName,
70 70
         $requestedVersion,
71 71
         $availableVersions
72
-    )
73
-    {
72
+    ) {
74 73
         return 'The version value ' . $requestedVersion . ' in the header ' . $requestHeaderName . ' is not'
75 74
             . ' supported, available versions are ' . $availableVersions;
76 75
     }
Please login to merge, or discard this patch.
src/POData/Common/Messages/metadataWriter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@
 block discarded – undo
34 34
     public static function metadataWriterNoResourceAssociationSetForNavigationProperty(
35 35
         $navigationPropertyName,
36 36
         $resourceTypeName
37
-    )
38
-    {
37
+    ) {
39 38
         return 'No visible ResourceAssociationSet found for navigation property \'' . $navigationPropertyName .
40 39
             '\' on type \'' . $resourceTypeName . '\'. There must be at least one ResourceAssociationSet for' .
41 40
             ' each navigation property.';
Please login to merge, or discard this patch.