Convert array syntax and other minor code style adjustments.

This commit is contained in:
David Molineus committed 2017-10-17 18:11:28 +02:00
1 parent 6ded7441d9
commit c465b724f4
63 files changed
+413 -404

No files matched your search

+4 -4
View File
@@ -42,18 +42,18 @@ class LayerModel extends AbstractActiveModel
*
* @return Collection|null
*/
public static function findMultipleByTypes(array $types, $options = array())
public static function findMultipleByTypes(array $types, $options = [])
{
if (empty($types)) {
return null;
}
$options['column'] = array(
$options['column'] = [
sprintf(
'type IN (%s)',
substr(str_repeat('?,', count($types)), 0, -1)
)
);
),
];
$options['value'] = $types;
$options['return'] = 'Collection';