Skip to content

Fixes deletion Actions' big size #19

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

Closed
wants to merge 33 commits into from

Conversation

tzikis
Copy link
Member

@tzikis tzikis commented Jan 9, 2015

No description provided.

@tzikis tzikis force-pushed the sensiolabs-insight-deletionaction-fixes branch from 1b0c40f to 56e638f Compare January 9, 2015 03:07
These Controller actions are much bigger than they should be, and so the main logic should go to a Handler. Initial implementation for the 1st one (untelsted)
@tzikis tzikis force-pushed the sensiolabs-insight-deletionaction-fixes branch from 56e638f to d42172c Compare January 9, 2015 03:08
@coveralls
Copy link

Coverage Status

Coverage increased (+1.03%) when pulling d42172c on sensiolabs-insight-deletionaction-fixes into b179e5a on master.

Moved code to DeletionHandler Service
@coveralls
Copy link

Coverage Status

Coverage increased (+0.62%) when pulling af91913 on sensiolabs-insight-deletionaction-fixes into b179e5a on master.

tzikis added 2 commits January 9, 2015 05:35
If the object files dir wasn't opened, opendir echoes a Warning (probably depends on PHP settings), which would break our JSON. Fixed that
@coveralls
Copy link

Coverage Status

Coverage increased (+0.62%) when pulling 1334b87 on sensiolabs-insight-deletionaction-fixes into b179e5a on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.62%) when pulling 9af22c7 on sensiolabs-insight-deletionaction-fixes into b179e5a on master.

@spiliot
Copy link
Contributor

spiliot commented Jan 26, 2015

@tzikis This and #17 are TLTR, since they don't change functionality and travis passes, I suggest we merge them as they are...

@tzikis
Copy link
Member Author

tzikis commented Jan 26, 2015

after merging #17 it should only show you their diff, which is much quite readable.

also, #17 is long, but each commit should be very straightforward if viewed alone

$new_code .= "#line 1\n";
// Build the new code for the cpp file that will eventually be compiled
$new_code .= $this->build_code($code, $function_prototypes, $insertion_position);
$new_code .= "#line 1 \"$filename\"\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

if, else and foreach without statement included in {} is a really bad idea. How did that pass phpmd?

Copy link
Contributor

Choose a reason for hiding this comment

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

PHPMD is not configured in this branch. Going to fix this anyway.

- Added brackets to flow control statements
- Replaced upper-case null with lower-case null
- Removed variables passed by reference, made all methods return from a
  single point
- camelCased variables, except for $auth_key, which is already changed
  on the master branch.
- Made braces follow PSR-2
- Removed unnecessary else statements
- Changed all double quotes to single quotes in strings
@fpapadopou
Copy link
Contributor

Fixed all issues. Closing this PR, will create a new one towards dev branch. PR's based on the master branch are not in accordance to our current workflow

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

Successfully merging this pull request may close these issues.

4 participants