[TASK] CGL: Improve function spacing
authorFelix Kopp <felix-source@phorax.com>
Thu, 7 Jun 2012 21:25:40 +0000 (23:25 +0200)
committerGeorg Ringer <mail@ringerge.org>
Sat, 9 Jun 2012 07:44:35 +0000 (09:44 +0200)
Improves last outstanding function spacing issues of type
OpeningFunctionBraceKernighanRitchieSpaceBeforeBrace.

Change-Id: I393ca85d63779b5368ea6d8aaa8dbcf629ca0df6
Fixes: #37827
Reviewed-on: http://review.typo3.org/11877
Reviewed-by: Oliver Klee
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
tests/Unit/t3lib/class.t3lib_divTest.php
tests/Unit/t3lib/class.t3lib_extmgmTest.php
typo3/alt_clickmenu.php
typo3/alt_db_navframe.php
typo3/class.webpagetree.php
typo3/sysext/cms/tslib/class.tslib_fe.php
typo3/sysext/indexed_search/class.crawler.php
typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php
typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php
typo3/sysext/t3editor/classes/ts_codecompletion/class.tx_t3editor_codecompletion.php
typo3/template.php

index 57479d0..5a19815 100644 (file)
@@ -3390,7 +3390,7 @@ class t3lib_divTest extends tx_phpunit_testcase {
        /**
         * @test
         */
-       public function splitFileRefReturnsFileTypeNotForFolders(){
+       public function splitFileRefReturnsFileTypeNotForFolders() {
                $directoryName = uniqid('test_') . '.com';
                $directoryPath = PATH_site . 'typo3temp/';
                $directory = $directoryPath . $directoryName;
index bb85218..f6f7f83 100644 (file)
@@ -216,7 +216,7 @@ class t3lib_extmgmTest extends tx_phpunit_testcase {
         * @test
         * @see t3lib_extMgm::getExtensionKeyByPrefix
         */
-       public function getExtensionKeyByPrefixForNotLoadedExtensionReturnsFalse(){
+       public function getExtensionKeyByPrefixForNotLoadedExtensionReturnsFalse() {
                t3lib_extMgm::clearExtensionKeyMap();
 
                $uniqueSuffix = uniqid('test');
index e7b2f28..faf44b8 100644 (file)
@@ -754,7 +754,7 @@ class clickMenu {
         * @param       string          Icon path relative to typo3/ folder
         * @return      array           Item array, element in $menuItems
         */
-       function DB_changeFlag($table, $rec, $flagField, $title, $name, $iconRelPath='gfx/')    {
+       function DB_changeFlag($table, $rec, $flagField, $title, $name, $iconRelPath='gfx/') {
                $uid = $rec['_ORIG_uid'] ? $rec['_ORIG_uid'] : $rec['uid'];
                $editOnClick='';
                $loc = 'top.content.list_frame';
index ae56970..e0d394b 100644 (file)
@@ -326,7 +326,7 @@ class SC_alt_db_navframe {
         *
         * @return      void
         */
-       function initializeTemporaryDBmount(){
+       function initializeTemporaryDBmount() {
 
                        // Set/Cancel Temporary DB Mount:
                if (strlen($this->setTempDBmount)) {
index 0d7eae5..ce99574 100644 (file)
@@ -177,7 +177,7 @@ class webPageTree extends t3lib_browseTree {
         * @param       array           "tree-array" - if blank string, the internal ->tree array is used.
         * @return      string          The HTML code for the tree
         */
-       function printTree($treeArr = '')   {
+       function printTree($treeArr = '') {
                $titleLen = intval($this->BE_USER->uc['titleLen']);
                if (!is_array($treeArr)) {
                        $treeArr = $this->tree;
index 8c01fe2..3601b3f 100644 (file)
@@ -3580,7 +3580,7 @@ if (version == "n3") {
         *
         *  @return string the IP to log
         */
-       public function getLogIPAddress(){
+       public function getLogIPAddress() {
                $result = t3lib_div::getIndpEnv('REMOTE_ADDR');
                if ($this->config['config']['stat_IP_anonymize']) {
                        if (strpos($result, ':')) {
@@ -3655,7 +3655,7 @@ if (version == "n3") {
         *
         * @return the host name to log
         */
-       public function getLogHostName(){
+       public function getLogHostName() {
                if($this->config['config']['stat_IP_anonymize']) {
                                // ignore hostname if IP anonymized
                        $hostName = '<anonymized>';
@@ -3671,7 +3671,7 @@ if (version == "n3") {
         *
         * @return the user name /uid to log
         */
-       public function getLogUserName(){
+       public function getLogUserName() {
                $logUser = (isset($this->config['config']['stat_logUser'])) ? $this->config['config']['stat_logUser'] : TRUE;
                if ($this->loginUser && $logUser) {
                        $userName =  $this->fe_user->user['username'];
@@ -4099,7 +4099,7 @@ if (version == "n3") {
         * @param       string          The page content to clean up. Will be written to a temporary file which "tidy" is then asked to clean up. File content is read back and returned.
         * @return      string          Returns the
         */
-       function tidyHTML($content)             {
+       function tidyHTML($content) {
                if ($this->TYPO3_CONF_VARS['FE']['tidy'] && $this->TYPO3_CONF_VARS['FE']['tidy_path']) {
                        $oldContent = $content;
                        $fname = t3lib_div::tempnam('typo3_tidydoc_');          // Create temporary name
index 99f0aba..d74c6c6 100755 (executable)
@@ -65,7 +65,7 @@ class tx_indexedsearch_crawler {
         * @param       object          Parent object (tx_crawler lib)
         * @return      void
         */
-       function crawler_init(&$pObj){
+       function crawler_init(&$pObj) {
 
                        // Select all indexing configuration which are waiting to be activated:
                $indexingConfigurations = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
index b67c0ba..19685a2 100755 (executable)
@@ -101,7 +101,7 @@ class tx_indexedsearch extends tslib_pibase {
         * @param       array           TypoScript configuration of the plugin!
         * @return      string          HTML code for the search form / result display.
         */
-       function main($content, $conf)    {
+       function main($content, $conf) {
 
                        // Initialize:
                $this->conf = $conf;
index 479bc37..f5e0141 100644 (file)
@@ -932,7 +932,7 @@ class tx_rtehtmlarea_select_image extends browse_links {
         *
         * @return      void
         */
-       public function initConfiguration(){
+       public function initConfiguration() {
                $this->thisConfig = $this->getRTEConfig();
                $this->buttonConfig = $this->getButtonConfig();
                $this->imgPath = $this->getImgPath();
index 55908f7..d295c91 100644 (file)
@@ -133,7 +133,7 @@ class tx_t3editor_codecompletion {
         * @param       array           $treeBranch: TypoScript configuration or sub branch of it
         * @return      array           Cleaned TypoScript branch
         */
-       private function treeWalkCleanup(array $treeBranch){
+       private function treeWalkCleanup(array $treeBranch) {
                $cleanedTreeBranch = array();
 
                foreach ($treeBranch as $key => $value) {
index 0ad47d4..eae0179 100644 (file)
@@ -1422,7 +1422,7 @@ class template {
         * Includes the necessary Javascript function for the clickmenu (context sensitive menus) in the document
         * @return void
         */
-       function getContextMenuCode()   {
+       function getContextMenuCode() {
                $this->pageRenderer->loadPrototype();
                $this->loadJavascriptLib('js/clickmenu.js');