Pārlūkot izejas kodu

Add spaces to code O_o

Visman 4 gadi atpakaļ
vecāks
revīzija
0c2095e369

+ 1 - 1
app/Core/ErrorHandler.php

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

+ 1 - 1
app/Core/Mail.php

@@ -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) {

+ 1 - 1
app/Core/Validator.php

@@ -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);

+ 1 - 1
app/Models/Forum/Model.php

@@ -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',

+ 1 - 1
app/Models/Pages/Index.php

@@ -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;
             }
         }

+ 1 - 1
app/Models/Pages/PostValidatorTrait.php

@@ -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);
             }

+ 1 - 1
app/Models/Pages/Profile/Edit.php

@@ -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);
                 }

+ 1 - 1
app/templates/feed_atom.forkbb.php

@@ -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'] }}" />

+ 1 - 1
app/templates/feed_rss.forkbb.php

@@ -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>