Completed
Pull Request — master (#90)
by Alex
04:37
created
src/MetadataV3/edm/TSchemaType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                 die($this->getNamespace());
150 150
                 return false;
151 151
             }*/
152
-            $eSetType = str_replace($this->getNamespace() . ".", "", $eSetType);
152
+            $eSetType = str_replace($this->getNamespace().".", "", $eSetType);
153 153
             if (!in_array($eSetType, $entityTypeNames)) {
154 154
                 $msg = "entitySet Types should have a matching type name in entity Types";
155 155
                 return false;
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
         // Check Associations to associationSets
160 160
         if (count($associationSets) != count($associationNames)) {
161
-            $msg = "we have " . count($associationSets) . "association sets and " . count($associationNames)
161
+            $msg = "we have ".count($associationSets)."association sets and ".count($associationNames)
162 162
                    . " associations, they should be the same";
163 163
         }
164 164
         if (count($associationNames) * 2 < count($navigationProperties)) {
@@ -168,12 +168,12 @@  discard block
 block discarded – undo
168 168
 
169 169
         foreach ($associationNames as $associationName => $associationEnds) {
170 170
             if (!array_key_exists($associationName, $associationSets)) {
171
-                $msg = "association " . $associationName . " exists without matching associationSet";
171
+                $msg = "association ".$associationName." exists without matching associationSet";
172 172
                 return false;
173 173
             }
174 174
 
175 175
             if (!array_key_exists($associationName, $navigationProperties)) {
176
-                $msg = "association " . $associationName . " exists without matching Natvigation Property";
176
+                $msg = "association ".$associationName." exists without matching Natvigation Property";
177 177
                 return false;
178 178
             }
179 179
             if (!in_array(
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                 [$associationEnds[0]->getRole(), $associationEnds[1]->getRole()]
182 182
             )
183 183
             ) {
184
-                $msg = "association Set role " . $associationSets[$associationName][0]->getRole()
184
+                $msg = "association Set role ".$associationSets[$associationName][0]->getRole()
185 185
                        . "lacks a matching property in the attached association";
186 186
                 return false;
187 187
             }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                 $associationSets[$associationName][1]->getRole(),
190 190
                 [$associationEnds[0]->getRole(), $associationEnds[1]->getRole()]
191 191
             )) {
192
-                $msg = "association Set role " . $associationSets[$associationName][0]->getRole()
192
+                $msg = "association Set role ".$associationSets[$associationName][0]->getRole()
193 193
                        . "lacks a matching property in the attached association";
194 194
                 return false;
195 195
             }
Please login to merge, or discard this patch.