Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

consistent code style, refs #49 #50

Merged
merged 1 commit into from

2 participants

@kvakes

No description provided.

@kolber kolber merged commit 451907a into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 29, 2012
  1. @kvakes

    consistent code style, refs #49

    kvakes authored
This page is out of date. Refresh to see the latest.
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]);
}
Something went wrong with that request. Please try again.