Permalink
Browse files

watch() and convert() are static

  • Loading branch information...
unu committed Dec 5, 2012
1 parent 028f6dd commit a55833e6a23a7c6ddbb7f8568b5440f280b72292
Showing with 4 additions and 4 deletions.
  1. +2 −2 lady.lady
  2. +2 −2 lady.php
View
@@ -260,7 +260,7 @@ class Lady
* @param bool Recursive search
* @return array List of generated files
*/
- fn convert(dir, recursive = false, expanded = false)
+ static fn convert(dir, recursive = false, expanded = false)
files = []
it = RecursiveDirectoryIterator(realpath(dir))
if (recursive)
@@ -280,7 +280,7 @@ class Lady
* @param string Directory to watch
* @param bool Recursive search
*/
- fn watch(dir, recursive = false, expanded = false)
+ static fn watch(dir, recursive = false, expanded = false)
while (true)
files = self.convert(dir, recursive, expanded)
foreach (files as file)
View
@@ -260,7 +260,7 @@ static function tokenize($source){
* @param bool Recursive search
* @return array List of generated files
*/
- function convert($dir, $recursive = false, $expanded = false){
+ static function convert($dir, $recursive = false, $expanded = false){
$files = array();
$it = new RecursiveDirectoryIterator(realpath($dir));
if ($recursive){
@@ -280,7 +280,7 @@ function convert($dir, $recursive = false, $expanded = false){
* @param string Directory to watch
* @param bool Recursive search
*/
- function watch($dir, $recursive = false, $expanded = false){
+ static function watch($dir, $recursive = false, $expanded = false){
while (true){
$files = self::convert($dir, $recursive, $expanded);
foreach ($files as $file){

0 comments on commit a55833e

Please sign in to comment.