Passed
Push — master ( 52a213...e6641b )
by Loban
08:22
created
src/LogInfoBehavior.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         if (is_callable($this->template)) {
76 76
             return call_user_func($this->template);
77 77
         }
78
-        $callback = function ($matches) {
78
+        $callback = function($matches) {
79 79
             return ArrayHelper::getValue($this->owner, $matches[1]);
80 80
         };
81 81
         return preg_replace_callback('/\\{([\w\._]+)\\}/', $callback, $this->template);
Please login to merge, or discard this patch.
src/middlewares/MiddlewarePipeline.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         $middlewareChain = array_reduce(
20 20
             array_reverse($this->middlewares),
21
-            static function (Closure $next, Middleware $middleware) {
21
+            static function(Closure $next, Middleware $middleware) {
22 22
                 return static fn (MessageBuilderInterface $builder): MessageBuilderInterface => $middleware->handle($builder, $next);
23 23
             },
24 24
             static function(MessageBuilderInterface $builder): MessageBuilderInterface {
Please login to merge, or discard this patch.
src/module/views/default/_item.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,8 @@  discard block
 block discarded – undo
51 51
                 <?php endif; ?>
52 52
                 <?= Html::encode(Yii::t('lav45/logger', $values)) ?>
53 53
             </li>
54
-        <?php else: ?>
54
+        <?php else {
55
+    : ?>
55 56
             <li>
56 57
                 <?= Yii::t('lav45/logger', '<strong>{attribute}</strong> has been changed', ['attribute' => Html::encode($attribute)]) ?>
57 58
 
@@ -61,6 +62,8 @@  discard block
 block discarded – undo
61 62
                 <?= Html::encode(Yii::t('lav45/logger', 'to')) ?>
62 63
                 <strong><i class="details-text"><?= $values->getNewValue() ?></i></strong>
63 64
             </li>
64
-        <?php endif; ?>
65
+        <?php endif;
66
+}
67
+?>
65 68
     <?php endforeach; ?>
66 69
 </ul>
Please login to merge, or discard this patch.
src/MessageBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function withEntityId($id): self
27 27
     {
28 28
         $new = clone $this;
29
-        $new->message->entityId = (string)$id;
29
+        $new->message->entityId = (string) $id;
30 30
         return $new;
31 31
     }
32 32
 
Please login to merge, or discard this patch.
src/module/models/ActivityLog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     public function getData(): iterable
71 71
     {
72 72
         if ($this->data) {
73
-            return (array)json_decode($this->data, true, 512, JSON_THROW_ON_ERROR);
73
+            return (array) json_decode($this->data, true, 512, JSON_THROW_ON_ERROR);
74 74
         }
75 75
         return [];
76 76
     }
Please login to merge, or discard this patch.