Completed
Push2a9c44...03a236
passed — Build
created
src/AuditTrailBehavior.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -218,8 +218,8 @@
 block discarded – undo
218 218
         $query = new Query;
219 219
 
220 220
         $query->select($queryParams['returnField'])
221
-              ->from($queryParams['tableName'])
222
-              ->where([$queryParams['searchField'] => $searchFieldValue]);
221
+                ->from($queryParams['tableName'])
222
+                ->where([$queryParams['searchField'] => $searchFieldValue]);
223 223
 
224 224
         $rows = $query->all();
225 225
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,11 +192,11 @@
 block discarded – undo
192 192
      */
193 193
     protected function cleanAttributesOverride($attributes)
194 194
     {
195
-        if (sizeof($this->override) > 0 && sizeof($attributes) >0) {
195
+        if (sizeof($this->override) > 0 && sizeof($attributes) > 0) {
196 196
             foreach ($this->override as $field => $queryParams) {
197 197
                 $newOverrideValues = $this->getNewOverrideValues($attributes[$field], $queryParams);
198 198
 
199
-                if (count($newOverrideValues) >1) {
199
+                if (count($newOverrideValues) > 1) {
200 200
                     $attributes[$field] = implode(', ',
201 201
                                         \yii\helpers\ArrayHelper::map($newOverrideValues, $queryParams['returnField'], $queryParams['returnField'])
202 202
                     );
Please login to merge, or discard this patch.