Skip to content

Commit

Permalink
fix cs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jan 4, 2015
1 parent 8fcf95d commit f63f6be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Validation/Validation.php
Expand Up @@ -973,7 +973,8 @@ public static function uploadedFile($file, $options = [])
* @param array $value The array representing a date or datetime.
* @return string
*/
protected static function _getDateString($value) {
protected static function _getDateString($value)
{
$formatted = '';
if (
isset($value['year'], $value['month'], $value['day']) &&
Expand Down
6 changes: 4 additions & 2 deletions tests/TestCase/Validation/ValidationTest.php
Expand Up @@ -1487,7 +1487,8 @@ public function testDateY()
*
* @return void
*/
public function testDateArray() {
public function testDateArray()
{
$date = ['year' => 2014, 'month' => 2, 'day' => 14];
$this->assertTrue(Validation::date($date));
$date = ['year' => 'farts', 'month' => 'derp', 'day' => 'farts'];
Expand All @@ -1499,7 +1500,8 @@ public function testDateArray() {
*
* @return void
*/
public function testDateTimeArray() {
public function testDateTimeArray()
{
$date = ['year' => 2014, 'month' => 2, 'day' => 14, 'hour' => 13, 'minute' => 14, 'second' => 15];
$this->assertTrue(Validation::datetime($date));

Expand Down

0 comments on commit f63f6be

Please sign in to comment.