Skip to content
Browse files

coding standards fix by php-cs-fixer

  • Loading branch information...
1 parent a6fb876 commit 4d7ede7ba1533f6d41cf72a51cc4fd1e7ac64240 heartsentwined committed Sep 28, 2012
View
11 src/Heartsentwined/CronExprParser/Parser.php
@@ -9,9 +9,9 @@ class Parser
/**
* determine whether a given time falls within the given cron expr
*
- * @param string|numeric $time
+ * @param string|numeric $time
* timestamp or strtotime()-compatible string
- * @param string $expr
+ * @param string $expr
* any valid cron expression, in addition supporting:
* range: '0-5'
* range + interval: '10-59/5'
@@ -70,8 +70,8 @@ public static function matchTime($time, $expr)
*
* @see self::exprToNumeric() for additional valid string values
*
- * @param string $expr
- * @param numeric $num
+ * @param string $expr
+ * @param numeric $num
* @throws Exception\InvalidArgumentException on invalid expression
* @return bool
*/
@@ -93,6 +93,7 @@ public static function matchTimeComponent($expr, $num)
return true;
}
}
+
return false;
}
@@ -193,7 +194,7 @@ public static function exprToNumeric($value)
);
if (is_numeric($value)) {
- if (in_array((int)$value, $data, true)) {
+ if (in_array((int) $value, $data, true)) {
return $value;
} else {
return false;
View
1 test/Heartsentwined/Test/CronExprParser/ParserTest.php
@@ -2,7 +2,6 @@
namespace Heartsentwined\Test\CronExprParser;
use Heartsentwined\CronExprParser\Parser;
-use Heartsentwined\CronExprParser\Exception;
class ParserTest extends \PHPUnit_Framework_TestCase
{

0 comments on commit 4d7ede7

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