@@ -223,10 +223,10 @@ discard block |
||
223 | 223 | if (strlen($strType) > 0) { |
224 | 224 | $aCP = array("@type" => "ContactPoint"); |
225 | 225 | $aCP["contactType"] = $strType; |
226 | - if (strlen($strEMail) > 0 ) { |
|
226 | + if (strlen($strEMail) > 0) { |
|
227 | 227 | $aCP["email"] = $strEMail; |
228 | 228 | } |
229 | - if (strlen($strPhone) > 0 ) { |
|
229 | + if (strlen($strPhone) > 0) { |
|
230 | 230 | $aCP["telephone"] = $strPhone; |
231 | 231 | } |
232 | 232 | } |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | * @param string $strValue |
240 | 240 | * @param int $iType |
241 | 241 | */ |
242 | - public function setProperty(string $strName, string $strValue, int $iType=self::STRING) : void |
|
242 | + public function setProperty(string $strName, string $strValue, int $iType = self::STRING) : void |
|
243 | 243 | { |
244 | 244 | switch ($iType) { |
245 | 245 | case self::DATE: |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | if (count($aTime) == 2) { |
381 | 381 | $iHour = intval($aTime[0]); |
382 | 382 | $iMin = intval($aTime[1]); |
383 | - if ($iHour >= 0 && $iHour < 24 && $iMin >= 0 && $iMin <60) { |
|
383 | + if ($iHour >= 0 && $iHour < 24 && $iMin >= 0 && $iMin < 60) { |
|
384 | 384 | $strTime = sprintf('%02d:%02d', $iHour, $iMin); |
385 | 385 | } |
386 | 386 | } |
@@ -302,7 +302,7 @@ |
||
302 | 302 | } |
303 | 303 | $iIndex = count($this->aJsonLD["location"]["openingHoursSpecification"]); |
304 | 304 | $aOHS = array("@type" => "OpeningHoursSpecification"); |
305 | - $aDayOfWeek = array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunnday"); |
|
305 | + $aDayOfWeek = array("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunnday"); |
|
306 | 306 | for ($i = 0; $i < 7; $i++) { |
307 | 307 | if ($aWeekdays[$i] != 1) { |
308 | 308 | unset($aDayOfWeek[$i]); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | $aValid = array('InStock', 'SoldOut', 'PreOrder'); |
198 | 198 | if (in_array($strAvailable, $aValid)) { |
199 | 199 | $strName = $this->validString($strName); |
200 | - $strCur = strtoupper($this->validString($strCur)); |
|
200 | + $strCur = strtoupper($this->validString($strCur)); |
|
201 | 201 | $strURL = $this->validURL($strURL); |
202 | 202 | if (!isset($this->aJsonLD['offers'])) { |
203 | 203 | $this->aJsonLD['offers'] = array(); |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | * @param string $strURL |
236 | 236 | * @param string $strType |
237 | 237 | */ |
238 | - public function setOrganizer(string $strName, string $strURL = '', string $strType=self::ORGANIZATION) : void |
|
238 | + public function setOrganizer(string $strName, string $strURL = '', string $strType = self::ORGANIZATION) : void |
|
239 | 239 | { |
240 | 240 | $aValid = array('PerformingGroup', 'Person', 'Organization'); |
241 | 241 | $strName = $this->validString($strName); |