dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fixed spacing in skins folder"
[lhc/web/wiklou.git]
/
includes
/
ChangesList.php
diff --git
a/includes/ChangesList.php
b/includes/ChangesList.php
index
a9b9c31
..
79e2d0b
100644
(file)
--- a/
includes/ChangesList.php
+++ b/
includes/ChangesList.php
@@
-60,7
+60,7
@@
class ChangesList extends ContextSource {
protected $message;
/**
protected $message;
/**
- * Changeslist contructor
+ * Changeslist con
s
tructor
*
* @param $obj Skin or IContextSource
*/
*
* @param $obj Skin or IContextSource
*/
@@
-80,7
+80,7
@@
class ChangesList extends ContextSource {
* This first argument used to be an User object.
*
* @deprecated in 1.18; use newFromContext() instead
* This first argument used to be an User object.
*
* @deprecated in 1.18; use newFromContext() instead
- * @param
$unused string|User
Unused
+ * @param
string|User $unused
Unused
* @return ChangesList|EnhancedChangesList|OldChangesList derivative
*/
public static function newFromUser( $unused ) {
* @return ChangesList|EnhancedChangesList|OldChangesList derivative
*/
public static function newFromUser( $unused ) {
@@
-130,8
+130,8
@@
class ChangesList extends ContextSource {
/**
* Returns the appropriate flags for new page, minor change and patrolling
/**
* Returns the appropriate flags for new page, minor change and patrolling
- * @param
$flags Array
Associative array of 'flag' => Bool
- * @param
$nothing Str
ing to use for empty space
+ * @param
array $flags
Associative array of 'flag' => Bool
+ * @param
string $noth
ing to use for empty space
* @return String
*/
protected function recentChangesFlags( $flags, $nothing = ' ' ) {
* @return String
*/
protected function recentChangesFlags( $flags, $nothing = ' ' ) {
@@
-150,7
+150,7
@@
class ChangesList extends ContextSource {
* unpatrolled edit. By default in English it will contain "N", "m", "b",
* "!" respectively, plus it will have an appropriate title and class.
*
* unpatrolled edit. By default in English it will contain "N", "m", "b",
* "!" respectively, plus it will have an appropriate title and class.
*
- * @param
$flag String:
'newpage', 'unpatrolled', 'minor', or 'bot'
+ * @param
string $flag
'newpage', 'unpatrolled', 'minor', or 'bot'
* @return String: Raw HTML
*/
public static function flag( $flag ) {
* @return String: Raw HTML
*/
public static function flag( $flag ) {
@@
-287,7
+287,7
@@
class ChangesList extends ContextSource {
}
/**
}
/**
- * @param
$s string
HTML to update
+ * @param
string $s
HTML to update
* @param $rc_timestamp mixed
*/
public function insertDateHeader( &$s, $rc_timestamp ) {
* @param $rc_timestamp mixed
*/
public function insertDateHeader( &$s, $rc_timestamp ) {
@@
-304,7
+304,7
@@
class ChangesList extends ContextSource {
}
/**
}
/**
- * @param
$s string
HTML to update
+ * @param
string $s
HTML to update
* @param $title Title
* @param $logtype string
*/
* @param $title Title
* @param $logtype string
*/
@@
-315,7
+315,7
@@
class ChangesList extends ContextSource {
}
/**
}
/**
- * @param
$s string
HTML to update
+ * @param
string $s
HTML to update
* @param $rc RecentChange
* @param $unpatrolled
*/
* @param $rc RecentChange
* @param $unpatrolled
*/
@@
-358,7
+358,7
@@
class ChangesList extends ContextSource {
}
/**
}
/**
- * @param
$s string
HTML to update
+ * @param
string $s
HTML to update
* @param $rc RecentChange
* @param $unpatrolled
* @param $watched
* @param $rc RecentChange
* @param $unpatrolled
* @param $watched
@@
-407,7
+407,7
@@
class ChangesList extends ContextSource {
/**
* Insert time timestamp string from $rc into $s
*
/**
* Insert time timestamp string from $rc into $s
*
- * @param
$s string
HTML to update
+ * @param
string $s
HTML to update
* @param $rc RecentChange
*/
public function insertTimestamp( &$s, $rc ) {
* @param $rc RecentChange
*/
public function insertTimestamp( &$s, $rc ) {
@@
-543,7
+543,7
@@
class ChangesList extends ContextSource {
'user_text' => $rc->mAttribs['rc_user_text'],
'deleted' => $rc->mAttribs['rc_deleted']
) );
'user_text' => $rc->mAttribs['rc_user_text'],
'deleted' => $rc->mAttribs['rc_deleted']
) );
- $s .= ' '
.
Linker::generateRollback( $rev, $this->getContext() );
+ $s .= ' '
.
Linker::generateRollback( $rev, $this->getContext() );
}
}
}
}
}
}
@@
-563,7
+563,7
@@
class ChangesList extends ContextSource {
}
public function insertExtra( &$s, &$rc, &$classes ) {
}
public function insertExtra( &$s, &$rc, &$classes ) {
-
## Empty, used for subclasser
s to add anything special.
+
// Empty, used for subclasse
s to add anything special.
}
protected function showAsUnpatrolled( RecentChange $rc ) {
}
protected function showAsUnpatrolled( RecentChange $rc ) {
@@
-579,7
+579,6
@@
class ChangesList extends ContextSource {
}
}
}
}
-
/**
* Generate a list of changes using the good old system (no javascript)
*/
/**
* Generate a list of changes using the good old system (no javascript)
*/
@@
-588,8
+587,8
@@
class OldChangesList extends ChangesList {
* Format a line using the old system (aka without any javascript).
*
* @param $rc RecentChange, passed by reference
* Format a line using the old system (aka without any javascript).
*
* @param $rc RecentChange, passed by reference
- * @param
$watched Bool
(default false)
- * @param
$linenumber Int
(default null)
+ * @param
bool $watched
(default false)
+ * @param
int $linenumber
(default null)
*
* @return string|bool
*/
*
* @return string|bool
*/
@@
-692,7
+691,6
@@
class OldChangesList extends ChangesList {
}
}
}
}
-
/**
* Generate a list of changes using an Enhanced system (uses javascript).
*/
/**
* Generate a list of changes using an Enhanced system (uses javascript).
*/
@@
-938,7
+936,7
@@
class EnhancedChangesList extends ChangesList {
krsort( $userlinks );
asort( $userlinks );
$users = array();
krsort( $userlinks );
asort( $userlinks );
$users = array();
- foreach( $userlinks as $userlink => $count) {
+ foreach( $userlinks as $userlink => $count
) {
$text = $userlink;
$text .= $this->getLanguage()->getDirMark();
if( $count > 1 ) {
$text = $userlink;
$text .= $this->getLanguage()->getDirMark();
if( $count > 1 ) {
@@
-1048,7
+1046,7
@@
class EnhancedChangesList extends ChangesList {
if( $chardiff == '' ) {
$r .= ' ';
} else {
if( $chardiff == '' ) {
$r .= ' ';
} else {
- $r .= ' ' . $chardiff. ' <span class="mw-changeslist-separator">. .</span> ';
+ $r .= ' ' . $chardiff
. ' <span class="mw-changeslist-separator">. .</span> ';
}
}
}
}
@@
-1139,9
+1137,9
@@
class EnhancedChangesList extends ChangesList {
/**
* Generate HTML for an arrow or placeholder graphic
/**
* Generate HTML for an arrow or placeholder graphic
- * @param
$dir String:
one of '', 'd', 'l', 'r'
- * @param
$alt String:
text
- * @param
$title String:
text
+ * @param
string $dir
one of '', 'd', 'l', 'r'
+ * @param
string $alt
text
+ * @param
string $title
text
* @return String: HTML "<img>" tag
*/
protected function arrow( $dir, $alt = '', $title = '' ) {
* @return String: HTML "<img>" tag
*/
protected function arrow( $dir, $alt = '', $title = '' ) {