8000 [9.x] Move maintenance mode logic by wimulkeman · Pull Request #40070 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[9.x] Move maintenance mode logic #40070

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

Merged
merged 27 commits into from
Dec 17, 2021
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e230133
chore (maintenance): move maintenance mode logic
Dec 15, 2021
09031d4
refactor (maintenance): add isUp method
Dec 16, 2021
29aaa45
doc (maintenance): document code
Dec 16, 2021
113f193
fix (maintenance): correctly check if in maintenance
Dec 16, 2021
c99e067
refactor (maintenance): use make method
Dec 16, 2021
27d5c68
doc (maintenance): update docblock
Dec 16, 2021
48aa9ff
doc (maintenance): update docblock
Dec 16, 2021
f66ba1c
style (doc): update documentation style
Dec 16, 2021
1ee6193
style (doc): update documentation style
Dec 16, 2021
6ec23f6
refactor (maintenance): change namespace
Dec 16, 2021
10ff03a
style (doc): update documentation style
Dec 16, 2021
10d2020
style (doc): update documentation style
Dec 16, 2021
1835d14
Update src/Illuminate/Foundation/Http/Middleware/PreventRequestsDurin…
wimulkeman Dec 16, 2021
b15b8d1
Update src/Illuminate/Foundation/Http/Middleware/PreventRequestsDurin…
wimulkeman Dec 16, 2021
7f3d335
refactor (maintenance): move to application
Dec 16, 2021
59e4e7e
doc (maintenance): add DockBlock
Dec 16, 2021
1e9633f
refactor (maintenance): use application method
Dec 16, 2021
614c6a0
Update src/Illuminate/Foundation/MaintenanceMode.php
wimulkeman Dec 16, 2021
45c9236
Update src/Illuminate/Foundation/MaintenanceMode.php
wimulkeman Dec 16, 2021
2121afb
refactor (maintenance): remove comparison
Dec 16, 2021
2ec1619
chore (code): remove unused import
Dec 16, 2021
040d691
refactor (maintenance): add interface
Dec 16, 2021
b17e090
style (doc): update documentation style
Dec 16, 2021
8dd9f7a
refactor (maintenance): bind instance to contract
Dec 17, 2021
838f09c
style (doc): update documentation style
Dec 17, 2021
c617f62
Update src/Illuminate/Foundation/Providers/FoundationServiceProvider.php
wimulkeman Dec 17, 2021
54ce40c
formatting and renaming
taylorotwell Dec 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next 8000 Next commit
refactor (maintenance): remove comparison
Remove the comparison with the false value. The method always returns a bool which only allows a true or false return value. This make the comparison redundant.

Relates to #36474
  • Loading branch information
Wim Ulkeman committed Dec 16, 2021
commit 2121afbf09a10b0d6b349c277a1f63a0d436a2ea
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/MaintenanceMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function down(array $payload): void
*/
public function up(): void
{
if ($this->isDown() !== false) {
if ($this->isDown()) {
unlink($this->getDownFilePath());
}
}
Expand Down
0