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

implement field limiting and make class better extendable #5

Merged
merged 2 commits into from
Jun 12, 2018

Conversation

DarkSide666
Copy link
Member

No description provided.

@DarkSide666 DarkSide666 requested a review from romaninsh June 12, 2018 14:28
@codecov
Copy link

codecov bot commented Jun 12, 2018

Codecov Report

Merging #5 into develop will decrease coverage by 2.5%.
The diff coverage is 19.29%.

Impacted file tree graph

@@            Coverage Diff            @@
##             develop    #5     +/-   ##
=========================================
- Coverage       42.5%   40%   -2.5%     
- Complexity        52    56      +4     
=========================================
  Files              1     1             
  Lines            120   140     +20     
=========================================
+ Hits              51    56      +5     
- Misses            69    84     +15
Impacted Files Coverage Δ Complexity Δ
src/Api.php 40% <19.29%> (-2.5%) 56 <23> (+4)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdc2900...53b8ed5. Read the comment docs.


// DELETE :id - delete one record
$this->delete($pattern.'/:id', function () use ($model) {
$f = function () use ($model) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused $f ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh its used below, n/p.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it's to avoid code duplication for post/patch methods and for consistency i set $f for other methods too.

@romaninsh romaninsh merged commit f7128f2 into develop Jun 12, 2018
@romaninsh romaninsh deleted the feature/better-extending branch June 12, 2018 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants