Completed
Push — master ( 0208a8...03841e )
by Sherif
02:49
created
src/Modules/Notifications/Http/Controllers/V1/NotificationsController.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -8,30 +8,30 @@
 block discarded – undo
8 8
 class NotificationsController extends BaseApiController
9 9
 {
10 10
 	/**
11
-     * The name of the model that is used by the base api controller 
12
-     * to preform actions like (add, edit ... etc).
13
-     * @var string
14
-     */
15
-    protected $model            = 'notifications';
11
+	 * The name of the model that is used by the base api controller 
12
+	 * to preform actions like (add, edit ... etc).
13
+	 * @var string
14
+	 */
15
+	protected $model            = 'notifications';
16 16
 
17
-    /**
18
-     * Set the notification notified to true.
19
-     * 
20
-     * @param  integer  $id
21
-     * @return \Illuminate\Http\Response
22
-     */
23
-    public function getNotified($id)
24
-    {
25
-        return \Response::json(\Core::notifications()->notified($id), 200);
26
-    }
17
+	/**
18
+	 * Set the notification notified to true.
19
+	 * 
20
+	 * @param  integer  $id
21
+	 * @return \Illuminate\Http\Response
22
+	 */
23
+	public function getNotified($id)
24
+	{
25
+		return \Response::json(\Core::notifications()->notified($id), 200);
26
+	}
27 27
 
28
-    /**
29
-     * Set the notification notified to all.
30
-     * 
31
-     * @return \Illuminate\Http\Response
32
-     */
33
-    public function getNotifyall()
34
-    {
35
-        return \Response::json(\Core::notifications()->notifyAll(), 200);
36
-    }
28
+	/**
29
+	 * Set the notification notified to all.
30
+	 * 
31
+	 * @return \Illuminate\Http\Response
32
+	 */
33
+	public function getNotifyall()
34
+	{
35
+		return \Response::json(\Core::notifications()->notifyAll(), 200);
36
+	}
37 37
 }
Please login to merge, or discard this patch.
src/Kernel.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -7,44 +7,44 @@
 block discarded – undo
7 7
 class Kernel extends HttpKernel
8 8
 {
9 9
 
10
-    /**
11
-     * The application's global HTTP middleware stack.
12
-     *
13
-     * These middleware are run during every request to your application.
14
-     *
15
-     * @var array
16
-     */
17
-    protected $middleware = [
18
-        \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
19
-    ];
10
+	/**
11
+	 * The application's global HTTP middleware stack.
12
+	 *
13
+	 * These middleware are run during every request to your application.
14
+	 *
15
+	 * @var array
16
+	 */
17
+	protected $middleware = [
18
+		\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
19
+	];
20 20
 
21
-    /**
22
-     * The application's global HTTP middleware stack.
23
-     *
24
-     * @var array
25
-     */
26
-    protected $middlewareGroups = [
27
-        'web' => [
28
-            \App\Http\Middleware\EncryptCookies::class,
29
-            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
30
-            \Illuminate\Session\Middleware\StartSession::class,
31
-            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
32
-            //\App\Http\Middleware\VerifyCsrfToken::class,
33
-        ],
34
-        'api' => [
35
-            'throttle:60,1',
36
-        ],
37
-    ];
21
+	/**
22
+	 * The application's global HTTP middleware stack.
23
+	 *
24
+	 * @var array
25
+	 */
26
+	protected $middlewareGroups = [
27
+		'web' => [
28
+			\App\Http\Middleware\EncryptCookies::class,
29
+			\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
30
+			\Illuminate\Session\Middleware\StartSession::class,
31
+			\Illuminate\View\Middleware\ShareErrorsFromSession::class,
32
+			//\App\Http\Middleware\VerifyCsrfToken::class,
33
+		],
34
+		'api' => [
35
+			'throttle:60,1',
36
+		],
37
+	];
38 38
 
39
-    /**
40
-     * The application's route middleware.
41
-     *
42
-     * @var array
43
-     */
44
-    protected $routeMiddleware = [
45
-        'auth' => \App\Http\Middleware\Authenticate::class,
46
-        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
47
-        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
48
-        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
49
-    ];
39
+	/**
40
+	 * The application's route middleware.
41
+	 *
42
+	 * @var array
43
+	 */
44
+	protected $routeMiddleware = [
45
+		'auth' => \App\Http\Middleware\Authenticate::class,
46
+		'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
47
+		'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
48
+		'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
49
+	];
50 50
 }
Please login to merge, or discard this patch.