Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

consistent code style, refs #49

  • Loading branch information...
commit 3cf02f6674929724f2cd5a1616ab07a7290391c0 1 parent c117adf
@kvakes kvakes authored
Showing with 19 additions and 21 deletions.
  1. +19 −21 extensions/twig-extensions.inc.php
View
40 extensions/twig-extensions.inc.php
@@ -5,12 +5,12 @@
if (file_exists('app/parsers/Twig/Extension.php')) require_once 'app/parsers/Twig/Extension.php';
else require_once '../app/parsers/Twig/Extension.php';
- class Stacey_Twig_Extension extends Twig_Extension {
+class Stacey_Twig_Extension extends Twig_Extension {
- var $sortby_value;
+ var $sortby_value;
- public function getName() {
- return 'Stacey';
+ public function getName() {
+ return 'Stacey';
}
public function getFilters() {
@@ -34,21 +34,21 @@ public function getFunctions() {
);
}
- #
- # dump out our var for easy debugging
- #
- public function var_dumper($input) {
- var_dump( $input );
- }
-
- #
- # dump out our var for easy debugging ++ Now with Extra Pre's
- #
- public function var_dumper_pre($input) {
- echo "<pre>";
- print_r( $input );
- echo "</pre>";
- }
+ #
+ # dump out our var for easy debugging
+ #
+ public function var_dumper($input) {
+ var_dump( $input );
+ }
+
+ #
+ # dump out our var for easy debugging ++ Now with Extra Pre's
+ #
+ public function var_dumper_pre($input) {
+ echo "<pre>";
+ print_r( $input );
+ echo "</pre>";
+ }
#
# manually change page context
@@ -81,7 +81,6 @@ function resize_path($img_path, $max_width = '100', $max_height = '100', $ratio
}
}
-
#
# allow offsetting and limiting arrays
#
@@ -113,7 +112,6 @@ function sortbydate($object, $value) {
#
# sort by subvalue using natural string comparison
#
-
public function custom_str_sort($a, $b) {
return strnatcmp($a[$this->sortby_value], $b[$this->sortby_value]);
}
Please sign in to comment.
Something went wrong with that request. Please try again.