Passed
Push — master ( 6042d7...377078 )
by Mihail
04:38
created
Apps/View/Admin/default/widget/turn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             [['text' => __('Name')], ['text' => $widget->getLocaleName()]],
32 32
             [['text' => __('System name')], ['text' => $widget->sys_name]],
33 33
             [['text' => __('Last update')], ['text' => Date::convertToDatetime($widget->updated_at, DATE::FORMAT_TO_SECONDS)]],
34
-            [['text' => __('Status')], ['text' => ((int)$widget->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' =>  ((int)$widget->disabled === 0) ? 'alert-success' : 'alert-danger']]
34
+            [['text' => __('Status')], ['text' => ((int) $widget->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' =>  ((int) $widget->disabled === 0) ? 'alert-success' : 'alert-danger']]
35 35
         ]
36 36
     ]
37 37
 ]); ?>
Please login to merge, or discard this patch.
Apps/View/Admin/default/comments/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
         ['type' => 'link', 'text' => __('Group management'), 'link' => ['user/grouplist']],
10 10
         ['type' => 'link', 'text' => __('Settings'), 'link' => ['user/settings']]
11 11
     ]
12
-]);?>
13 12
\ No newline at end of file
13
+]); ?>
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Model/Front/Content/EntityContentSearch.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * EntityContentSearch constructor. Pass search terms (query string) to model and used items to skip it by id.
27 27
      * @param $terms
28
-     * @param int|array $skipIds
28
+     * @param integer $skipIds
29 29
      */
30 30
     public function __construct($terms, $skipIds = 0)
31 31
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
             $this->items[] = [
78 78
                 'title' => $item->getLocaled('title'),
79 79
                 'snippet' => Text::snippet($text),
80
-                'uri' => '/content/read/' . $item->getPath(),
80
+                'uri' => '/content/read/'.$item->getPath(),
81 81
                 'thumb' => $item->getPosterThumbUri()
82 82
             ];
83 83
         }
Please login to merge, or discard this patch.
Apps/Model/Front/Feedback/FormFeedbackAdd.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function __construct($captcha = true)
22 22
     {
23
-        $this->_useCaptcha = (bool)$captcha;
23
+        $this->_useCaptcha = (bool) $captcha;
24 24
         parent::__construct();
25 25
     }
26 26
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 
96 96
     /**
97 97
      * Send email notification after feedback request creation
98
-     * @param $record
98
+     * @param FeedbackPost $record
99 99
      * @throws \Ffcms\Core\Exception\SyntaxException
100 100
      */
101 101
     private function sendEmail($record)
Please login to merge, or discard this patch.
Apps/View/Admin/default/feedback/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
         ['type' => 'link', 'text' => __('Group management'), 'link' => ['user/grouplist']],
10 10
         ['type' => 'link', 'text' => __('Settings'), 'link' => ['user/settings']]
11 11
     ]
12
-]);?>
13 12
\ No newline at end of file
13
+]); ?>
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Front/default/feedback/read.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@
 block discarded – undo
66 66
     ]
67 67
 ]);
68 68
     ?>
69
-<?php else: ?>
69
+<?php else {
70
+    : ?>
70 71
     <p>No additional fields is added!</p>
71
-<?php endif; ?>
72 72
\ No newline at end of file
73
+<?php endif;
74
+}
75
+?>
73 76
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
 ?>
28 28
 
29 29
 <?php
30
-if ((int)$post->closed === 0 && \App::$User->isAuth()) {
30
+if ((int) $post->closed === 0 && \App::$User->isAuth()) {
31 31
     $user = App::$User->identity();
32
-    if ($user->getId() === (int)$post->user_id) {
33
-        echo '<div class="pull-right">' .
34
-            Url::link(['feedback/close', $post->id, $post->hash], __('Close request'), ['class' => 'btn btn-danger']) .
32
+    if ($user->getId() === (int) $post->user_id) {
33
+        echo '<div class="pull-right">'.
34
+            Url::link(['feedback/close', $post->id, $post->hash], __('Close request'), ['class' => 'btn btn-danger']).
35 35
             '</div>';
36 36
     }
37 37
 }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 </div>
53 53
 <h3><?= __('Answers') ?></h3>
54 54
 <hr />
55
-<?php if ((int)$post->readed === 0 && ($answers === null || $answers->count() < 1)): ?>
55
+<?php if ((int) $post->readed === 0 && ($answers === null || $answers->count() < 1)): ?>
56 56
     <p class="alert alert-warning"><?= __('This message is not properly readed by website administrators') ?></p>
57 57
 <?php endif; ?>
58 58
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     <?php foreach ($answers as $answer): ?>
61 61
         <div class="row">
62 62
             <div class="col-md-12">
63
-                <div class="panel <?= (int)$answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>">
63
+                <div class="panel <?= (int) $answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>">
64 64
                     <div class="panel-heading">
65 65
                         <strong><?= $answer->name ?> (<?= $answer->email ?>)</strong>,
66 66
                         <?= Date::convertToDatetime($answer->created_at, Date::FORMAT_TO_HOUR) ?>
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 <?php endif; ?>
76 76
 
77 77
 <br />
78
-<?php if ((int)$post->closed === 0 && $model !== null): ?>
78
+<?php if ((int) $post->closed === 0 && $model !== null): ?>
79 79
     <h3><?= __('Add answer') ?></h3>
80 80
     <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']) ?>
81 81
     <?= $form->start() ?>
Please login to merge, or discard this patch.
Apps/View/Admin/default/comments/delete.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
 foreach ($records as $item) {
33 33
     $message = Str::sub(\App::$Security->strip_tags($item->message), 0, 50);
34 34
     $author = Simplify::parseUserNick($item->user_id, $item->guest_name);
35
-    if ((int)$item->user_id > 0) {
36
-        $author = Url::link(['user/update', (int)$item->user_id], $author);
35
+    if ((int) $item->user_id > 0) {
36
+        $author = Url::link(['user/update', (int) $item->user_id], $author);
37 37
     }
38 38
     
39 39
     
Please login to merge, or discard this patch.
Apps/Model/Api/Content/ContentRatingChange.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         App::$Session->set('content.rate.ignore', $ignored);
65 65
         
66 66
         // save rating changes to database
67
-        switch($this->_type) {
67
+        switch ($this->_type) {
68 68
             case 'plus':
69 69
                 $this->_content->rating += 1;
70 70
                 break;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $this->_content->save();
77 77
         
78 78
         // update content author rating
79
-        $authorId = (int)$this->_content->author_id;
79
+        $authorId = (int) $this->_content->author_id;
80 80
         if ($authorId > 0 && App::$User->isExist($authorId)) {
81 81
             $authorObject = App::$User->identity($authorId);
82 82
             if ($authorObject !== null) {
Please login to merge, or discard this patch.
Widgets/Front/Newcontent/Newcontent.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     
79 79
     /**
80 80
      * Make query to database
81
-     * @return object
81
+     * @return string
82 82
      */
83 83
     private function makeQuery()
84 84
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         
73 73
         // render view
74 74
         return App::$View->render($this->tpl, [
75
-           'records' => $query 
75
+            'records' => $query 
76 76
         ]);
77 77
     }
78 78
     
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@
 block discarded – undo
34 34
         }
35 35
         // check cache is defined
36 36
         if ($this->cache === null || !Obj::isLikeInt($this->cache)) {
37
-            $this->cache = (int)$cfg['cache'];
37
+            $this->cache = (int) $cfg['cache'];
38 38
         }
39 39
         // check item count is defined
40 40
         if ($this->count === null || !Obj::isLikeInt($this->count)) {
41
-            $this->count = (int)$cfg['count'];
41
+            $this->count = (int) $cfg['count'];
42 42
         }
43 43
 
44
-        $this->_cacheName = 'widget.newcontent.' . $this->createStringClassSnapshotHash();
44
+        $this->_cacheName = 'widget.newcontent.'.$this->createStringClassSnapshotHash();
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.