http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84340

Revision: 84340
Author:   tbleher
Date:     2011-03-19 17:59:27 +0000 (Sat, 19 Mar 2011)
Log Message:
-----------
Fix indentation

Modified Paths:
--------------
    trunk/extensions/DSMW/logootComponent/LogootId.php
    trunk/extensions/DSMW/logootComponent/LogootPosition.php
    trunk/extensions/ImageTagging/ImageTagging.php
    trunk/extensions/MostRevisors/MostRevisors_body.php
    
trunk/extensions/MultilingualLiquidThreads/LiquidThreads/pages/ThreadProtectionFormView.php
    trunk/extensions/RdfRedland/Special/QueryPage.php
    trunk/extensions/SemanticNotifyMe/specials/SMWNotifyMe/SMWNotifyMe.php
    trunk/extensions/SemanticProjectManagement/includes/SPM_GanttChart.php
    
trunk/extensions/SemanticProjectManagement/includes/SPM_ProjectManagementClass.php
    trunk/extensions/SemanticProjectManagement/includes/SPM_WBS.php
    trunk/extensions/UsageStatistics/UsageStatistics_body.php

Modified: trunk/extensions/DSMW/logootComponent/LogootId.php
===================================================================
--- trunk/extensions/DSMW/logootComponent/LogootId.php  2011-03-19 17:48:24 UTC 
(rev 84339)
+++ trunk/extensions/DSMW/logootComponent/LogootId.php  2011-03-19 17:59:27 UTC 
(rev 84340)
@@ -50,13 +50,13 @@
         $val2 = new Math_BigInteger( $logid->mInt );
 
         if ( ( $val1->compare( $val2 ) ) < 0 )
-        return -1;
+            return -1;
         else if ( ( $val1->compare( $val2 ) ) > 0 )
-        return 1;
+            return 1;
         else if ( strcmp( $this->mSessionId, $logid->mSessionId ) < 0 )
-        return -1;
+            return -1;
         else if ( strcmp( $this->mSessionId, $logid->mSessionId ) > 0 )
-        return 1;
+            return 1;
         return 0;
     }
 

Modified: trunk/extensions/DSMW/logootComponent/LogootPosition.php
===================================================================
--- trunk/extensions/DSMW/logootComponent/LogootPosition.php    2011-03-19 
17:48:24 UTC (rev 84339)
+++ trunk/extensions/DSMW/logootComponent/LogootPosition.php    2011-03-19 
17:59:27 UTC (rev 84340)
@@ -24,7 +24,7 @@
         while ( $i < $max ) {
 
             if ( $thisPos[$i]->compareTo( $position->mPosition[$i] ) != 0 )
-            break;
+                break;
             $i++;
         }
         if ( $i >= $this->size() && $i >= $position->size() )return 0;

Modified: trunk/extensions/ImageTagging/ImageTagging.php
===================================================================
--- trunk/extensions/ImageTagging/ImageTagging.php      2011-03-19 17:48:24 UTC 
(rev 84339)
+++ trunk/extensions/ImageTagging/ImageTagging.php      2011-03-19 17:59:27 UTC 
(rev 84340)
@@ -201,7 +201,7 @@
 
        $numResults = ( $titleMatches ? $titleMatches->numRows() : 0 );
        if ( $numResults > 0 )
-       $wgOut->addHTML(wfTagSearchShowMatches($titleMatches));
+               $wgOut->addHTML(wfTagSearchShowMatches($titleMatches));
 
        #echo "numResults: " . $numResults . ", query: " . $query;
 
@@ -335,7 +335,7 @@
        $wgOut->addHTML("<!-- this many image tags: " . count($res) . " from 
img " . $img->name . " -->");
        while ($o = $db->fetchObject($res)) {
                if ( strlen($html) > 0 )
-               $html .= ', ';
+                       $html .= ', ';
 
                $wgOut->addHTML("<!-- tag rect: " . $o->tag_rect . ", tag 
title: " . $o->article_tag . ", unique_id: " . $o->unique_id . "-->");
 
@@ -358,7 +358,7 @@
        $db->freeResult($res);
 
        if ( $html )
-       $html = wfMsg('imagetagging-inthisimage', $html);
+               $html = wfMsg('imagetagging-inthisimage', $html);
 
        wfProfileOut( __METHOD__ );
        return $html;

Modified: trunk/extensions/MostRevisors/MostRevisors_body.php
===================================================================
--- trunk/extensions/MostRevisors/MostRevisors_body.php 2011-03-19 17:48:24 UTC 
(rev 84339)
+++ trunk/extensions/MostRevisors/MostRevisors_body.php 2011-03-19 17:59:27 UTC 
(rev 84340)
@@ -70,7 +70,7 @@
                if ( $count > 0 ) {
                        # Make list
                        if ( !$this->mIncluding )
-                       $wgOut->addWikiMsg( 'mostrevisors-showing', 
$wgLang->formatNum( $count ) );
+                               $wgOut->addWikiMsg( 'mostrevisors-showing', 
$wgLang->formatNum( $count ) );
                        $wgOut->addHTML( "<ol>" );
                        foreach ( $res as $row ) {
                                $wgOut->addHTML( $this->makeListItem( $row ) );

Modified: 
trunk/extensions/MultilingualLiquidThreads/LiquidThreads/pages/ThreadProtectionFormView.php
===================================================================
--- 
trunk/extensions/MultilingualLiquidThreads/LiquidThreads/pages/ThreadProtectionFormView.php
 2011-03-19 17:48:24 UTC (rev 84339)
+++ 
trunk/extensions/MultilingualLiquidThreads/LiquidThreads/pages/ThreadProtectionFormView.php
 2011-03-19 17:59:27 UTC (rev 84340)
@@ -7,9 +7,9 @@
                ThreadPermalinkView::customizeThreadTabs( $skintemplate, 
$content_actions, $this );
 
                if ( array_key_exists( 'protect', $content_actions ) )
-               $content_actions['protect']['class'] = 'selected';
+                       $content_actions['protect']['class'] = 'selected';
                else if ( array_key_exists( 'unprotect', $content_actions ) )
-               $content_actions['unprotect']['class'] = 'selected';
+                       $content_actions['unprotect']['class'] = 'selected';
        }
 
        function customizeNavigation( $skintemplate, &$links ) {

Modified: trunk/extensions/RdfRedland/Special/QueryPage.php
===================================================================
--- trunk/extensions/RdfRedland/Special/QueryPage.php   2011-03-19 17:48:24 UTC 
(rev 84339)
+++ trunk/extensions/RdfRedland/Special/QueryPage.php   2011-03-19 17:59:27 UTC 
(rev 84340)
@@ -89,17 +89,17 @@
                if ( $num > 0 ) {
                        $s = array();
                        if ( ! $this->listoutput )
-                       $s[] = "<ol start='" . ( $offset + 1 ) . "' 
class='special'>";
+                               $s[] = "<ol start='" . ( $offset + 1 ) . "' 
class='special'>";
 
                        # here's where we do the offset and limit
                        for ( $i = $offset; $i < $num && $i < $offset + $limit; 
$i++ ) {
                                $format = $this->formatResult( $sk, $res[$i] );
                                if ( $format )
-                               $s[] = $this->listoutput ? $format : 
"<li>{$format}</li>\n";
+                                       $s[] = $this->listoutput ? $format : 
"<li>{$format}</li>\n";
                        }
 
                        if ( ! $this->listoutput )
-                       $s[] = '</ol>';
+                               $s[] = '</ol>';
                        $str = $this->listoutput ? $wgContLang->listToText( $s 
) : implode( '', $s );
                        $wgOut->addHTML( $str );
                }

Modified: trunk/extensions/SemanticNotifyMe/specials/SMWNotifyMe/SMWNotifyMe.php
===================================================================
--- trunk/extensions/SemanticNotifyMe/specials/SMWNotifyMe/SMWNotifyMe.php      
2011-03-19 17:48:24 UTC (rev 84339)
+++ trunk/extensions/SemanticNotifyMe/specials/SMWNotifyMe/SMWNotifyMe.php      
2011-03-19 17:59:27 UTC (rev 84340)
@@ -247,7 +247,7 @@
                                        <td><a href="#" 
onclick="notifyhelper.showall(true)">' . wfMsg( 'smw_nm_special_all' ) . 
'</a>/<a href="#" onclick="notifyhelper.showall(false)">' . wfMsg( 
'smw_nm_special_none' ) . '</a>&#160; <button class="btn" 
onclick="notifyhelper.updateShowAll()" onmouseover="this.className=\'btn 
btnhov\'; Tip(\'' . wfMsg( 'smw_nm_special_tt_showupdate' ) . '\')" 
onmouseout="this.className=\'btn\'">' . wfMsg( 'smw_nm_special_update' ) . 
'</button></td>
                                        <td><a href="#" 
onclick="notifyhelper.enableall(true)">' . wfMsg( 'smw_nm_special_all' ) . 
'</a>/<a href="#" onclick="notifyhelper.enableall(false)">' . wfMsg( 
'smw_nm_special_none' ) . '</a>&#160; <button class="btn" 
onclick="notifyhelper.updateStates()" onmouseover="this.className=\'btn 
btnhov\'; Tip(\'' . wfMsg( 'smw_nm_special_tt_enableupdate' ) . '\')" 
onmouseout="this.className=\'btn\'">' . wfMsg( 'smw_nm_special_update' ) . 
'</button></td>';
                if ( $isSysop )
-               $html .= '<td><button class="btn" 
onclick="notifyhelper.updateDelegate()" onmouseover="this.className=\'btn 
btnhov\'; Tip(\'' . wfMsg( 'smw_nm_special_tt_delegateupdate' ) . '\')" 
onmouseout="this.className=\'btn\'">' . wfMsg( 'smw_nm_special_update' ) . 
'</button></td>';
+                       $html .= '<td><button class="btn" 
onclick="notifyhelper.updateDelegate()" onmouseover="this.className=\'btn 
btnhov\'; Tip(\'' . wfMsg( 'smw_nm_special_tt_delegateupdate' ) . '\')" 
onmouseout="this.className=\'btn\'">' . wfMsg( 'smw_nm_special_update' ) . 
'</button></td>';
                $html .= '</tr></table>';
                return $html;
        }

Modified: trunk/extensions/SemanticProjectManagement/includes/SPM_GanttChart.php
===================================================================
--- trunk/extensions/SemanticProjectManagement/includes/SPM_GanttChart.php      
2011-03-19 17:48:24 UTC (rev 84339)
+++ trunk/extensions/SemanticProjectManagement/includes/SPM_GanttChart.php      
2011-03-19 17:59:27 UTC (rev 84340)
@@ -181,7 +181,7 @@
 
                        $hasChildren = $allTempChildren;
                        if (count($hasChildren)>0)
-                       $hasChild = true;
+                               $hasChild = true;
                }
 
                $task->addWBS(1,0);
@@ -190,4 +190,4 @@
 
 
        }
-}
\ No newline at end of file
+}

Modified: 
trunk/extensions/SemanticProjectManagement/includes/SPM_ProjectManagementClass.php
===================================================================
--- 
trunk/extensions/SemanticProjectManagement/includes/SPM_ProjectManagementClass.php
  2011-03-19 17:48:24 UTC (rev 84339)
+++ 
trunk/extensions/SemanticProjectManagement/includes/SPM_ProjectManagementClass.php
  2011-03-19 17:59:27 UTC (rev 84340)
@@ -299,10 +299,10 @@
        static function cmpDate($task1,$task2){
                $date1 = $task1->getPlannedStartDate();
                if ($date1!=null)
-               $res1 = strtotime($date1->getXMLSchemaDate());
+                       $res1 = strtotime($date1->getXMLSchemaDate());
                $date2 = $task2->getPlannedStartDate();
                if ($date2!=null)
-               $res2 = strtotime($date2->getXMLSchemaDate());
+                       $res2 = strtotime($date2->getXMLSchemaDate());
                return ($res1<$res2);
 
        }
@@ -826,7 +826,7 @@
                                $time1 = explode("T",$date);
                                $time2 = explode("-",$time1[0]);
                                if (count($time1)>1){
-                               $time3 = explode(":",$time1[1]);
+                                       $time3 = explode(":",$time1[1]);
                                } else {
                                        $time3 = array(0,0,0);
                                }
@@ -1746,7 +1746,7 @@
                        $res .= "<Type>2</Type>\r\n";
                        $res .= "<IsNull>0</IsNull>\r\n";
                        if($this->m_timestamp!=null)
-                       $res .= "<CreateDate>" . date("Y-m-d", 
$this->m_timestamp) . "T" . date("H:i:s", $this->m_timestamp) . 
"</CreateDate>\r\n";
+                               $res .= "<CreateDate>" . date("Y-m-d", 
$this->m_timestamp) . "T" . date("H:i:s", $this->m_timestamp) . 
"</CreateDate>\r\n";
                        $res .= "<WBS>" . $this->WBStoSTring($this->m_WBS) . 
"</WBS>\r\n";
                        $res .= "<OutlineNumber>" . 
$this->WBStoSTring($this->m_WBS)  . "</OutlineNumber>\r\n";
                        $res .= "<OutlineLevel>" . $this->m_outlineLevel . 
"</OutlineLevel>\r\n";
@@ -1757,15 +1757,15 @@
                                $res .= "<ConstraintDate>" . 
$this->parsedate($this->m_plannedStart) . "</ConstraintDate>\r\n";
                        }
                        if ($this->m_plannedFinish!=null)
-                       $res .= "<Finish>" . 
$this->parsedate($this->m_plannedFinish) . "</Finish>\r\n";
+                               $res .= "<Finish>" . 
$this->parsedate($this->m_plannedFinish) . "</Finish>\r\n";
                        if ($this->m_earlyStart!=null)
-                       $res .= "<EarlyStart>" . 
$this->parsedate($this->m_earlyStart) . "</EarlyStart>\r\n";
+                               $res .= "<EarlyStart>" . 
$this->parsedate($this->m_earlyStart) . "</EarlyStart>\r\n";
                        if ($this->m_earlyFinish!=null)
-                       $res .= "<EarlyFinish>" . 
$this->parsedate($this->m_earlyFinish) . "</EarlyFinish>\r\n";
+                               $res .= "<EarlyFinish>" . 
$this->parsedate($this->m_earlyFinish) . "</EarlyFinish>\r\n";
                        if ($this->m_lateStart!=null)
-                       $res .= "<LateStart>" . 
$this->parsedate($this->m_lateStart) . "</LateStart>\r\n";
+                               $res .= "<LateStart>" . 
$this->parsedate($this->m_lateStart) . "</LateStart>\r\n";
                        if ($this->m_lateFinish!=null)
-                       $res .= "<LateFinish>" . 
$this->parsedate($this->m_lateFinish) . "</LateFinish>\r\n";
+                               $res .= "<LateFinish>" . 
$this->parsedate($this->m_lateFinish) . "</LateFinish>\r\n";
                        $res .= 
"<Hyperlink>".$this->replaceLabelChars($this->getLabel())."</Hyperlink>\r\n";
                        $res .= "<HyperlinkAddress>". $this->m_hyperlink 
."</HyperlinkAddress>\r\n";
                        foreach ($this->m_predecessors as $pred){
@@ -1824,4 +1824,4 @@
                return $res;
        }
 
-}
\ No newline at end of file
+}

Modified: trunk/extensions/SemanticProjectManagement/includes/SPM_WBS.php
===================================================================
--- trunk/extensions/SemanticProjectManagement/includes/SPM_WBS.php     
2011-03-19 17:48:24 UTC (rev 84339)
+++ trunk/extensions/SemanticProjectManagement/includes/SPM_WBS.php     
2011-03-19 17:59:27 UTC (rev 84340)
@@ -169,7 +169,7 @@
 
                        $hasChildren = $allTempChildren;
                        if (count($hasChildren)>0)
-                       $hasChild = true;
+                               $hasChild = true;
                }
 
                $task->addWBS(1,0);
@@ -206,4 +206,4 @@
 
 
        }
-}
\ No newline at end of file
+}

Modified: trunk/extensions/UsageStatistics/UsageStatistics_body.php
===================================================================
--- trunk/extensions/UsageStatistics/UsageStatistics_body.php   2011-03-19 
17:48:24 UTC (rev 84339)
+++ trunk/extensions/UsageStatistics/UsageStatistics_body.php   2011-03-19 
17:59:27 UTC (rev 84340)
@@ -443,9 +443,9 @@
                for ( $i = 1; $i <= 7; $i++ )
                {
                        if ( method_exists( $wgContLang, 
'getWeekdayAbbreviation' ) )
-                       $daynames .= "'" . $wgContLang->getWeekdayAbbreviation( 
$i ) . "',";
+                               $daynames .= "'" . 
$wgContLang->getWeekdayAbbreviation( $i ) . "',";
                        else
-                       $daynames .= "'" . $wgContLang->getWeekdayName( $i ) . 
"',";
+                               $daynames .= "'" . $wgContLang->getWeekdayName( 
$i ) . "',";
                }
                $daynames = substr( $daynames, 0, - 1 );
 


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to