Passed
Push — master ( 235f7d...b93d11 )
by Stefan
01:24
created
ContactDetails.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -228,9 +228,9 @@  discard block
 block discarded – undo
228 228
     			<label class="ptype" for="gender">gender:</label>
229 229
     			<select id="gender" name="genders_0_value">
230 230
     				<option value=""></option>
231
-    				<option value="male"<?php echo ($oContact['genders'][0]['value'] ?? '') == 'male' ? ' selected' : '';?>>male</option>
232
-    				<option value="female"<?php echo ($oContact['genders'][0]['value'] ?? '') == 'female' ? ' selected' : '';?>>female</option>
233
-    				<option value="unspecified"<?php echo ($oContact['genders'][0]['value'] ?? '') == 'unspecified' ? ' selected' : '';?>>unspecified</option>
231
+    				<option value="male"<?php echo ($oContact['genders'][0]['value'] ?? '') == 'male' ? ' selected' : ''; ?>>male</option>
232
+    				<option value="female"<?php echo ($oContact['genders'][0]['value'] ?? '') == 'female' ? ' selected' : ''; ?>>female</option>
233
+    				<option value="unspecified"<?php echo ($oContact['genders'][0]['value'] ?? '') == 'unspecified' ? ' selected' : ''; ?>>unspecified</option>
234 234
     			</select>
235 235
     			<br/>
236 236
 			</fieldset>
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     echo '                <input type="tel" id="' . $strField . '" name="' . $strFieldName . '" value="' . ($aPhone['value'] ?? '') . '">' . PHP_EOL;
249 249
     echo '                <label class="ptype" for="' . $strType . '">type:</label>' . PHP_EOL;
250 250
     echo '                <input class="ptype" type="text" id="' . $strType . '" name="' . $strTypeName . '" value="' . ($aPhone['type'] ?? 'other') . '">' . PHP_EOL;
251
-    echo '                <input type="radio" name="phoneNumbers" value="' . ($i-1) . '"' . $strPrimary . '>&nbsp;primary phone' . PHP_EOL;
251
+    echo '                <input type="radio" name="phoneNumbers" value="' . ($i - 1) . '"' . $strPrimary . '>&nbsp;primary phone' . PHP_EOL;
252 252
     echo '                <br/>' . PHP_EOL;
253 253
 }
254 254
 ?>
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     echo '                <input class="mail" type="text" id="' . $strField . '" name="' . $strFieldName . '" value="' . ($aMail['value'] ?? '') . '">' . PHP_EOL;
268 268
     echo '                <label class="ptype" for="' . $strType . '">type:</label>' . PHP_EOL;
269 269
     echo '                <input class="ptype" type="text" id="' . $strType . '" name="' . $strTypeName . '" value="' . ($aMail['type'] ?? 'other') . '">' . PHP_EOL;
270
-    echo '                <input type="radio" name="emailAddresses" value="' . ($i-1) . '"' . $strPrimary . '>&nbsp;primary email' . PHP_EOL;
270
+    echo '                <input type="radio" name="emailAddresses" value="' . ($i - 1) . '"' . $strPrimary . '>&nbsp;primary email' . PHP_EOL;
271 271
     echo '                <br/>' . PHP_EOL;
272 272
 }
273 273
 ?>
@@ -295,23 +295,23 @@  discard block
 block discarded – undo
295 295
     }
296 296
     $strPrimary = $oContact->isPrimaryItem($aAdr) ? ' checked' : '';
297 297
     echo '                <label for="adrType' . $i . '">type:</label>' . PHP_EOL;
298
-    echo '                <input class="ptype" type="text" id="adrType' . $i . '" name="addresses_' . ($i-1) . '_type" value="' . ($aAdr['type'] ?? 'home') . '">' . PHP_EOL;
299
-    echo '                <input type="radio" name="addresses" value="' . ($i-1) . '"' . $strPrimary . '>&nbsp;primary address' . PHP_EOL;
298
+    echo '                <input class="ptype" type="text" id="adrType' . $i . '" name="addresses_' . ($i - 1) . '_type" value="' . ($aAdr['type'] ?? 'home') . '">' . PHP_EOL;
299
+    echo '                <input type="radio" name="addresses" value="' . ($i - 1) . '"' . $strPrimary . '>&nbsp;primary address' . PHP_EOL;
300 300
     echo '                <br/>' . PHP_EOL;
301 301
     echo '                <label for="adrStreet' . $i . '">adrStreet:</label>' . PHP_EOL;
302
-    echo '                <input class="city" type="text" id="adrStreet' . $i . '" name="addresses_' . ($i-1) . '_streetAddress" value="' . ($aAdr['streetAddress'] ?? '') . '">' . PHP_EOL;
303
-    echo '                <input class="ptype" type="text" id="extendedAddress' . $i . '" name="addresses_' . ($i-1) . '_extendedAddress" value="' . ($aAdr['extendedAddress'] ?? '') . '">' . PHP_EOL;
302
+    echo '                <input class="city" type="text" id="adrStreet' . $i . '" name="addresses_' . ($i - 1) . '_streetAddress" value="' . ($aAdr['streetAddress'] ?? '') . '">' . PHP_EOL;
303
+    echo '                <input class="ptype" type="text" id="extendedAddress' . $i . '" name="addresses_' . ($i - 1) . '_extendedAddress" value="' . ($aAdr['extendedAddress'] ?? '') . '">' . PHP_EOL;
304 304
     echo '                <br/>' . PHP_EOL;
305 305
     echo '                <label for="adrPostcode' . $i . '">adrPostcode/adrCity:</label>' . PHP_EOL;
306
-    echo '                <input class="ptype" type="text" id="adrPostcode' . $i . '" name="addresses_' . ($i-1) . '_postalCode" value="' . ($aAdr['postalCode'] ?? '') . '">' . PHP_EOL;
307
-    echo '                <input class="city" type="text" id="adrCity' . $i . '" name="addresses_' . ($i-1) . '_city" value="' . ($aAdr['city'] ?? '') . '">' . PHP_EOL;
306
+    echo '                <input class="ptype" type="text" id="adrPostcode' . $i . '" name="addresses_' . ($i - 1) . '_postalCode" value="' . ($aAdr['postalCode'] ?? '') . '">' . PHP_EOL;
307
+    echo '                <input class="city" type="text" id="adrCity' . $i . '" name="addresses_' . ($i - 1) . '_city" value="' . ($aAdr['city'] ?? '') . '">' . PHP_EOL;
308 308
     echo '                <br/>' . PHP_EOL;
309 309
     echo '                <label for="adrCountry' . $i . '">adrCountry/Code:</label>' . PHP_EOL;
310
-    echo '                <input class="city" type="text" id="adrCountry' . $i . '" name="addresses_' . ($i-1) . '_country" value="' . ($aAdr['country'] ?? '') . '">' . PHP_EOL;
311
-    echo '                <input class="ptype" type="text" id="adrCountryCode' . $i . '" name="addresses_' . ($i-1) . '_countryCode" value="' . ($aAdr['countryCode'] ?? '') . '">' . PHP_EOL;
310
+    echo '                <input class="city" type="text" id="adrCountry' . $i . '" name="addresses_' . ($i - 1) . '_country" value="' . ($aAdr['country'] ?? '') . '">' . PHP_EOL;
311
+    echo '                <input class="ptype" type="text" id="adrCountryCode' . $i . '" name="addresses_' . ($i - 1) . '_countryCode" value="' . ($aAdr['countryCode'] ?? '') . '">' . PHP_EOL;
312 312
     echo '                <br/>' . PHP_EOL;
313 313
     echo '                <label for="adrPOBox' . $i . '">adrPOBox:</label>' . PHP_EOL;
314
-    echo '                <input type="text" id="adrPOBox' . $i . '" name="addresses_' . ($i-1) . '_poBox" value="' . ($aAdr['poBox'] ?? '') . '">' . PHP_EOL;
314
+    echo '                <input type="text" id="adrPOBox' . $i . '" name="addresses_' . ($i - 1) . '_poBox" value="' . ($aAdr['poBox'] ?? '') . '">' . PHP_EOL;
315 315
     echo '                <br/>' . PHP_EOL;
316 316
 }
317 317
 ?>
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,10 @@
 block discarded – undo
165 165
 		<input type="hidden" name="metadataId" value="<?=$oContact['metadata']['sources'][0]['id']?>">
166 166
 		<input type="hidden" name="metadataEtag" value="<?=$oContact['metadata']['sources'][0]['etag']?>">
167 167
 		<h2><?=$strTitle?></h2>
168
-		<p>Letzte Änderung: <?php if ($uxtsLastModified > 0) echo date('d.m.Y - H:i:s', $uxtsLastModified); ?></p>
168
+		<p>Letzte Änderung: <?php if ($uxtsLastModified > 0) {
169
+    echo date('d.m.Y - H:i:s', $uxtsLastModified);
170
+}
171
+?></p>
169 172
 		<div>
170 173
 <?php
171 174
 $iVisibleGroups = 0;
Please login to merge, or discard this patch.
displayApiError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  */
8 8
 function displayApiError(string $strAction, string $strResourceName, int $iResponseCode, string $strMessage, string $strStatus) : void
9 9
 {
10
-    $strHTML =<<<HTML
10
+    $strHTML = <<<HTML
11 11
         <html>
12 12
         <head>
13 13
         <style>
Please login to merge, or discard this patch.
SKien/Google/GClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -562,7 +562,7 @@
 block discarded – undo
562 562
         $aHeader['status'] = $aLine[0];
563 563
         array_shift($aLine);
564 564
 
565
-        foreach ($aLine as $strLine){
565
+        foreach ($aLine as $strLine) {
566 566
             // only consider the first colon, since other colons can also appear in
567 567
             // the header value - the rest of such a value would be lost
568 568
             // (eg "Location: https: // www ...." - "// www ...." would be gone !)
Please login to merge, or discard this patch.