Skip to content
Browse files

Remove whitespace [Gun.io WhitespaceBot]

  • Loading branch information...
1 parent c2f0aa0 commit a7688331b522bc196a3d30222bc77cb1398de77e Gun.io Whitespace Robot committed Dec 17, 2011
Showing with 57 additions and 7 deletions.
  1. +50 −0 .gitignore
  2. +6 −6 classes/depends.php
  3. +1 −1 config/depends.php
View
50 .gitignore
@@ -0,0 +1,50 @@
+# Compiled source #
+###################
+*.com
+*.class
+*.dll
+*.exe
+*.o
+*.so
+*.pyc
+
+# Numerous always-ignore extensions
+###################
+*.diff
+*.err
+*.orig
+*.log
+*.rej
+*.swo
+*.swp
+*.vi
+*~
+
+*.sass-cache
+# Folders to ignore
+###################
+.hg
+.svn
+.CVS
+# OS or Editor folders
+###################
+.DS_Store
+Icon?
+Thumbs.db
+ehthumbs.db
+nbproject
+.cache
+.project
+.settings
+.tmproj
+*.esproj
+*.sublime-project
+*.sublime-workspace
+# Dreamweaver added files
+###################
+_notes
+dwsync.xml
+# Komodo
+###################
+*.komodoproject
+.komodotools
View
12 classes/depends.php
@@ -3,25 +3,25 @@
class Depends
{
protected static $paths = array(MODPATH);
-
+
protected static $modules = array();
-
+
public static function init(array $conf = NULL)
{
self::$modules = Kohana::modules();
-
+
if($conf === NULL) return;
-
+
if(isset($conf['paths']))
{
self::$paths = array_merge(self::$paths, $conf['paths']);
}
}
-
+
public static function on($name)
{
if(isset(self::$modules[$name])) return;
-
+
foreach(self::$paths as $path)
{
if(is_dir($path.$name))
View
2 config/depends.php
@@ -4,5 +4,5 @@
'paths' => array(
MODPATH,
WIDGETSPATH
- )
+ )
);

0 comments on commit a768833

Please sign in to comment.
Something went wrong with that request. Please try again.