Permalink
Browse files

coding style guides

  • Loading branch information...
1 parent f11f6a8 commit c84aef38a53766ea825e1fef73886a6ff0b803ae @everzet committed Jul 5, 2010
Showing with 13 additions and 10 deletions.
  1. +11 −8 lib/sfLESSDependency.class.php
  2. +2 −2 lib/task/lessCompileTask.class.php
@@ -1,4 +1,5 @@
<?php
+
/*
* This file is part of the sfLESSPlugin.
* (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
@@ -28,8 +29,8 @@ class sfLESSDependency
protected $check = false;
/**
- * @param string $path Base path (web root folder)
- * @param boolean $check Whether to check for dependency
+ * @param string $path Base path (web root folder)
+ * @param boolean $check Whether to check for dependency
*/
public function __construct($path, $check)
{
@@ -47,8 +48,9 @@ public function __construct($path, $check)
/**
* Return the modification time of the file (optionally including its dependency)
*
- * @param string $file Filename
- * @return integer|false The time the files was last modified (unix timestamp)
+ * @param string $file Filename
+ *
+ * @return integer|boolean The time the files was last modified (unix timestamp)
*/
public function getMtime($lessFile)
{
@@ -72,9 +74,10 @@ public function getMtime($lessFile)
/**
* Compute the dependencies of the file
*
- * @param file $lessFile A less file
- * @param array $deps An array of pre-existing dependencies
- * @return array The updated array of dependencies
+ * @param file $lessFile A less file
+ * @param array $deps An array of pre-existing dependencies
+ *
+ * @return array The updated array of dependencies
*/
protected function computeDependencies($lessFile, array $deps)
{
@@ -119,4 +122,4 @@ protected function computeDependencies($lessFile, array $deps)
return array();
}
}
-}
+}
@@ -101,8 +101,8 @@ protected function execute($arguments = array(), $options = array())
if (isset($options['debug']) && $options['debug'])
{
$this->logSection('compiled', sprintf("%s => %s",
- sfLESS::getProjectRelativePath($lessFile),
- sfLESS::getProjectRelativePath(sfLESS::getCssPathOfLess($lessFile))
+ sfLESSUtils::getProjectRelativePath($lessFile),
+ sfLESSUtils::getProjectRelativePath(sfLESS::getCssPathOfLess($lessFile))
), null, 'COMMAND');
}
else

0 comments on commit c84aef3

Please sign in to comment.