Commit graph

11 commits

Author SHA1 Message Date
Joshua Sherman
200988eecf Swapped all array() for the shorthand []
Also finished up coverage on the Cache class.
2014-01-15 14:09:54 -05:00
Joshua Sherman
8db383601e More tests and 100% coverage achievements!
Also fixed a few minor bugs and reworked Browser class to not use the constant
UNIT_TESTING so I could get the class to 100% coverage. Adds a dependency of
testing_helpers which I believe is available on Travis CI by default. Up to 75%
coverage, w00t w00t!
2014-01-12 16:09:48 -05:00
Joshua Sherman
8fc726b983 Updated copyright date.
It's a new year, figured it would be nice to get this done before summer time
like most years.
2014-01-05 13:44:25 -05:00
Joshua Sherman
c0dbb39bda More tests
Also, found that damn newline that was being output.
2013-12-30 17:13:22 -05:00
Josh Sherman
d96181c60f Q4 2013, seemed like a good time to update the copyright notices 2013-11-04 17:36:04 -05:00
Josh Sherman
b4d9b0e182 Added method to pull the user's IP
Browser::remoteIP();
2013-02-16 17:13:19 -05:00
Josh Sherman
bf15f592e9 Added an alias to take you home
Browser::goHome();
2013-02-16 15:04:38 -05:00
Josh Sherman
cbb75e7064 Added @geoffoliver attributes.
Geoff likes to exploit the URI and inject key/value pairs into it. It's not something I do, but I was intrigued enough to implement it. Basic usage is /path/to/page/id:123/spam:eggs. The variables are removed from the request variable as to not bork module loading and are made available via Browser::get('variable');
2013-02-04 23:34:09 -05:00
Josh Sherman
0c2aaafefc Fixed issue with nginx HTTPS global
Variable was set to an empty string and being evaluated as true.
2012-12-13 16:05:34 -05:00
Josh Sherman
2795abf531 Added isMobile() function to the Browser class 2012-10-14 14:01:56 -04:00
Josh Sherman
ed52ebe529 Added Browser Utility class
Only 2 methods right now, redirect() and status().
2012-10-14 13:56:59 -04:00