Skip to content

Commit

Permalink
CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
neomerx committed Nov 29, 2017
1 parent a4d945c commit da377c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@

"test": ["@test-unit", "@test-cs", "@test-md"],
"test-unit": "phpdbg -qrr ./vendor/bin/phpunit --coverage-text",
"test-cs": "./vendor/bin/phpcs -p -s --standard=PSR2 ./app ./tests",
"test-md": "./vendor/bin/phpmd ./app text codesize,controversial,cleancode,design,unusedcode,naming",
"test-cs": "./vendor/bin/phpcs -p -s --standard=PSR2 ./server/app ./server/tests",
"test-md": "./vendor/bin/phpmd ./server/app text codesize,controversial,cleancode,design,unusedcode,naming",
"stress": "wrk -t10 -d5s -c400 http://127.0.0.1:8080/"
}
}
3 changes: 2 additions & 1 deletion server/app/Api/UsersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ protected function getAuthorizationActionAndResourceTypeForRelationship(
*
* @return iterable
*/
private function getReplacePasswordWithHash(iterable $attributes) : iterable {
private function getReplacePasswordWithHash(iterable $attributes) : iterable
{
// in attributes were captured validated input password we need to convert it into password hash
foreach ($attributes as $name => $value) {
if ($name === Scheme::CAPTURE_NAME_PASSWORD) {
Expand Down
2 changes: 0 additions & 2 deletions server/app/Routes/WebRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ public static function configureRoutes(GroupInterface $routes): void
// HTML pages group
// This group uses exception handler to provide error information in HTML format with Whoops.
->group('', function (GroupInterface $routes): void {

$slugged = '/{' . ControllerInterface::ROUTE_KEY_INDEX . '}/';

$routes->get('/', [BoardsController::class, BoardsController::METHOD_INDEX]);
$routes->get('/boards' . $slugged, [BoardsController::class, BoardsController::METHOD_READ]);

self::controller($routes, '/posts', PostsController::class);

}, [
GroupInterface::PARAM_CONTAINER_CONFIGURATORS => [
WhoopsContainerConfigurator::CONFIGURE_EXCEPTION_HANDLER,
Expand Down
1 change: 0 additions & 1 deletion server/app/Web/Controllers/PaginationLinksTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ private static function getPagingLinks(UriInterface $originalUri, PaginatedDataI
];

if ($data->isCollection() === true && (0 < $data->getOffset() || $data->hasMoreItems() === true)) {

parse_str($originalUri->getQuery(), $queryParams);

$pageSize = $data->getLimit();
Expand Down

0 comments on commit da377c7

Please sign in to comment.