-
Notifications
You must be signed in to change notification settings - Fork 35
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
Conversation
It is good practice not to use it with Symfony, and this project is small enought that it's unnecessary
Made a strict boolean check for the return value of the Header Preprocessing function
1b0c40f
to
56e638f
Compare
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)
56e638f
to
d42172c
Compare
Moved code to DeletionHandler Service
If the object files dir wasn't opened, opendir echoes a Warning (probably depends on PHP settings), which would break our JSON. Fixed that
$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"; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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 |
No description provided.