Test Setup Failed
Push — master ( d2d35e...d3f276 )
by Александр
01:35
created
src/relatedProperties/models/RelatedPropertyModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             //[['code'], 'string', 'max' => 64],
138 138
             [
139 139
                 ['code'],
140
-                function ($attribute) {
140
+                function($attribute) {
141 141
                     if (!preg_match('/^[a-zA-Z]{1}[a-zA-Z0-9]{1,255}$/',
142 142
                         $this->$attribute))
143 143
                         //if(!preg_match('/(^|.*\])([\w\.]+)(\[.*|$)/', $this->$attribute))
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
             [
154 154
                 'code',
155 155
                 'default',
156
-                'value' => function ($model, $attribute) {
156
+                'value' => function($model, $attribute) {
157 157
                     return "property" . StringHelper::ucfirst(md5(rand(1, 10) . time()));
158 158
                 }
159 159
             ],
Please login to merge, or discard this patch.