forked from GNUsocial/gnu-social
replace all tabs with four spaces
The PEAR coding standards decree: no tabs, but indent by four spaces. I've done a global search-and-replace on all tabs, replacing them by four spaces. This is a huge change, but it will go a long way to getting us towards phpcs-compliance. And that means better code readability, and that means more participation. darcs-hash:20081223191907-84dde-21e8efe210e6d5d54e935a22d0cee5c7bbfc007d.gz
This commit is contained in:
@@ -35,25 +35,25 @@ class NoticeWrapper extends Notice {
|
||||
public $is_local; // tinyint(1)
|
||||
public $source; // varchar(32)
|
||||
|
||||
var $notices = NULL;
|
||||
var $i = -1;
|
||||
|
||||
function __construct($arr) {
|
||||
$this->notices = $arr;
|
||||
}
|
||||
|
||||
function fetch() {
|
||||
static $fields = array('id', 'profile_id', 'uri', 'content', 'rendered',
|
||||
'url', 'created', 'modified', 'reply_to', 'is_local', 'source');
|
||||
$this->i++;
|
||||
if ($this->i >= count($this->notices)) {
|
||||
return false;
|
||||
} else {
|
||||
$n = $this->notices[$this->i];
|
||||
foreach ($fields as $f) {
|
||||
$this->$f = $n->$f;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
var $notices = NULL;
|
||||
var $i = -1;
|
||||
|
||||
function __construct($arr) {
|
||||
$this->notices = $arr;
|
||||
}
|
||||
|
||||
function fetch() {
|
||||
static $fields = array('id', 'profile_id', 'uri', 'content', 'rendered',
|
||||
'url', 'created', 'modified', 'reply_to', 'is_local', 'source');
|
||||
$this->i++;
|
||||
if ($this->i >= count($this->notices)) {
|
||||
return false;
|
||||
} else {
|
||||
$n = $this->notices[$this->i];
|
||||
foreach ($fields as $f) {
|
||||
$this->$f = $n->$f;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user