Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 2, 2018
1 parent c04ffb0 commit 2757e72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/DownCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class DownCommand extends Command
*/
protected $signature = 'down {--message= : The message for the maintenance mode. }
{--retry= : The number of seconds after which the request may be retried.}
{--allow=* : Ip or network allowed to use App in the maintenance mode.}';
{--allow=* : IP or networks allowed to access the application while in maintenance mode.}';

/**
* The console command description.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Illuminate\Foundation\Http\Middleware;

use Closure;
use Symfony\Component\HttpFoundation\IpUtils;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Foundation\Http\Exceptions\MaintenanceModeException;
use Symfony\Component\HttpFoundation\IpUtils;

class CheckForMaintenanceMode
{
Expand Down Expand Up @@ -41,7 +41,7 @@ public function handle($request, Closure $next)
if ($this->app->isDownForMaintenance()) {
$data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);

if (isset($data['allowed']) && IpUtils::checkIp($request->ip(), (array)$data['allowed'])) {
if (isset($data['allowed']) && IpUtils::checkIp($request->ip(), (array) $data['allowed'])) {
return $next($request);
}

Expand Down

0 comments on commit 2757e72

Please sign in to comment.