@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | if ($file) { |
| 222 | 222 | $photoId = Tools::randomString(); |
| 223 | 223 | $value = '<a href = "' . $file->path . '" id="' . $photoId . '"><img src="' . $file->path . '?resize=60x120" /></a>'; |
| 224 | - $value .='<script>inji.onLoad(function(){$("#' . $photoId . '").fancybox();});</script>'; |
|
| 224 | + $value .= '<script>inji.onLoad(function(){$("#' . $photoId . '").fancybox();});</script>'; |
|
| 225 | 225 | } else { |
| 226 | 226 | $value = '<img src="/static/system/images/no-image.png?resize=60x120" />'; |
| 227 | 227 | } |
@@ -1110,7 +1110,7 @@ discard block |
||
| 1110 | 1110 | $items[$item[$arrayKey]] = new $class($item); |
| 1111 | 1111 | } |
| 1112 | 1112 | if (!empty($options['order'])) { |
| 1113 | - usort($items, function($a, $b) use($options) { |
|
| 1113 | + usort($items, function ($a, $b) use($options) { |
|
| 1114 | 1114 | if ($a->{$options['order'][0]} > $b->{$options['order'][0]} && $options['order'][1] = 'asc') { |
| 1115 | 1115 | return 1; |
| 1116 | 1116 | } elseif ($a->{$options['order'][0]} < $b->{$options['order'][0]} && $options['order'][1] = 'asc') { |
@@ -1290,7 +1290,7 @@ discard block |
||
| 1290 | 1290 | } else { |
| 1291 | 1291 | $cols .= '*'; |
| 1292 | 1292 | } |
| 1293 | - $cols .=') as `count`' . (!empty($options['cols']) ? ',' . $options['cols'] : ''); |
|
| 1293 | + $cols .= ') as `count`' . (!empty($options['cols']) ? ',' . $options['cols'] : ''); |
|
| 1294 | 1294 | $query->cols = $cols; |
| 1295 | 1295 | if (!empty($options['group'])) { |
| 1296 | 1296 | $query->group($options['group']); |