Index: trunk/prototype/plugins/icalcreator/iCalcreator.class.php
===================================================================
--- trunk/prototype/plugins/icalcreator/iCalcreator.class.php	(revision 7660)
+++ trunk/prototype/plugins/icalcreator/iCalcreator.class.php	(revision 7730)
@@ -1702,5 +1702,5 @@
     foreach( $rows as $lix => $line ) {
       if(     'BEGIN:VCALENDAR' == strtoupper( substr( $line, 0, 15 ))) {
-        $calsync++;
+          ++$calsync;
         continue;
       }
@@ -1725,17 +1725,17 @@
       elseif( 'BEGIN:VFREEBUSY' == strtoupper( substr( $line, 0, 15 ))) {
         $comp = new vfreebusy( $config );
-        $compsync++;
+          ++$compsync;
       }
       elseif( 'BEGIN:VJOURNAL'  == strtoupper( substr( $line, 0, 14 ))) {
         $comp = new vjournal( $config );
-        $compsync++;
+          ++$compsync;
       }
       elseif( 'BEGIN:VTODO'     == strtoupper( substr( $line, 0, 11 ))) {
         $comp = new vtodo( $config );
-        $compsync++;
+          ++$compsync;
       }
       elseif( 'BEGIN:VTIMEZONE' == strtoupper( substr( $line, 0, 15 ))) {
         $comp = new vtimezone( $config );
-        $compsync++;
+          ++$compsync;
       }
       else { /* update component with unparsed data */
@@ -1769,5 +1769,5 @@
           else
             $propname .= $char;
-          $cix++;
+            ++$cix;
         }
             /* skip non standard property names */
@@ -1814,5 +1814,5 @@
           else
             $attr[$attrix] .= $line[$cix];
-          $cix++;
+            ++$cix;
         }
             /* make attributes in array format */
@@ -1831,10 +1831,10 @@
           while( FALSE !== substr( $line, $lix, 1 )) {
             if(( 0 < $lix ) && ( ',' == $line[$lix] ) && ( "\\" != $line[( $lix - 1 )])) {
-              $cix++;
+                ++$cix;
               $content[$cix] = '';
             }
             else
               $content[$cix] .= $line[$lix];
-            $lix++;
+              ++$lix;
           }
           if( 1 < count( $content )) {
@@ -4372,5 +4372,5 @@
     $length = 6;
     $str    = null;
-    for( $p = 0; $p < $length; $p++ )
+    for( $p = 0; $p < $length; ++$p )
       $unique .= $base{mt_rand( $start, $end )};
     $this->uid = array( 'params' => null );
@@ -4789,5 +4789,5 @@
                 }
                 $content2 .= $content21.$content22;
-                $bydaycnt++;
+                  ++$bydaycnt;
               }
               else {
@@ -4797,5 +4797,5 @@
                 else {
                   $content22 .= $valuePart;
-                  $bydaycnt++;
+                    ++$bydaycnt;
                 }
                 $content2 .= $content21.$content22;
@@ -5366,5 +5366,5 @@
         $ak = ( is_array( $this->attach )) ? array_keys( $this->attach ) : array();
         while( is_array( $this->attach ) && !isset( $this->attach[$propix] ) && ( 0 < count( $this->attach )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->attach[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5374,5 +5374,5 @@
         $ak = ( is_array( $this->attendee )) ? array_keys( $this->attendee ) : array();
         while( is_array( $this->attendee ) && !isset( $this->attendee[$propix] ) && ( 0 < count( $this->attendee )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->attendee[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5382,5 +5382,5 @@
         $ak = ( is_array( $this->categories )) ? array_keys( $this->categories ) : array();
         while( is_array( $this->categories ) && !isset( $this->categories[$propix] ) && ( 0 < count( $this->categories )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->categories[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5393,5 +5393,5 @@
         $ak = ( is_array( $this->comment )) ? array_keys( $this->comment ) : array();
         while( is_array( $this->comment ) && !isset( $this->comment[$propix] ) && ( 0 < count( $this->comment )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->comment[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5404,5 +5404,5 @@
         $ak = ( is_array( $this->contact )) ? array_keys( $this->contact ) : array();
         while( is_array( $this->contact ) && !isset( $this->contact[$propix] ) && ( 0 < count( $this->contact )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->contact[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5415,5 +5415,5 @@
         $ak = ( is_array( $this->description )) ? array_keys( $this->description ) : array();
         while( is_array( $this->description ) && !isset( $this->description[$propix] ) && ( 0 < count( $this->description )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->description[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5444,5 +5444,5 @@
         $ak = ( is_array( $this->exdate )) ? array_keys( $this->exdate ) : array();
         while( is_array( $this->exdate ) && !isset( $this->exdate[$propix] ) && ( 0 < count( $this->exdate )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->exdate[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5452,5 +5452,5 @@
         $ak = ( is_array( $this->exrule )) ? array_keys( $this->exrule ) : array();
         while( is_array( $this->exrule ) && !isset( $this->exrule[$propix] ) && ( 0 < count( $this->exrule )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->exrule[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5460,5 +5460,5 @@
         $ak = ( is_array( $this->freebusy )) ? array_keys( $this->freebusy ) : array();
         while( is_array( $this->freebusy ) && !isset( $this->freebusy[$propix] ) && ( 0 < count( $this->freebusy )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->freebusy[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5486,5 +5486,5 @@
         $ak = ( is_array( $this->rdate )) ? array_keys( $this->rdate ) : array();
         while( is_array( $this->rdate ) && !isset( $this->rdate[$propix] ) && ( 0 < count( $this->rdate )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->rdate[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5497,5 +5497,5 @@
         $ak = ( is_array( $this->relatedto )) ? array_keys( $this->relatedto ) : array();
         while( is_array( $this->relatedto ) && !isset( $this->relatedto[$propix] ) && ( 0 < count( $this->relatedto )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->relatedto[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5508,5 +5508,5 @@
         $ak = ( is_array( $this->requeststatus )) ? array_keys( $this->requeststatus ) : array();
         while( is_array( $this->requeststatus ) && !isset( $this->requeststatus[$propix] ) && ( 0 < count( $this->requeststatus )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->requeststatus[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5516,5 +5516,5 @@
         $ak = ( is_array( $this->resources )) ? array_keys( $this->resources ) : array();
         while( is_array( $this->resources ) && !isset( $this->resources[$propix] ) && ( 0 < count( $this->resources )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->resources[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5524,5 +5524,5 @@
         $ak = ( is_array( $this->rrule )) ? array_keys( $this->rrule ) : array();
         while( is_array( $this->rrule ) && !isset( $this->rrule[$propix] ) && ( 0 < count( $this->rrule )) && ( $propix < end( $ak )))
-          $propix++;
+            ++$propix;
         $this->propix[$propName] = $propix;
         if( !isset( $this->rrule[$propix] )) { unset( $this->propix[$propName] ); return FALSE; }
@@ -5676,5 +5676,5 @@
       return FALSE;
     $arglist[0] = strtoupper( $arglist[0] );
-    for( $argix=$numargs; $argix < 12; $argix++ ) {
+    for( $argix=$numargs; $argix < 12; ++$argix ) {
       if( !isset( $arglist[$argix] ))
         $arglist[$argix] = null;
@@ -5830,16 +5830,16 @@
       elseif( 'BEGIN:VALARM'   == strtoupper( substr( $line, 0, 12 ))) {
         $comp = new valarm( $config);
-        $subsync++;
+          ++$subsync;
       }
       elseif( 'BEGIN:STANDARD' == strtoupper( substr( $line, 0, 14 ))) {
         $comp = new vtimezone( 'standard', $config );
-        $subsync++;
+          ++$subsync;
       }
       elseif( 'BEGIN:DAYLIGHT' == strtoupper( substr( $line, 0, 14 ))) {
         $comp = new vtimezone( 'daylight', $config );
-        $subsync++;
+          ++$subsync;
       }
       elseif( 'BEGIN:'         == strtoupper( substr( $line, 0, 6 )))  // begin:<component>
-        $compsync++;
+          ++$compsync;
       else
         $comp->unparsed[]       = $line;
@@ -5918,5 +5918,5 @@
             break;
           }
-          $cix++;
+            ++$cix;
         }
         if( '"' == $line[$cix] )
@@ -5926,5 +5926,5 @@
         else
           $attr[$attrix] .= $line[$cix];
-        $cix++;
+          ++$cix;
       }
             /* make attributes in array format */
@@ -5959,10 +5959,10 @@
             while( FALSE !== substr( $line, $lix, 1 )) {
               if(( ',' == $line[$lix] ) && ( "\\" != $line[( $lix - 1 )])) {
-                $cix++;
+                  ++$cix;
                 $content[$cix] = '';
               }
               else
                 $content[$cix] .= $line[$lix];
-              $lix++;
+                ++$lix;
             }
             if( 1 < count( $content )) {
@@ -6159,5 +6159,5 @@
           return TRUE;
         }
-        $cix2dC++;
+          ++$cix2dC;
       }
       elseif( !$argType && ($arg1 == $component->getProperty( 'uid' ))) {
@@ -6210,5 +6210,5 @@
          if( $index == $cix2gC )
            return $component->copy();
-         $cix2gC++;
+          ++$cix2gC;
       }
       elseif( !$argType && ( $arg1 == $component->getProperty( 'uid' )))
@@ -6303,5 +6303,5 @@
           return TRUE;
         }
-        $cix2sC++;
+          ++$cix2sC;
       }
       elseif( !$argType && ( $arg1 == $component2->getProperty( 'uid' ))) { // UID insert/replace
@@ -9144,5 +9144,5 @@
         }
         $name[$k]  .= $char;
-        $x++;
+          ++$x;
       }
     }
