Add spaces to code O_o

This commit is contained in:
Visman 2021-01-27 19:19:32 +07:00
parent 436e9b31ba
commit 0c2095e369
9 changed files with 9 additions and 9 deletions

View file

@ -208,7 +208,7 @@ EOT;
) {
$comma = '';
foreach($cur['args'] as $arg) {
foreach ($cur['args'] as $arg) {
$type = \gettype($arg);
switch ($type) {

View file

@ -227,7 +227,7 @@ class Mail
$email = \preg_split('%[,\n\r]%', (string) $email, -1, \PREG_SPLIT_NO_EMPTY);
}
foreach($email as $cur) {
foreach ($email as $cur) {
$cur = $this->valid(\trim((string) $cur), false, true);
if (false !== $cur) {

View file

@ -518,7 +518,7 @@ class Validator
return null; // а не null
}
} elseif (\is_string($value)) {
foreach(\explode(',', $attr) as $action) {
foreach (\explode(',', $attr) as $action) {
switch ($action) {
case 'trim':
$value = $this->trim($value);

View file

@ -247,7 +247,7 @@ class Model extends DataModel
}
if ('1' == $this->c->user->g_view_users) {
foreach($attr as $id => &$cur) {
foreach ($attr as $id => &$cur) {
$cur = [
$this->c->Router->link(
'User',

View file

@ -43,7 +43,7 @@ class Index extends Page
if (empty($forums)) {
$this->fIswev = ['i', __('Empty board')];
} else {
foreach($forums as $forum) {
foreach ($forums as $forum) {
$ctgs[$forum->cat_id][] = $forum;
}
}

View file

@ -52,7 +52,7 @@ trait PostValidatorTrait
$prepare = true;
$message = $this->c->Parser->prepare($message); //????
foreach($this->c->Parser->getErrors() as $error) {
foreach ($this->c->Parser->getErrors() as $error) {
$prepare = false;
$v->addError($error);
}

View file

@ -189,7 +189,7 @@ class Edit extends Profile
$prepare = true;
$signature = $this->c->Parser->prepare($signature, true); //????
foreach($this->c->Parser->getErrors() as $error) {
foreach ($this->c->Parser->getErrors() as $error) {
$prepare = false;
$v->addError($error);
}

View file

@ -6,7 +6,7 @@
<updated>{{ \gmdate('c', $p->feed['updated']) }}</updated>
<generator>ForkBB</generator>
<id>{{ $p->feed['id'] }}</id>
@foreach($p->feed['items'] as $item)
@foreach ($p->feed['items'] as $item)
<entry>
<title>{{ $item['title'] }}</title>
<link rel="alternate" type="text/html" href="{{ $item['link'] }}" />

View file

@ -7,7 +7,7 @@
<description>{{ $p->feed['description'] }}</description>
<pubDate>{{ \gmdate('r', $p->feed['updated']) }}</pubDate>
<generator>ForkBB</generator>
@foreach($p->feed['items'] as $item)
@foreach ($p->feed['items'] as $item)
<item>
<title>{{ $item['title'] }}</title>
<link>{{ $item['link'] }}</link>