Passed
Push — master ( 4af99e...4a867a )
by Mihail
16:55 queued 03:08
created
Extend/Core/Arch/AdminController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     /**
124 124
      * Get current extension active record
125 125
      * @param string|null $type
126
-     * @return mixed
126
+     * @return AppRecord
127 127
      */
128 128
     public function getTypeItem($type = null)
129 129
     {
Please login to merge, or discard this patch.
Apps/Model/Admin/Comments/FormCommentUpdate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     /**
21 21
      * FormCommentUpdate constructor. Pass record inside the model.
22
-     * @param \Apps\ActiveRecord\CommentPost|\Apps\ActiveRecord\CommentAnswer $record
22
+     * @param \Ffcms\Core\Arch\ActiveModel $record
23 23
      */
24 24
     public function __construct($record, $type = 'comment')
25 25
     {
Please login to merge, or discard this patch.
Apps/Model/Admin/Content/FormContentPublish.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     /**
19 19
      * FormContentPublish constructor. Pass records inside
20
-     * @param Content[]|Collection $records
20
+     * @param \Ffcms\Core\Arch\ActiveModel $records
21 21
      */
22 22
     public function __construct($records)
23 23
     {
Please login to merge, or discard this patch.
Apps/ActiveRecord/App.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     /**
60 60
      * @deprecated
61
-     * @return \Illuminate\Database\Eloquent\Collection|mixed
61
+     * @return \Illuminate\Database\Eloquent\Collection
62 62
      * @throws SyntaxException
63 63
      */
64 64
     public static function getAll()
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * Get single row by defined type and sys_name with query caching
89 89
      * @param string $type
90 90
      * @param string|array $name
91
-     * @return mixed|null
91
+     * @return App
92 92
      * @throws SyntaxException
93 93
      */
94 94
     public static function getItem($type, $name)
Please login to merge, or discard this patch.
Apps/ActiveRecord/User.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
     /**
169 169
      * Get user person like a object via email
170 170
      * @param string|null $email
171
-     * @return null|self
171
+     * @return null|ActiveModel
172 172
      */
173 173
     public static function getIdentityViaEmail(?string $email = null)
174 174
     {
Please login to merge, or discard this patch.
Apps/Model/Front/Content/EntityContentSearch.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * EntityContentSearch constructor. Pass search terms (query string) to model and used items to skip it by id.
34 34
      * @param $terms
35
-     * @param int|array $skipIds
35
+     * @param integer $skipIds
36 36
      * @param int|null $categoryId
37 37
      */
38 38
     public function __construct($terms, $skipIds = 0, $categoryId = null)
Please login to merge, or discard this patch.
Apps/View/Front/default/widgets/comments/show.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,8 @@  discard block
 block discarded – undo
77 77
     </div>
78 78
     <?php if (\App::$Captcha->isFull()): ?>
79 79
 		<div class="col-md-offset-3 col-md-9"><?= \App::$Captcha->get() ?></div>
80
-    <?php else: ?>
80
+    <?php else {
81
+    : ?>
81 82
     <div class="form-group">
82 83
         <label for="guest-captcha" class="col-sm-3 control-label"><?= __('Captcha') ?>:</label>
83 84
         <div class="col-sm-9">
@@ -85,7 +86,9 @@  discard block
 block discarded – undo
85 86
             <input id="guest-captcha" type="text" name="captcha" class="form-control" required>
86 87
         </div>
87 88
     </div>
88
-    <?php endif; ?>
89
+    <?php endif;
90
+}
91
+?>
89 92
     <?php endif; ?>
90 93
     <textarea class="form-control wysi-comments" name="message"></textarea>
91 94
 </form>
Please login to merge, or discard this patch.
Apps/View/Front/default/widgets/newcomment/default.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,12 @@
 block discarded – undo
18 18
 			<li><i class="glyphicon glyphicon-user"></i>
19 19
 			<?php if ((int)$comment['user']['id'] > 0): ?>
20 20
 				<?= Url::link(['profile/show', $comment['user']['id']], $comment['user']['name']) ?>
21
-			<?php else: ?>
21
+			<?php else {
22
+    : ?>
22 23
 				<?= $comment['user']['name'] ?>
23
-			<?php endif; ?>
24
+			<?php endif;
25
+}
26
+?>
24 27
 			</li>
25 28
 		</ul>
26 29
 	</li>
Please login to merge, or discard this patch.
Apps/View/Front/default/content/read.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,9 +74,12 @@  discard block
 block discarded – undo
74 74
         <?php if ($properties['author'] === true): ?>
75 75
             <?php if ($model->authorId !== null && $model->authorId > 0): ?>
76 76
                 <span class="spaced"><i class="glyphicon glyphicon-user"></i> <?= Url::link(['profile/show', $model->authorId], $model->authorName, ['itemprop' => 'author']) ?></span>
77
-            <?php else: ?>
77
+            <?php else {
78
+    : ?>
78 79
                 <span class="spaced"><i class="glyphicon glyphicon-user"></i> <s><?= $model->authorName ?></s></span>
79
-            <?php endif; ?>
80
+            <?php endif;
81
+}
82
+?>
80 83
         <?php endif; ?>
81 84
         <?php if ($properties['views'] === true): ?>
82 85
         <span class="spaced"><i class="glyphicon glyphicon-eye-open"></i> <?= $model->views ?></span>
@@ -85,9 +88,12 @@  discard block
 block discarded – undo
85 88
         <span class="pull-right"><a href="<?= \App::$Alias->scriptUrl . '/admin/content/update/' . $model->id ?>" target="_blank"><i class="glyphicon glyphicon-pencil" style="color: #ff0000;"></i></a></span>
86 89
         <?php endif; ?>
87 90
     </div>
88
-    <?php else: ?>
91
+    <?php else {
92
+    : ?>
89 93
     <hr />
90
-    <?php endif; ?>
94
+    <?php endif;
95
+}
96
+?>
91 97
     <?php if ($trash): ?>
92 98
     <p class="alert alert-danger"><i class="glyphicon glyphicon-trash"></i> <?= __('This content is placed in trash') ?></p>
93 99
     <?php endif; ?>
Please login to merge, or discard this patch.