Passed
Push — master ( 5ce1b0...1f33cf )
by Stefan
07:05
created
SKien/JsonLD/JsonLD.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -223,10 +223,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
SKien/JsonLD/JsonLDLocalBusiness.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -302,7 +302,7 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
SKien/JsonLD/JsonLDEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.