Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken code formating in API Examples #4227

Closed
Graziel opened this issue Aug 3, 2016 · 1 comment
Closed

broken code formating in API Examples #4227

Graziel opened this issue Aug 3, 2016 · 1 comment

Comments

@Graziel
Copy link
Contributor

Graziel commented Aug 3, 2016

the code formating in Examples looks wierd (no intendation & new lines):
http://api.cakephp.org/3.2/class-Cake.ORM.Query.html#_leftJoinWith
vs
http://api.cakephp.org/3.2/source-class-Cake.ORM.Query.html#459-531

// Get the count of articles per user
$usersQuery ->select(['total_articles' => $query->func()->count('Articles.id')]) ->leftJoinWith('Articles') ->group(['Users.id']) ->autoFields(true);

vs

// Get the count of articles per user
$usersQuery
    ->select(['total_articles' => $query->func()->count('Articles.id')])
    ->leftJoinWith('Articles')
    ->group(['Users.id'])
    ->autoFields(true);
@antograssiot
Copy link
Contributor

This issue was moved to cakephp/cakephp-api-docs#64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants