Skip to content

Commit

Permalink
Fix CS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Apr 4, 2016
1 parent bafff23 commit c997f20
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Core/functions.php
Expand Up @@ -19,7 +19,6 @@
* Define DS as short form of DIRECTORY_SEPARATOR.
*/
define('DS', DIRECTORY_SEPARATOR);

}

if (!function_exists('h')) {
Expand Down
1 change: 0 additions & 1 deletion src/Network/Http/Auth/Oauth.php
Expand Up @@ -63,7 +63,6 @@ public function authentication(Request $request, array $credentials)

default:
throw new Exception(sprintf('Unknown Oauth signature method %s', $credentials['method']));

}
$request->header('Authorization', $value);
}
Expand Down
2 changes: 0 additions & 2 deletions src/Utility/Hash.php
Expand Up @@ -177,7 +177,6 @@ public static function extract($data, $path)
$next = $filter;
}
$context = [$_key => $next];

}
return $context[$_key];
}
Expand Down Expand Up @@ -277,7 +276,6 @@ protected static function _matches($data, $selector)
) {
return false;
}

}
return true;
}
Expand Down
2 changes: 0 additions & 2 deletions src/Validation/Validation.php
Expand Up @@ -520,13 +520,11 @@ public static function decimal($check, $places = null, $regex = null)

if ($places === null) {
$regex = "/^{$sign}(?:{$lnum}|{$dnum}){$exp}$/";

} elseif ($places === true) {
if (is_float($check) && floor($check) === $check) {
$check = sprintf("%.1f", $check);
}
$regex = "/^{$sign}{$dnum}{$exp}$/";

} elseif (is_numeric($places)) {
$places = '[0-9]{' . $places . '}';
$dnum = "(?:[0-9]*[\.]{$places}|{$lnum}[\.]{$places})";
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/Filesystem/FileTest.php
Expand Up @@ -446,7 +446,6 @@ public function testWrite()
$this->assertEquals($data, file_get_contents($tmpFile));
$this->assertTrue(is_resource($TmpFile->handle));
$TmpFile->close();

}
unlink($tmpFile);
}
Expand Down

0 comments on commit c997f20

Please sign in to comment.