-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Remove global variables #19503
Remove global variables #19503
Conversation
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replace it with ResponseRenderer::$reload static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Export::$asFile static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with the Import\Ajax::SESSION_KEY constant. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Import::$importText static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Export::$saveOnServer static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Export::$outputCharsetConversion static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Export::$bufferNeeded static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Export::$outputKanjiConversion static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Current::$whereClause static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Export::$singleTable static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with AuthenticationCookie::$connectionError static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #19503 +/- ##
=========================================
Coverage 60.12% 60.13%
+ Complexity 15881 15873 -8
=========================================
Files 676 675 -1
Lines 61188 61159 -29
=========================================
- Hits 36791 36778 -13
+ Misses 24397 24381 -16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Replaces it with Current::$displayQuery static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with DatabaseInterface::$errorNumber static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Current::$charset static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with AuthenticationCookie::$authServer static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with a property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Current::$completeQuery static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Export::$compression static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Export::$fileHandle static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with AuthenticationCookie::$fromCookie static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Export::$kanjiEncoding static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Export::$maxSize static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with Export::$memoryLimit static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with a static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with a static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with ImportShp::$eof static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with a static property. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Replaces it with a local variable. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
1 similar comment
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
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.
I agree with the core concept, but I am not sure if I want to review it in detail. My web browser is lagging. The test is failing though.
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.
Do we have no more globals after this PR ?
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
Sorry about this huge pull request. I hyper-focused on this and it end up bigger than I expected.
There are only a few globals now. That should be removed in another PR. |
There's no need for it anymore. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
d10ac72
to
ed9dc6c
Compare
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked |
PS: I have a work in progress to fix the bot, will try to finish it. So it stops commenting again and again |
Removes almost all global variables and replaces them with static properties.