Completed
Push — master ( cf2713...aee5ae )
by Sherif
02:07
created
src/Modules/Permissions/Repositories/PermissionRepository.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@
 block discarded – undo
5 5
 
6 6
 class PermissionRepository extends BaseRepository
7 7
 {
8
-    /**
9
-     * Init new object.
10
-     *
11
-     * @param   Permission $model
12
-     * @return  void
13
-     */
14
-    public function __construct(Permission $model)
15
-    {
16
-        parent::__construct($model);
17
-    }
8
+	/**
9
+	 * Init new object.
10
+	 *
11
+	 * @param   Permission $model
12
+	 * @return  void
13
+	 */
14
+	public function __construct(Permission $model)
15
+	{
16
+		parent::__construct($model);
17
+	}
18 18
 }
Please login to merge, or discard this patch.
src/Modules/Permissions/ModelObservers/PermissionObserver.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -6,53 +6,53 @@
 block discarded – undo
6 6
 class PermissionObserver
7 7
 {
8 8
 
9
-    public function saving($model)
10
-    {
11
-        //
12
-    }
13
-
14
-    public function saved($model)
15
-    {
16
-        //
17
-    }
18
-
19
-    public function creating($model)
20
-    {
21
-        //
22
-    }
23
-
24
-    public function created($model)
25
-    {
26
-        //
27
-    }
28
-
29
-    public function updating($model)
30
-    {
31
-        //
32
-    }
33
-
34
-    public function updated($model)
35
-    {
36
-        //
37
-    }
38
-
39
-    public function deleting($model)
40
-    {
41
-        //
42
-    }
43
-
44
-    public function deleted($model)
45
-    {
46
-        //
47
-    }
48
-
49
-    public function restoring($model)
50
-    {
51
-        //
52
-    }
53
-
54
-    public function restored($model)
55
-    {
56
-        //
57
-    }
9
+	public function saving($model)
10
+	{
11
+		//
12
+	}
13
+
14
+	public function saved($model)
15
+	{
16
+		//
17
+	}
18
+
19
+	public function creating($model)
20
+	{
21
+		//
22
+	}
23
+
24
+	public function created($model)
25
+	{
26
+		//
27
+	}
28
+
29
+	public function updating($model)
30
+	{
31
+		//
32
+	}
33
+
34
+	public function updated($model)
35
+	{
36
+		//
37
+	}
38
+
39
+	public function deleting($model)
40
+	{
41
+		//
42
+	}
43
+
44
+	public function deleted($model)
45
+	{
46
+		//
47
+	}
48
+
49
+	public function restoring($model)
50
+	{
51
+		//
52
+	}
53
+
54
+	public function restored($model)
55
+	{
56
+		//
57
+	}
58 58
 }
Please login to merge, or discard this patch.
files/HttpKernel.php 1 patch
Indentation   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -6,81 +6,81 @@
 block discarded – undo
6 6
 
7 7
 class Kernel extends HttpKernel
8 8
 {
9
-    /**
10
-     * The application's global HTTP middleware stack.
11
-     *
12
-     * These middleware are run during every request to your application.
13
-     *
14
-     * @var array
15
-     */
16
-    protected $middleware = [
17
-        \App\Http\Middleware\TrustProxies::class,
18
-        \App\Http\Middleware\CheckForMaintenanceMode::class,
19
-        \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
20
-        \App\Http\Middleware\TrimStrings::class,
21
-        \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
22
-    ];
9
+	/**
10
+	 * The application's global HTTP middleware stack.
11
+	 *
12
+	 * These middleware are run during every request to your application.
13
+	 *
14
+	 * @var array
15
+	 */
16
+	protected $middleware = [
17
+		\App\Http\Middleware\TrustProxies::class,
18
+		\App\Http\Middleware\CheckForMaintenanceMode::class,
19
+		\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
20
+		\App\Http\Middleware\TrimStrings::class,
21
+		\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
22
+	];
23 23
 
24
-    /**
25
-     * The application's route middleware groups.
26
-     *
27
-     * @var array
28
-     */
29
-    protected $middlewareGroups = [
30
-        'web' => [
31
-            \App\Http\Middleware\EncryptCookies::class,
32
-            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
33
-            \Illuminate\Session\Middleware\StartSession::class,
34
-            // \Illuminate\Session\Middleware\AuthenticateSession::class,
35
-            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
36
-            \App\Http\Middleware\VerifyCsrfToken::class,
37
-            \Illuminate\Routing\Middleware\SubstituteBindings::class,
38
-        ],
24
+	/**
25
+	 * The application's route middleware groups.
26
+	 *
27
+	 * @var array
28
+	 */
29
+	protected $middlewareGroups = [
30
+		'web' => [
31
+			\App\Http\Middleware\EncryptCookies::class,
32
+			\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
33
+			\Illuminate\Session\Middleware\StartSession::class,
34
+			// \Illuminate\Session\Middleware\AuthenticateSession::class,
35
+			\Illuminate\View\Middleware\ShareErrorsFromSession::class,
36
+			\App\Http\Middleware\VerifyCsrfToken::class,
37
+			\Illuminate\Routing\Middleware\SubstituteBindings::class,
38
+		],
39 39
 
40
-        'api' => [
41
-            'throttle:60,1',
42
-            \Illuminate\Routing\Middleware\SubstituteBindings::class,
43
-            \App\Modules\Core\Http\Middleware\SetSessions::class,
44
-            \App\Modules\Core\Http\Middleware\CheckPermissions::class,
45
-            \App\Modules\Core\Http\Middleware\UpdateLocaleAndTimezone::class,
46
-            \App\Modules\Core\Http\Middleware\SetRelations::class,
47
-        ],
48
-    ];
40
+		'api' => [
41
+			'throttle:60,1',
42
+			\Illuminate\Routing\Middleware\SubstituteBindings::class,
43
+			\App\Modules\Core\Http\Middleware\SetSessions::class,
44
+			\App\Modules\Core\Http\Middleware\CheckPermissions::class,
45
+			\App\Modules\Core\Http\Middleware\UpdateLocaleAndTimezone::class,
46
+			\App\Modules\Core\Http\Middleware\SetRelations::class,
47
+		],
48
+	];
49 49
 
50
-    /**
51
-     * The application's route middleware.
52
-     *
53
-     * These middleware may be assigned to groups or used individually.
54
-     *
55
-     * @var array
56
-     */
57
-    protected $routeMiddleware = [
58
-        'auth' => \App\Http\Middleware\Authenticate::class,
59
-        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
60
-        'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
61
-        'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
62
-        'can' => \Illuminate\Auth\Middleware\Authorize::class,
63
-        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
64
-        'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
65
-        'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
66
-        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
67
-        'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
68
-    ];
50
+	/**
51
+	 * The application's route middleware.
52
+	 *
53
+	 * These middleware may be assigned to groups or used individually.
54
+	 *
55
+	 * @var array
56
+	 */
57
+	protected $routeMiddleware = [
58
+		'auth' => \App\Http\Middleware\Authenticate::class,
59
+		'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
60
+		'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
61
+		'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
62
+		'can' => \Illuminate\Auth\Middleware\Authorize::class,
63
+		'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
64
+		'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
65
+		'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
66
+		'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
67
+		'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
68
+	];
69 69
 
70
-    /**
71
-     * The priority-sorted list of middleware.
72
-     *
73
-     * This forces non-global middleware to always be in the given order.
74
-     *
75
-     * @var array
76
-     */
77
-    protected $middlewarePriority = [
78
-        \Illuminate\Session\Middleware\StartSession::class,
79
-        \Illuminate\View\Middleware\ShareErrorsFromSession::class,
80
-        \App\Http\Middleware\Authenticate::class,
81
-        \Illuminate\Routing\Middleware\ThrottleRequests::class,
82
-        \Illuminate\Session\Middleware\AuthenticateSession::class,
83
-        \Illuminate\Routing\Middleware\SubstituteBindings::class,
84
-        \Illuminate\Auth\Middleware\Authorize::class,
85
-    ];
70
+	/**
71
+	 * The priority-sorted list of middleware.
72
+	 *
73
+	 * This forces non-global middleware to always be in the given order.
74
+	 *
75
+	 * @var array
76
+	 */
77
+	protected $middlewarePriority = [
78
+		\Illuminate\Session\Middleware\StartSession::class,
79
+		\Illuminate\View\Middleware\ShareErrorsFromSession::class,
80
+		\App\Http\Middleware\Authenticate::class,
81
+		\Illuminate\Routing\Middleware\ThrottleRequests::class,
82
+		\Illuminate\Session\Middleware\AuthenticateSession::class,
83
+		\Illuminate\Routing\Middleware\SubstituteBindings::class,
84
+		\Illuminate\Auth\Middleware\Authorize::class,
85
+	];
86 86
 }
Please login to merge, or discard this patch.
Database/Migrations/2016_01_24_111942_push_notification_devices.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('push_notification_devices', function (Blueprint $table) {
15
+        Schema::create('push_notification_devices', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('device_token');
18 18
             $table->unsignedInteger('user_id');
Please login to merge, or discard this patch.
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -5,33 +5,33 @@
 block discarded – undo
5 5
 
6 6
 class PushNotificationDevices extends Migration
7 7
 {
8
-    /**
9
-     * Run the migrations.
10
-     *
11
-     * @return void
12
-     */
13
-    public function up()
14
-    {
15
-        Schema::create('push_notification_devices', function (Blueprint $table) {
16
-            $table->increments('id');
17
-            $table->string('device_token');
18
-            $table->unsignedInteger('user_id');
19
-            $table->text('access_token')->nullable();
20
-            $table->unique(array('device_token', 'user_id'));
21
-            $table->softDeletes();
22
-            $table->timestamps();
8
+	/**
9
+	 * Run the migrations.
10
+	 *
11
+	 * @return void
12
+	 */
13
+	public function up()
14
+	{
15
+		Schema::create('push_notification_devices', function (Blueprint $table) {
16
+			$table->increments('id');
17
+			$table->string('device_token');
18
+			$table->unsignedInteger('user_id');
19
+			$table->text('access_token')->nullable();
20
+			$table->unique(array('device_token', 'user_id'));
21
+			$table->softDeletes();
22
+			$table->timestamps();
23 23
             
24
-            $table->foreign('user_id')->references('id')->on('users');
25
-        });
26
-    }
24
+			$table->foreign('user_id')->references('id')->on('users');
25
+		});
26
+	}
27 27
 
28
-    /**
29
-     * Reverse the migrations.
30
-     *
31
-     * @return void
32
-     */
33
-    public function down()
34
-    {
35
-        Schema::dropIfExists('push_notification_devices');
36
-    }
28
+	/**
29
+	 * Reverse the migrations.
30
+	 *
31
+	 * @return void
32
+	 */
33
+	public function down()
34
+	{
35
+		Schema::dropIfExists('push_notification_devices');
36
+	}
37 37
 }
Please login to merge, or discard this patch.
Database/Migrations/2016_06_01_000004_create_oauth_auth_codes_table.php 2 patches
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -6,33 +6,33 @@
 block discarded – undo
6 6
 
7 7
 class CreateOauthAuthCodesTable extends Migration
8 8
 {
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-        Schema::create('oauth_auth_codes', function (Blueprint $table) {
17
-            $table->string('id', 100)->primary();
18
-            $table->unsignedInteger('user_id');
19
-            $table->unsignedInteger('client_id');
20
-            $table->text('scopes')->nullable();
21
-            $table->boolean('revoked');
22
-            $table->dateTime('expires_at')->nullable();
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('oauth_auth_codes', function (Blueprint $table) {
17
+			$table->string('id', 100)->primary();
18
+			$table->unsignedInteger('user_id');
19
+			$table->unsignedInteger('client_id');
20
+			$table->text('scopes')->nullable();
21
+			$table->boolean('revoked');
22
+			$table->dateTime('expires_at')->nullable();
23 23
 
24
-            $table->foreign('user_id')->references('id')->on('users');
25
-            $table->foreign('client_id')->references('id')->on('oauth_clients');
26
-        });
27
-    }
24
+			$table->foreign('user_id')->references('id')->on('users');
25
+			$table->foreign('client_id')->references('id')->on('oauth_clients');
26
+		});
27
+	}
28 28
 
29
-    /**
30
-     * Reverse the migrations.
31
-     *
32
-     * @return void
33
-     */
34
-    public function down()
35
-    {
36
-        Schema::drop('oauth_auth_codes');
37
-    }
29
+	/**
30
+	 * Reverse the migrations.
31
+	 *
32
+	 * @return void
33
+	 */
34
+	public function down()
35
+	{
36
+		Schema::drop('oauth_auth_codes');
37
+	}
38 38
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('oauth_auth_codes', function (Blueprint $table) {
16
+        Schema::create('oauth_auth_codes', function(Blueprint $table) {
17 17
             $table->string('id', 100)->primary();
18 18
             $table->unsignedInteger('user_id');
19 19
             $table->unsignedInteger('client_id');
Please login to merge, or discard this patch.
Database/Migrations/2016_06_01_000001_create_oauth_clients_table.php 2 patches
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -6,35 +6,35 @@
 block discarded – undo
6 6
 
7 7
 class CreateOauthClientsTable extends Migration
8 8
 {
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-        Schema::create('oauth_clients', function (Blueprint $table) {
17
-            $table->increments('id');
18
-            $table->unsignedInteger('user_id')->nullable();
19
-            $table->string('name');
20
-            $table->string('secret', 100);
21
-            $table->text('redirect');
22
-            $table->boolean('personal_access_client')->default(0);
23
-            $table->boolean('password_client')->default(0);
24
-            $table->boolean('revoked')->default(0);
25
-            $table->timestamps();
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('oauth_clients', function (Blueprint $table) {
17
+			$table->increments('id');
18
+			$table->unsignedInteger('user_id')->nullable();
19
+			$table->string('name');
20
+			$table->string('secret', 100);
21
+			$table->text('redirect');
22
+			$table->boolean('personal_access_client')->default(0);
23
+			$table->boolean('password_client')->default(0);
24
+			$table->boolean('revoked')->default(0);
25
+			$table->timestamps();
26 26
 
27
-            $table->foreign('user_id')->references('id')->on('users');
28
-        });
29
-    }
27
+			$table->foreign('user_id')->references('id')->on('users');
28
+		});
29
+	}
30 30
 
31
-    /**
32
-     * Reverse the migrations.
33
-     *
34
-     * @return void
35
-     */
36
-    public function down()
37
-    {
38
-        Schema::drop('oauth_clients');
39
-    }
31
+	/**
32
+	 * Reverse the migrations.
33
+	 *
34
+	 * @return void
35
+	 */
36
+	public function down()
37
+	{
38
+		Schema::drop('oauth_clients');
39
+	}
40 40
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('oauth_clients', function (Blueprint $table) {
16
+        Schema::create('oauth_clients', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('user_id')->nullable();
19 19
             $table->string('name');
Please login to merge, or discard this patch.
Database/Migrations/2016_06_01_000002_create_oauth_access_tokens_table.php 2 patches
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -6,35 +6,35 @@
 block discarded – undo
6 6
 
7 7
 class CreateOauthAccessTokensTable extends Migration
8 8
 {
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-        Schema::create('oauth_access_tokens', function (Blueprint $table) {
17
-            $table->string('id', 100)->primary();
18
-            $table->unsignedInteger('user_id')->nullable();
19
-            $table->unsignedInteger('client_id');
20
-            $table->string('name')->nullable();
21
-            $table->text('scopes')->nullable();
22
-            $table->boolean('revoked');
23
-            $table->timestamps();
24
-            $table->dateTime('expires_at')->nullable();
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('oauth_access_tokens', function (Blueprint $table) {
17
+			$table->string('id', 100)->primary();
18
+			$table->unsignedInteger('user_id')->nullable();
19
+			$table->unsignedInteger('client_id');
20
+			$table->string('name')->nullable();
21
+			$table->text('scopes')->nullable();
22
+			$table->boolean('revoked');
23
+			$table->timestamps();
24
+			$table->dateTime('expires_at')->nullable();
25 25
 
26
-            $table->foreign('user_id')->references('id')->on('users');
27
-            $table->foreign('client_id')->references('id')->on('oauth_clients');
28
-        });
29
-    }
26
+			$table->foreign('user_id')->references('id')->on('users');
27
+			$table->foreign('client_id')->references('id')->on('oauth_clients');
28
+		});
29
+	}
30 30
 
31
-    /**
32
-     * Reverse the migrations.
33
-     *
34
-     * @return void
35
-     */
36
-    public function down()
37
-    {
38
-        Schema::drop('oauth_access_tokens');
39
-    }
31
+	/**
32
+	 * Reverse the migrations.
33
+	 *
34
+	 * @return void
35
+	 */
36
+	public function down()
37
+	{
38
+		Schema::drop('oauth_access_tokens');
39
+	}
40 40
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('oauth_access_tokens', function (Blueprint $table) {
16
+        Schema::create('oauth_access_tokens', function(Blueprint $table) {
17 17
             $table->string('id', 100)->primary();
18 18
             $table->unsignedInteger('user_id')->nullable();
19 19
             $table->unsignedInteger('client_id');
Please login to merge, or discard this patch.
Migrations/2016_06_01_000005_create_oauth_personal_access_clients_table.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -6,29 +6,29 @@
 block discarded – undo
6 6
 
7 7
 class CreateOauthPersonalAccessClientsTable extends Migration
8 8
 {
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-        Schema::create('oauth_personal_access_clients', function (Blueprint $table) {
17
-            $table->increments('id');
18
-            $table->unsignedInteger('client_id');
19
-            $table->timestamps();
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('oauth_personal_access_clients', function (Blueprint $table) {
17
+			$table->increments('id');
18
+			$table->unsignedInteger('client_id');
19
+			$table->timestamps();
20 20
             
21
-            $table->foreign('client_id')->references('id')->on('oauth_clients');
22
-        });
23
-    }
21
+			$table->foreign('client_id')->references('id')->on('oauth_clients');
22
+		});
23
+	}
24 24
 
25
-    /**
26
-     * Reverse the migrations.
27
-     *
28
-     * @return void
29
-     */
30
-    public function down()
31
-    {
32
-        Schema::drop('oauth_personal_access_clients');
33
-    }
25
+	/**
26
+	 * Reverse the migrations.
27
+	 *
28
+	 * @return void
29
+	 */
30
+	public function down()
31
+	{
32
+		Schema::drop('oauth_personal_access_clients');
33
+	}
34 34
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('oauth_personal_access_clients', function (Blueprint $table) {
16
+        Schema::create('oauth_personal_access_clients', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('client_id');
19 19
             $table->timestamps();
Please login to merge, or discard this patch.
src/Modules/Core/Interfaces/BaseRepositoryInterface.php 1 patch
Indentation   +95 added lines, -95 removed lines patch added patch discarded remove patch
@@ -2,107 +2,107 @@
 block discarded – undo
2 2
 
3 3
 interface BaseRepositoryInterface
4 4
 {
5
-    /**
6
-     * Fetch all records with relations from the storage.
7
-     *
8
-     * @param  array  $relations
9
-     * @param  array  $sortBy
10
-     * @param  array  $desc
11
-     * @param  array  $columns
12
-     * @return collection
13
-     */
14
-    public function all($relations = [], $sortBy = 'created_at', $desc = 0, $columns = array('*'));
5
+	/**
6
+	 * Fetch all records with relations from the storage.
7
+	 *
8
+	 * @param  array  $relations
9
+	 * @param  array  $sortBy
10
+	 * @param  array  $desc
11
+	 * @param  array  $columns
12
+	 * @return collection
13
+	 */
14
+	public function all($relations = [], $sortBy = 'created_at', $desc = 0, $columns = array('*'));
15 15
     
16
-    /**
17
-     * Fetch all records with relations from storage in pages
18
-     * that matche the given query.
19
-     *
20
-     * @param  string  $query
21
-     * @param  integer $perPage
22
-     * @param  array   $relations
23
-     * @param  array   $sortBy
24
-     * @param  array   $desc
25
-     * @param  array   $columns
26
-     * @return collection
27
-     */
28
-    public function search($query, $perPage = 15, $relations = [], $sortBy = 'created_at', $desc = 0, $columns = array('*'));
16
+	/**
17
+	 * Fetch all records with relations from storage in pages
18
+	 * that matche the given query.
19
+	 *
20
+	 * @param  string  $query
21
+	 * @param  integer $perPage
22
+	 * @param  array   $relations
23
+	 * @param  array   $sortBy
24
+	 * @param  array   $desc
25
+	 * @param  array   $columns
26
+	 * @return collection
27
+	 */
28
+	public function search($query, $perPage = 15, $relations = [], $sortBy = 'created_at', $desc = 0, $columns = array('*'));
29 29
 
30
-    /**
31
-     * Fetch all records with relations from storage in pages.
32
-     *
33
-     * @param  integer $perPage
34
-     * @param  array   $relations
35
-     * @param  array   $sortBy
36
-     * @param  array   $desc
37
-     * @param  array   $columns
38
-     * @return collection
39
-     */
40
-    public function paginate($perPage = 15, $relations = [], $sortBy = 'created_at', $desc = 0, $columns = array('*'));
30
+	/**
31
+	 * Fetch all records with relations from storage in pages.
32
+	 *
33
+	 * @param  integer $perPage
34
+	 * @param  array   $relations
35
+	 * @param  array   $sortBy
36
+	 * @param  array   $desc
37
+	 * @param  array   $columns
38
+	 * @return collection
39
+	 */
40
+	public function paginate($perPage = 15, $relations = [], $sortBy = 'created_at', $desc = 0, $columns = array('*'));
41 41
     
42
-    /**
43
-     * Fetch all records with relations based on
44
-     * the given condition from storage in pages.
45
-     *
46
-     * @param  array   $conditions array of conditions
47
-     * @param  integer $perPage
48
-     * @param  array   $relations
49
-     * @param  array   $sortBy
50
-     * @param  array   $desc
51
-     * @param  array   $columns
52
-     * @return collection
53
-     */
54
-    public function paginateBy($conditions, $perPage = 15, $relations = [], $sortBy = 'created_at', $desc = 0, $columns = array('*'));
42
+	/**
43
+	 * Fetch all records with relations based on
44
+	 * the given condition from storage in pages.
45
+	 *
46
+	 * @param  array   $conditions array of conditions
47
+	 * @param  integer $perPage
48
+	 * @param  array   $relations
49
+	 * @param  array   $sortBy
50
+	 * @param  array   $desc
51
+	 * @param  array   $columns
52
+	 * @return collection
53
+	 */
54
+	public function paginateBy($conditions, $perPage = 15, $relations = [], $sortBy = 'created_at', $desc = 0, $columns = array('*'));
55 55
 
56
-     /**
57
-      * Save the given model/models to the storage.
58
-      *
59
-      * @param  array   $data
60
-      * @return mixed
61
-      */
62
-    public function save(array $data);
56
+	 /**
57
+	  * Save the given model/models to the storage.
58
+	  *
59
+	  * @param  array   $data
60
+	  * @return mixed
61
+	  */
62
+	public function save(array $data);
63 63
 
64
-    /**
65
-     * Delete record from the storage based on the given
66
-     * condition.
67
-     *
68
-     * @param  var     $value condition value
69
-     * @param  string  $attribute condition column name
70
-     * @return integer affected rows
71
-     */
72
-    public function delete($value, $attribute = 'id');
64
+	/**
65
+	 * Delete record from the storage based on the given
66
+	 * condition.
67
+	 *
68
+	 * @param  var     $value condition value
69
+	 * @param  string  $attribute condition column name
70
+	 * @return integer affected rows
71
+	 */
72
+	public function delete($value, $attribute = 'id');
73 73
     
74
-    /**
75
-     * Fetch records from the storage based on the given
76
-     * id.
77
-     *
78
-     * @param  integer $id
79
-     * @param  array   $relations
80
-     * @param  array   $columns
81
-     * @return object
82
-     */
83
-    public function find($id, $relations = [], $columns = array('*'));
74
+	/**
75
+	 * Fetch records from the storage based on the given
76
+	 * id.
77
+	 *
78
+	 * @param  integer $id
79
+	 * @param  array   $relations
80
+	 * @param  array   $columns
81
+	 * @return object
82
+	 */
83
+	public function find($id, $relations = [], $columns = array('*'));
84 84
     
85
-    /**
86
-     * Fetch records from the storage based on the given
87
-     * condition.
88
-     *
89
-     * @param  array   $conditions array of conditions
90
-     * @param  array   $relations
91
-     * @param  array   $sortBy
92
-     * @param  array   $desc
93
-     * @param  array   $columns
94
-     * @return collection
95
-     */
96
-    public function findBy($conditions, $relations = [], $sortBy = 'created_at', $desc = 0, $columns = array('*'));
85
+	/**
86
+	 * Fetch records from the storage based on the given
87
+	 * condition.
88
+	 *
89
+	 * @param  array   $conditions array of conditions
90
+	 * @param  array   $relations
91
+	 * @param  array   $sortBy
92
+	 * @param  array   $desc
93
+	 * @param  array   $columns
94
+	 * @return collection
95
+	 */
96
+	public function findBy($conditions, $relations = [], $sortBy = 'created_at', $desc = 0, $columns = array('*'));
97 97
 
98
-    /**
99
-     * Fetch the first record fro the storage based on the given
100
-     * condition.
101
-     *
102
-     * @param  array   $conditions array of conditions
103
-     * @param  array   $relations
104
-     * @param  array   $columns
105
-     * @return object
106
-     */
107
-    public function first($conditions, $relations = [], $columns = array('*'));
98
+	/**
99
+	 * Fetch the first record fro the storage based on the given
100
+	 * condition.
101
+	 *
102
+	 * @param  array   $conditions array of conditions
103
+	 * @param  array   $relations
104
+	 * @param  array   $columns
105
+	 * @return object
106
+	 */
107
+	public function first($conditions, $relations = [], $columns = array('*'));
108 108
 }
Please login to merge, or discard this patch.