Passed
Push — master ( 1dbfa0...aaaee4 )
by Mihail
07:38
created
Apps/View/Front/default/widgets/comments/show.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /** @var array $configs */
3
-<!-- Note! You can change this structures any way you like. JS operations based ONLY on ID and "hidden" class -->
4
-<!-- comments general line -->
5
-<div class="row">
6
-    <div class="col-md-12">
7
-        <div class="page-comment">
8
-            <ul class="comments" id="comment-list">
9
-                <li class="hidden" id="load-comments"></li>
10
-            </ul>
11
-        </div>
12
-        <div id="comment-show-more" class="hidden">
13
-            <button class="btn btn-block btn-info">Load more (<span id="comment-left-count">0</span> left)</button>
14
-        </div>
15
-    </div>
16
-</div>
3
+<!-- Note!You can change this structures any way you like . JS operations based ONLY on ID and "hidden" class-- >
4
+<!-- comments general line-- >
5
+<div class = "row" >
6
+    <div class = "col-md-12" >
7
+        <div class = "page-comment" >
8
+            <ul class = "comments" id = "comment-list" >
9
+                <li class = "hidden" id = "load-comments" > < / li >
10
+            < / ul >
11
+        < / div >
12
+        <div id = "comment-show-more" class = "hidden" >
13
+            <button class = "btn btn-block btn-info" > Load more( < span id = "comment-left-count" > 0 < /span > left) < /button >
14
+        < / div >
15
+    < / div >
16
+< / div >
17 17
 
18
-<!-- Comment post item structure. -->
19
-<li class="clearfix hidden" id="comment-structure">
20
-    <img id="comment-user-avatar" src="<?= \App::$Alias->scriptUrl ?>/upload/user/avatar/small/default.jpg" class="avatar" alt="Avatar">
21
-    <div class="post-comments">
22
-        <div class="meta">
23
-            <span id="comment-date">01.01.2016</span> <span id="comment-user-nick"><?= __('Unknown') ?></span>:
18
+<!-- Comment post item structure . -- >
19
+<li class = "clearfix hidden" id = "comment-structure" >
20
+    <img id = "comment-user-avatar" src = "<?= \App::$Alias->scriptUrl ?>/upload/user/avatar/small/default.jpg" class = "avatar" alt = "Avatar" >
21
+    <div class = "post-comments" >
22
+        <div class = "meta" >
23
+            <span id = "comment-date" > 01.01.2016 < /span > <span id = "comment-user-nick" > < ? = __('Unknown') ?></span>:
24 24
             <i class="pull-right">
25 25
                 <a href="#" class="show-comment-answers">
26 26
                     <small><?= __('Answers') ?> (<span id="comment-answer-count">0</span>)</small>
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     </li>
56 56
 </ul>
57 57
 
58
-<?php if ((int)$configs['guestAdd'] === 1 || \App::$User->isAuth()): ?>
58
+<?php if ((int) $configs['guestAdd'] === 1 || \App::$User->isAuth()): ?>
59 59
 <!-- comment form -->
60 60
 <form name="comment-add-form" action="" method="post" style="padding-top: 15px;" class="form-horizontal">
61 61
     <input type="hidden" name="replay-to" value="0" />
Please login to merge, or discard this patch.
Apps/View/Admin/default/comments/comment_read.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     <div class="panel-heading">
55 55
         <?php
56 56
         $answerAuthor = Simplify::parseUserNick($answer->user_id, $answer->guest_name);
57
-        if ((int)$answer->user_id > 0) {
57
+        if ((int) $answer->user_id > 0) {
58 58
             $answerAuthor = Url::link(['user/update', $answer->user_id], $answerAuthor);
59 59
         }
60 60
         ?>
Please login to merge, or discard this patch.
Apps/Controller/Front/User.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             App::$Session->getFlashBag()->add('error', __('User is never exist or password is incorrect!'));
54 54
             // initialize fail event
55 55
             App::$Event->run(static::EVENT_USER_LOGIN_FAIL, [
56
-               'model' => $loginForm 
56
+                'model' => $loginForm 
57 57
             ]);
58 58
         }
59 59
 
@@ -113,14 +113,14 @@  discard block
 block discarded – undo
113 113
             if ($registerForm->tryRegister($configs['registrationType'] === 1)) {
114 114
                 // initialize succes signup event
115 115
                 App::$Event->run(static::EVENT_USER_REGISTER_SUCCESS, [
116
-                   'model' => $registerForm 
116
+                    'model' => $registerForm 
117 117
                 ]);
118 118
                 // send notification of successful registering
119 119
                 App::$Session->getFlashBag()->add('success', __('Your account is registered. You must confirm account via email'));
120 120
             } else {
121 121
                 // init fail signup event
122 122
                 App::$Event->run(static::EVENT_USER_REGISTER_FAIL, [
123
-                   'model' => $registerForm 
123
+                    'model' => $registerForm 
124 124
                 ]);
125 125
                 App::$Session->getFlashBag()->add('error', __('Login or email is always used on website'));
126 126
             }
Please login to merge, or discard this patch.