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 #64

Closed
antograssiot opened this issue Aug 4, 2016 · 3 comments
Closed

broken code formating in API Examples #64

antograssiot opened this issue Aug 4, 2016 · 3 comments

Comments

@antograssiot
Copy link
Contributor

From @Graziel on August 3, 2016 22:6

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);

Copied from original issue: cakephp/docs#4227

@markstory
Copy link
Member

Looks like another issue in ApiGen 😢

@ADmad
Copy link
Member

ADmad commented Aug 4, 2016

We can do the same fix that was done earlier to replace markdown code fences with <code></code> when the docblocks are parsed 03e11f7#diff-e720f4338c11d4e6e325beaeb53a892bR214

@antograssiot
Copy link
Contributor Author

fixed now

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

3 participants