From 2a4a355c35be0bb1e9571f340fb84c741fc458f9 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Wed, 1 Apr 2015 16:37:53 -0500 Subject: [PATCH 1/2] Verify that operators have valid spacing surrounding them [ci skip] --- ruleset.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ruleset.xml b/ruleset.xml index d88c30f..f0b7c0a 100644 --- a/ruleset.xml +++ b/ruleset.xml @@ -42,4 +42,7 @@ + + + From 46d29c0ff7e98be7ba17c07a747c39dee1b1a7dc Mon Sep 17 00:00:00 2001 From: Ben Word Date: Wed, 1 Apr 2015 16:39:30 -0500 Subject: [PATCH 2/2] Pass new ruleset --- lib/gallery.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/gallery.php b/lib/gallery.php index b17fa62..9443c8d 100644 --- a/lib/gallery.php +++ b/lib/gallery.php @@ -51,8 +51,8 @@ function gallery($attr) { ], $attr)); $id = intval($id); - $columns = (12 % $columns == 0) ? $columns: 3; - $grid = sprintf('col-sm-%1$s col-lg-%1$s', 12/$columns); + $columns = (12 % $columns == 0) ? $columns : 3; + $grid = sprintf('col-sm-%1$s col-lg-%1$s', 12 / $columns); if ($order === 'RAND') { $orderby = 'none'; @@ -83,7 +83,7 @@ function gallery($attr) { return $output; } - $unique = (get_query_var('page')) ? $instance . '-p' . get_query_var('page'): $instance; + $unique = (get_query_var('page')) ? $instance . '-p' . get_query_var('page') : $instance; $output = '