[TASK] Clean up phpDoc comments in typo3/sysext/
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 15 Jun 2012 16:44:53 +0000 (18:44 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 16 Jun 2012 14:21:53 +0000 (16:21 +0200)
Clean up phpDoc comments for the following classes:

* typo3/sysext/cms/tslib/hooks/class.tx_cms_fehooks.php
* typo3/sysext/cms/tslib/hooks/class.tx_cms_mediaitems.php
* typo3/sysext/cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php

Clean up provides:

* Provide correct parameter names in phpDoc
* Provide correct data types in phpDoc
* CGLify phpDoc (remove tabs)

Change-Id: Iaba214e833f3d256df2f8b4691c03f8ca85c36fd
Resolves: #38098
Releases: 6.0
Reviewed-on: http://review.typo3.org/12104
Reviewed-by: Oliver Klee
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/cms/tslib/hooks/class.tx_cms_fehooks.php
typo3/sysext/cms/tslib/hooks/class.tx_cms_mediaitems.php
typo3/sysext/cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php

index 5b67e12..cc8b474 100644 (file)
@@ -37,8 +37,8 @@ class tx_cms_fehooks {
         * Include the preview block in cause we're looking at a hidden page
         * in the LIVE workspace
         *
         * Include the preview block in cause we're looking at a hidden page
         * in the LIVE workspace
         *
-        * @param  $params
-        * @param  $pObj
+        * @param array $params
+        * @param tslib_fe $pObj
         * @return string
         */
        public function hook_previewInfo($params, $pObj) {
         * @return string
         */
        public function hook_previewInfo($params, $pObj) {
index 8804682..c6c820b 100644 (file)
@@ -37,8 +37,9 @@ class tx_cms_mediaItems implements t3lib_Singleton {
        /**
         * Load extra render types if they exist
         *
        /**
         * Load extra render types if they exist
         *
-        * @param       array           $params: Existing types by reference
-        * @param       array           $conf: config array
+        * @param array $params Existing types by reference
+        * @param array $conf Config array
+        * @return void
         */
        public function customMediaRenderTypes(&$params, $conf) {
                if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/hooks/class.tx_cms_mediaitems.php']['customMediaRenderTypes'])) {
         */
        public function customMediaRenderTypes(&$params, $conf) {
                if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/hooks/class.tx_cms_mediaitems.php']['customMediaRenderTypes'])) {
@@ -47,15 +48,14 @@ class tx_cms_mediaItems implements t3lib_Singleton {
                                $hookObj->customMediaRenderTypes($params, $conf);
                        }
                }
                                $hookObj->customMediaRenderTypes($params, $conf);
                        }
                }
-
-
        }
 
        /**
         * Load extra predefined media params if they exist
         *
        }
 
        /**
         * Load extra predefined media params if they exist
         *
-        * @param       array           $params: Existing types by reference
-        * @param       array           $conf: config array
+        * @param array $params Existing types by reference
+        * @param array $conf Config array
+        * @return void
         */
        public function customMediaParams(&$params, $conf) {
 
         */
        public function customMediaParams(&$params, $conf) {
 
@@ -65,8 +65,6 @@ class tx_cms_mediaItems implements t3lib_Singleton {
                                $hookObj->customMediaParams($params, $conf);
                        }
                }
                                $hookObj->customMediaParams($params, $conf);
                        }
                }
-
-
        }
 }
 ?>
\ No newline at end of file
        }
 }
 ?>
\ No newline at end of file
index 5cff55e..413d333 100644 (file)
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/
 
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/
 
-
 /**
  * Class that hooks into TCEmain and listens for updates to pages to update the
  * treelist cache
  *
 /**
  * Class that hooks into TCEmain and listens for updates to pages to update the
  * treelist cache
  *
- * @author     Ingo Renner <ingo@typo3.org>
+ * @author Ingo Renner <ingo@typo3.org>
  * @package TYPO3
  * @subpackage tslib
  */
 class tx_cms_treelistCacheUpdate {
 
  * @package TYPO3
  * @subpackage tslib
  */
 class tx_cms_treelistCacheUpdate {
 
-               // should not be manipulated from others except through the
+               // Should not be manipulated from others except through the
                // configuration provided @see __construct()
        private $updateRequiringFields = array(
                'pid',
                // configuration provided @see __construct()
        private $updateRequiringFields = array(
                'pid',
@@ -45,19 +44,18 @@ class tx_cms_treelistCacheUpdate {
        );
 
        /**
        );
 
        /**
-        * constructor, adds update requiring fields to the default ones
-        *
+        * Constructor, adds update requiring fields to the default ones
         */
        public function __construct() {
 
         */
        public function __construct() {
 
-                       // as enableFields can be set dynamically we add them here
+                       // As enableFields can be set dynamically we add them here
                $pagesEnableFields = $GLOBALS['TCA']['pages']['ctrl']['enablecolumns'];
                foreach ($pagesEnableFields as $pagesEnableField) {
                        $this->updateRequiringFields[] = $pagesEnableField;
                }
                $this->updateRequiringFields[] = $GLOBALS['TCA']['pages']['ctrl']['delete'];
 
                $pagesEnableFields = $GLOBALS['TCA']['pages']['ctrl']['enablecolumns'];
                foreach ($pagesEnableFields as $pagesEnableField) {
                        $this->updateRequiringFields[] = $pagesEnableField;
                }
                $this->updateRequiringFields[] = $GLOBALS['TCA']['pages']['ctrl']['delete'];
 
-                       // extension can add fields to the pages table that require an
+                       // Extension can add fields to the pages table that require an
                        // update of the treelist cache, too; so we also add those
                        // example: $TYPO3_CONF_VARS['BE']['additionalTreelistUpdateFields'] .= ',my_field';
                if (!empty($GLOBALS['TYPO3_CONF_VARS']['BE']['additionalTreelistUpdateFields'])) {
                        // update of the treelist cache, too; so we also add those
                        // example: $TYPO3_CONF_VARS['BE']['additionalTreelistUpdateFields'] .= ',my_field';
                if (!empty($GLOBALS['TYPO3_CONF_VARS']['BE']['additionalTreelistUpdateFields'])) {
@@ -69,18 +67,18 @@ class tx_cms_treelistCacheUpdate {
 
                        $this->updateRequiringFields += $additionalTreelistUpdateFields;
                }
 
                        $this->updateRequiringFields += $additionalTreelistUpdateFields;
                }
-
        }
 
        /**
         * waits for TCEmain commands and looks for changed pages, if found further
         * changes take place to determine whether the cache needs to be updated
         *
        }
 
        /**
         * waits for TCEmain commands and looks for changed pages, if found further
         * changes take place to determine whether the cache needs to be updated
         *
-        * @param       string  TCEmain operation status, either 'new' or 'update'
-        * @param       string  the DB table the operation was carried out on
-        * @param       mixed   the record's uid for update records, a string to look the record's uid up after it has been created
-        * @param       array   array of changed fiels and their new values
-        * @param       t3lib_TCEmain   TCEmain parent object
+        * @param string $status TCEmain operation status, either 'new' or 'update'
+        * @param string $table The DB table the operation was carried out on
+        * @param mixed $recordId The record's uid for update records, a string to look the record's uid up after it has been created
+        * @param array $updatedFields Array of changed fiels and their new values
+        * @param t3lib_TCEmain $tceMain TCEmain parent object
+        * @return void
         */
        public function processDatamap_afterDatabaseOperations($status, $table, $recordId, array $updatedFields, t3lib_TCEmain $tceMain) {
 
         */
        public function processDatamap_afterDatabaseOperations($status, $table, $recordId, array $updatedFields, t3lib_TCEmain $tceMain) {
 
@@ -89,20 +87,18 @@ class tx_cms_treelistCacheUpdate {
                        $affectedPageUid = 0;
 
                        if ($status == 'new') {
                        $affectedPageUid = 0;
 
                        if ($status == 'new') {
-                                       // detect new pages
+                                       // Detect new pages
 
 
-                                       // resolve the uid
+                                       // Resolve the uid
                                $affectedPageUid = $tceMain->substNEWwithIDs[$recordId];
                                $affectedPagePid = $updatedFields['pid'];
                        } elseif ($status == 'update') {
                                $affectedPageUid = $tceMain->substNEWwithIDs[$recordId];
                                $affectedPagePid = $updatedFields['pid'];
                        } elseif ($status == 'update') {
-                                       // detect updated pages
+                                       // Detect updated pages
 
                                $affectedPageUid = $recordId;
 
 
                                $affectedPageUid = $recordId;
 
-                               /*
-                                when updating a page the pid is not directly available so we
-                                need to retrieve it ourselves.
-                               */
+                                       // When updating a page the pid is not directly available so we
+                                       // need to retrieve it ourselves.
                                $fullPageRecord  = t3lib_BEfunc::getRecord($table, $recordId);
                                $affectedPagePid = $fullPageRecord['pid'];
                        }
                                $fullPageRecord  = t3lib_BEfunc::getRecord($table, $recordId);
                                $affectedPagePid = $fullPageRecord['pid'];
                        }
@@ -125,11 +121,12 @@ class tx_cms_treelistCacheUpdate {
         * waits for TCEmain commands and looks for deleted pages, if found further
         * changes take place to determine whether the cache needs to be updated
         *
         * waits for TCEmain commands and looks for deleted pages, if found further
         * changes take place to determine whether the cache needs to be updated
         *
-        * @param       string  the TCE command
-        * @param       string  the record's table
-        * @param       integer the record's uid
-        * @param       array   the commands value, typically an array with more detailed command information
-        * @param       t3lib_TCEmain   the TCEmain parent object
+        * @param string $command The TCE command
+        * @param string $table The record's table
+        * @param integer $recordId The record's uid
+        * @param array $commandValue The commands value, typically an array with more detailed command information
+        * @param t3lib_TCEmain $tceMain The TCEmain parent object
+        * @return void
         */
        public function processCmdmap_postProcess($command, $table, $recordId, $commandValue, t3lib_TCEmain $tceMain) {
 
         */
        public function processCmdmap_postProcess($command, $table, $recordId, $commandValue, t3lib_TCEmain $tceMain) {
 
@@ -145,7 +142,7 @@ class tx_cms_treelistCacheUpdate {
 
                        $affectedPageUid = $deletedRecord['uid'];
                        $affectedPagePid = $deletedRecord['pid'];
 
                        $affectedPageUid = $deletedRecord['uid'];
                        $affectedPagePid = $deletedRecord['pid'];
-                               // faking the updated fields
+                               // Faking the updated fields
                        $updatedFields   = array('deleted' => 1);
 
                        $clearCacheActions = $this->determineClearCacheActions(
                        $updatedFields   = array('deleted' => 1);
 
                        $clearCacheActions = $this->determineClearCacheActions(
@@ -166,12 +163,13 @@ class tx_cms_treelistCacheUpdate {
         * waits for TCEmain commands and looks for moved pages, if found further
         * changes take place to determine whether the cache needs to be updated
         *
         * waits for TCEmain commands and looks for moved pages, if found further
         * changes take place to determine whether the cache needs to be updated
         *
-        * @param       string  table name of the moved record
-        * @param       integer the record's uid
-        * @param       integer the record's destination page id
-        * @param       array   the record that moved
-        * @param       array   array of changed fields
-        * @param       t3lib_TCEmain   TCEmain parent object
+        * @param string $table Table name of the moved record
+        * @param integer $recordId The record's uid
+        * @param integer $destinationPid The record's destination page id
+        * @param array $movedRecord The record that moved
+        * @param array $updatedFields Array of changed fields
+        * @param t3lib_TCEmain $tceMain TCEmain parent object
+        * @return void
         */
        public function moveRecord_firstElementPostProcess($table, $recordId, $destinationPid, array $movedRecord, array $updatedFields, t3lib_TCEmain $tceMain) {
 
         */
        public function moveRecord_firstElementPostProcess($table, $recordId, $destinationPid, array $movedRecord, array $updatedFields, t3lib_TCEmain $tceMain) {
 
@@ -186,14 +184,14 @@ class tx_cms_treelistCacheUpdate {
                                $updatedFields
                        );
 
                                $updatedFields
                        );
 
-                               // clear treelist entries for old parent page
+                               // Clear treelist entries for old parent page
                        $this->processClearCacheActions(
                                $affectedPageUid,
                                $affectedPageOldPid,
                                $updatedFields,
                                $clearCacheActions
                        );
                        $this->processClearCacheActions(
                                $affectedPageUid,
                                $affectedPageOldPid,
                                $updatedFields,
                                $clearCacheActions
                        );
-                               // clear treelist entries for new parent page
+                               // Clear treelist entries for new parent page
                        $this->processClearCacheActions(
                                $affectedPageUid,
                                $affectedPageNewPid,
                        $this->processClearCacheActions(
                                $affectedPageUid,
                                $affectedPageNewPid,
@@ -204,16 +202,17 @@ class tx_cms_treelistCacheUpdate {
        }
 
        /**
        }
 
        /**
-        * waits for TCEmain commands and looks for moved pages, if found further
+        * Waits for TCEmain commands and looks for moved pages, if found further
         * changes take place to determine whether the cache needs to be updated
         *
         * changes take place to determine whether the cache needs to be updated
         *
-        * @param       string  table name of the moved record
-        * @param       integer the record's uid
-        * @param       integer the record's destination page id
-        * @param       integer (negative) page id th page has been moved after
-        * @param       array   the record that moved
-        * @param       array   array of changed fields
-        * @param       t3lib_TCEmain   TCEmain parent object
+        * @param string $table Table name of the moved record
+        * @param integer $recordId The record's uid
+        * @param integer $destinationPid The record's destination page id
+        * @param integer $originalDestinationPid (negative) page id th page has been moved after
+        * @param array $movedRecord The record that moved
+        * @param array $updatedFields Array of changed fields
+        * @param t3lib_TCEmain $tceMain TCEmain parent object
+        * @return void
         */
        public function moveRecord_afterAnotherElementPostProcess($table, $recordId, $destinationPid, $originalDestinationPid, array $movedRecord, array $updatedFields, t3lib_TCEmain $tceMain) {
 
         */
        public function moveRecord_afterAnotherElementPostProcess($table, $recordId, $destinationPid, $originalDestinationPid, array $movedRecord, array $updatedFields, t3lib_TCEmain $tceMain) {
 
@@ -228,14 +227,14 @@ class tx_cms_treelistCacheUpdate {
                                $updatedFields
                        );
 
                                $updatedFields
                        );
 
-                               // clear treelist entries for old parent page
+                               // Clear treelist entries for old parent page
                        $this->processClearCacheActions(
                                $affectedPageUid,
                                $affectedPageOldPid,
                                $updatedFields,
                                $clearCacheActions
                        );
                        $this->processClearCacheActions(
                                $affectedPageUid,
                                $affectedPageOldPid,
                                $updatedFields,
                                $clearCacheActions
                        );
-                               // clear treelist entries for new parent page
+                               // Clear treelist entries for new parent page
                        $this->processClearCacheActions(
                                $affectedPageUid,
                                $affectedPageNewPid,
                        $this->processClearCacheActions(
                                $affectedPageUid,
                                $affectedPageNewPid,
@@ -246,10 +245,10 @@ class tx_cms_treelistCacheUpdate {
        }
 
        /**
        }
 
        /**
-        * checks whether the change requires an update of the treelist cache
+        * Checks whether the change requires an update of the treelist cache
         *
         *
-        * @param       array   array of changed fields
-        * @return      boolean TRUE if the treelist cache needs to be updated, FALSE if no update to the cache is required
+        * @param array $updatedFields Array of changed fields
+        * @return boolean TRUE if the treelist cache needs to be updated, FALSE if no update to the cache is required
         */
        protected function requiresUpdate(array $updatedFields) {
                $requiresUpdate = FALSE;
         */
        protected function requiresUpdate(array $updatedFields) {
                $requiresUpdate = FALSE;
@@ -262,16 +261,17 @@ class tx_cms_treelistCacheUpdate {
                        }
                }
 
                        }
                }
 
-               return  $requiresUpdate;
+               return $requiresUpdate;
        }
 
        /**
        }
 
        /**
-        * calls the cache maintainance functions according to the determined actions
+        * Calls the cache maintainance functions according to the determined actions
         *
         *
-        * @param       integer uid of the affected page
-        * @param       integer parent uid of the affected page
-        * @param       array   array of updated fields and their new values
-        * @param       array   array of actions to carry out
+        * @param integer $affectedPage uid of the affected page
+        * @param integer $affectedParentPage parent uid of the affected page
+        * @param array $updatedFields Array of updated fields and their new values
+        * @param array $actions Array of actions to carry out
+        * @return void
         */
        protected function processClearCacheActions($affectedPage, $affectedParentPage, $updatedFields, array $actions) {
                $actionNames = array_keys($actions);
         */
        protected function processClearCacheActions($affectedPage, $affectedParentPage, $updatedFields, array $actions) {
                $actionNames = array_keys($actions);
@@ -281,7 +281,7 @@ class tx_cms_treelistCacheUpdate {
                                        $this->clearCacheForAllParents($affectedParentPage);
                                        break;
                                case 'setExpiration':
                                        $this->clearCacheForAllParents($affectedParentPage);
                                        break;
                                case 'setExpiration':
-                                               // only used when setting an end time for a page
+                                               // Only used when setting an end time for a page
                                        $expirationTime = $updatedFields['endtime'];
                                        $this->setCacheExpiration($affectedPage, $expirationTime);
                                        break;
                                        $expirationTime = $updatedFields['endtime'];
                                        $this->setCacheExpiration($affectedPage, $expirationTime);
                                        break;
@@ -291,7 +291,7 @@ class tx_cms_treelistCacheUpdate {
                        }
                }
 
                        }
                }
 
-                       // from time to time clean the cache from expired entries
+                       // From time to time clean the cache from expired entries
                        // (theoretically every 1000 calls)
                $randomNumber = rand(1, 1000);
                if ($randomNumber == 500) {
                        // (theoretically every 1000 calls)
                $randomNumber = rand(1, 1000);
                if ($randomNumber == 500) {
@@ -300,10 +300,11 @@ class tx_cms_treelistCacheUpdate {
        }
 
        /**
        }
 
        /**
-        * clears the treelist cache for all parents of a changed page.
+        * Clears the treelist cache for all parents of a changed page.
         * gets called after creating a new page and after moving a page
         *
         * gets called after creating a new page and after moving a page
         *
-        * @param       integer parent page id of the changed page, the page to start clearing from
+        * @param integer $affectedParentPage Parent page id of the changed page, the page to start clearing from
+        * @return void
         */
        protected function clearCacheForAllParents($affectedParentPage) {
                $rootline = t3lib_BEfunc::BEgetRootLine($affectedParentPage);
         */
        protected function clearCacheForAllParents($affectedParentPage) {
                $rootline = t3lib_BEfunc::BEgetRootLine($affectedParentPage);
@@ -326,10 +327,11 @@ class tx_cms_treelistCacheUpdate {
        }
 
        /**
        }
 
        /**
-        * clears the treelist cache for all pages where the affected page is found
+        * Clears the treelist cache for all pages where the affected page is found
         * in the treelist
         *
         * in the treelist
         *
-        * @param       integer Id of the changed page
+        * @param integer $affectedPage ID of the changed page
+        * @return void
         */
        protected function clearCacheWhereUidInTreelist($affectedPage) {
                $GLOBALS['TYPO3_DB']->exec_DELETEquery(
         */
        protected function clearCacheWhereUidInTreelist($affectedPage) {
                $GLOBALS['TYPO3_DB']->exec_DELETEquery(
@@ -343,10 +345,12 @@ class tx_cms_treelistCacheUpdate {
        }
 
        /**
        }
 
        /**
-        * sets an expiration time for all cache entries having the changed page in
+        * Sets an expiration time for all cache entries having the changed page in
         * the treelist.
         *
         * the treelist.
         *
-        * @param       integer uid of the changed page
+        * @param integer $affectedPage Uid of the changed page
+        * @param integer $expirationTime
+        * @return void
         */
        protected function setCacheExpiration($affectedPage, $expirationTime) {
 
         */
        protected function setCacheExpiration($affectedPage, $expirationTime) {
 
@@ -364,8 +368,9 @@ class tx_cms_treelistCacheUpdate {
        }
 
        /**
        }
 
        /**
-        * removes all expired treelist cache entries
+        * Removes all expired treelist cache entries
         *
         *
+        * @return void
         */
        protected function removeExpiredCacheEntries() {
                $GLOBALS['TYPO3_DB']->exec_DELETEquery(
         */
        protected function removeExpiredCacheEntries() {
                $GLOBALS['TYPO3_DB']->exec_DELETEquery(
@@ -375,18 +380,18 @@ class tx_cms_treelistCacheUpdate {
        }
 
        /**
        }
 
        /**
-        * determines what happened to the page record, this is necessary to clear
+        * Determines what happened to the page record, this is necessary to clear
         * as less cache entries as needed later
         *
         * as less cache entries as needed later
         *
-        * @param       string  TCEmain operation status, either 'new' or 'update'
-        * @param       array   array of updated fields
-        * @return      string  list of actions that happened to the page record
+        * @param string $status TCEmain operation status, either 'new' or 'update'
+        * @param array $updatedFields Array of updated fields
+        * @return string List of actions that happened to the page record
         */
        protected function determineClearCacheActions($status, $updatedFields) {
                $actions = array();
 
                if ($status == 'new') {
         */
        protected function determineClearCacheActions($status, $updatedFields) {
                $actions = array();
 
                if ($status == 'new') {
-                               // new page
+                               // New page
                        $actions['allParents'] = TRUE;
                } elseif ($status == 'update') {
                        $updatedFieldNames = array_keys($updatedFields);
                        $actions['allParents'] = TRUE;
                } elseif ($status == 'update') {
                        $updatedFieldNames = array_keys($updatedFields);
@@ -394,36 +399,34 @@ class tx_cms_treelistCacheUpdate {
                        foreach ($updatedFieldNames as $updatedFieldName) {
                                switch ($updatedFieldName) {
                                        case 'pid':
                        foreach ($updatedFieldNames as $updatedFieldName) {
                                switch ($updatedFieldName) {
                                        case 'pid':
-                                                       // page moved
+                                                       // Page moved
                                        case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['disabled']:
                                        case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['disabled']:
-                                                       // page hidden / unhidden
+                                                       // Page hidden / unhidden
                                        case $GLOBALS['TCA']['pages']['ctrl']['delete']:
                                        case $GLOBALS['TCA']['pages']['ctrl']['delete']:
-                                                       // page deleted / undeleted
+                                                       // Page deleted / undeleted
                                        case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['starttime']:
                                        case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['starttime']:
-                                                       /*
-                                                        start time set/unset
-                                                        Doesn't matter whether it was set or unset, in both
-                                                        cases the cache needs to be cleared. When setting a
-                                                        start time the page must be removed from the
-                                                        treelist. When unsetting the start time it must
-                                                        become listed in the tree list again.
-                                                       */
+
+                                               // start time set/unset
+                                               // Doesn't matter whether it was set or unset, in both
+                                               // cases the cache needs to be cleared. When setting a
+                                               // start time the page must be removed from the
+                                               // treelist. When unsetting the start time it must
+                                               // become listed in the tree list again.
                                        case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['fe_group']:
                                        case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['fe_group']:
-                                                       // changes to FE user group
+                                               // Changes to FE user group
                                        case 'extendToSubpages':
                                        case 'extendToSubpages':
-                                                       // extendToSubpages set (apply FE access restrictions to subpages)
+                                               // extendToSubpages set (apply FE access restrictions to subpages)
                                        case 'php_tree_stop':
                                                        // php_tree_stop
                                                $actions['allParents'] = TRUE;
                                                $actions['uidInTreelist'] = TRUE;
                                                break;
                                        case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['endtime']:
                                        case 'php_tree_stop':
                                                        // php_tree_stop
                                                $actions['allParents'] = TRUE;
                                                $actions['uidInTreelist'] = TRUE;
                                                break;
                                        case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['endtime']:
-                                                       /*
-                                                        end time set/unset
-                                                        When setting an end time the cache entry needs an
-                                                        expiration time. When unsetting the end time the
-                                                        page must become listed in the treelist again.
-                                                       */
+
+                                                       // end time set/unset
+                                                       // When setting an end time the cache entry needs an
+                                                       // expiration time. When unsetting the end time the
+                                                       // page must become listed in the treelist again.
                                                if ($updatedFields['endtime'] > 0) {
                                                        $actions['setExpiration'] = TRUE;
                                                } else {
                                                if ($updatedFields['endtime'] > 0) {
                                                        $actions['setExpiration'] = TRUE;
                                                } else {