Browse Source

Merge pull request #3034 from crynobone/patch/tabs

Fixes Indentation: Use tabs, always.
Taylor Otwell 9 years ago
parent
commit
986c964c98

+ 46 - 46
app/Http/Filters/AuthFilter.php

@@ -7,54 +7,54 @@ use Illuminate\Contracts\Routing\ResponseFactory;
 
 class AuthFilter {
 
-    /**
-     * The authenticator implementation.
-     *
-     * @var Authenticator
-     */
-    protected $auth;
+	/**
+	 * The authenticator implementation.
+	 *
+	 * @var Authenticator
+	 */
+	protected $auth;
 
-    /**
-     * The response factory implementation.
-     *
-     * @var ResponseFactory
-     */
-    protected $response;
+	/**
+	 * The response factory implementation.
+	 *
+	 * @var ResponseFactory
+	 */
+	protected $response;
 
-    /**
-     * Create a new filter instance.
-     *
-     * @param  Authenticator  $auth
-     * @param  ResponseFactory  $response
-     * @return void
-     */
-    public function __construct(Authenticator $auth,
-                                ResponseFactory $response)
-    {
-        $this->auth = $auth;
-        $this->response = $response;
-    }
+	/**
+	 * Create a new filter instance.
+	 *
+	 * @param  Authenticator  $auth
+	 * @param  ResponseFactory  $response
+	 * @return void
+	 */
+	public function __construct(Authenticator $auth,
+								ResponseFactory $response)
+	{
+		$this->auth = $auth;
+		$this->response = $response;
+	}
 
-    /**
-     * Run the request filter.
-     *
-     * @param  \Illuminate\Routing\Route  $route
-     * @param  \Illuminate\Http\Request  $request
-     * @return mixed
-     */
-    public function filter(Route $route, Request $request)
-    {
-        if ($this->auth->guest())
-        {
-            if ($request->ajax())
-            {
-                return $this->response->make('Unauthorized', 401);
-            }
-            else
-            {
-                return $this->response->redirectGuest('auth/login');
-            }
-        }
-    }
+	/**
+	 * Run the request filter.
+	 *
+	 * @param  \Illuminate\Routing\Route  $route
+	 * @param  \Illuminate\Http\Request  $request
+	 * @return mixed
+	 */
+	public function filter(Route $route, Request $request)
+	{
+		if ($this->auth->guest())
+		{
+			if ($request->ajax())
+			{
+				return $this->response->make('Unauthorized', 401);
+			}
+			else
+			{
+				return $this->response->redirectGuest('auth/login');
+			}
+		}
+	}
 
 }

+ 7 - 7
app/Http/Filters/GuestFilter.php

@@ -11,12 +11,12 @@ class GuestFilter {
 	 */
 	protected $auth;
 
-    /**
-     * The response factory implementation.
-     *
-     * @var ResponseFactory
-     */
-    protected $response;
+	/**
+	 * The response factory implementation.
+	 *
+	 * @var ResponseFactory
+	 */
+	protected $response;
 
 	/**
 	 * Create a new filter instance.
@@ -25,7 +25,7 @@ class GuestFilter {
 	 * @return void
 	 */
 	public function __construct(Authenticator $auth,
-                                ResponseFacotry $response)
+								ResponseFacotry $response)
 	{
 		$this->auth = $auth;
 		$this->response = $response;

+ 6 - 6
app/Http/Filters/MaintenanceFilter.php

@@ -12,12 +12,12 @@ class MaintenanceFilter {
 	 */
 	protected $app;
 
-    /**
-     * The response factory implementation.
-     *
-     * @var ResponseFactory
-     */
-    protected $response;
+	/**
+	 * The response factory implementation.
+	 *
+	 * @var ResponseFactory
+	 */
+	protected $response;
 
 	/**
 	 * Create a new filter instance.