Completed
Push — master ( 7f4033...c0246b )
by Sherif
02:56
created
src/Modules/Core/Http/Controllers/BaseApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $this->skipLoginCheck      = property_exists($this, 'skipLoginCheck') ? $this->skipLoginCheck : [];
48 48
         
49 49
         $this->relations           = array_key_exists($this->model, $this->config['relations']) ? $this->config['relations'][$this->model] : false;
50
-        $route                     = explode('@',\Route::currentRouteAction())[1];
50
+        $route                     = explode('@', \Route::currentRouteAction())[1];
51 51
         $this->checkPermission(explode('_', snake_case($route))[1]);
52 52
     }
53 53
 
Please login to merge, or discard this patch.
src/Modules/Core/Http/Controllers/SettingsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
      * to preform actions like (add, edit ... etc).
14 14
      * @var string
15 15
      */
16
-    protected $model               = 'settings';
16
+    protected $model = 'settings';
17 17
 
18 18
     /**
19 19
      * The validations rules used by the base api controller
20 20
      * to check before add.
21 21
      * @var array
22 22
      */
23
-    protected $validationRules  = [
23
+    protected $validationRules = [
24 24
     'name'  => 'required|string|max:100',
25 25
     'value' => 'required|string|max:100'
26 26
     ];
Please login to merge, or discard this patch.
src/Modules/Core/Database/Migrations/2016_01_24_123630_settings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
 	 */
13 13
 	public function up()
14 14
 	{
15
-		Schema::create('settings', function (Blueprint $table) {
15
+		Schema::create('settings', function(Blueprint $table) {
16 16
             $table->increments('id');
17
-            $table->string('name',100);
18
-            $table->string('key',100)->unique();
19
-            $table->string('value',100);
17
+            $table->string('name', 100);
18
+            $table->string('key', 100)->unique();
19
+            $table->string('value', 100);
20 20
             $table->softDeletes();
21 21
             $table->timestamps();
22 22
         });
Please login to merge, or discard this patch.
src/Modules/Notifications/Http/Controllers/NotificationsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      * to preform actions like (add, edit ... etc).
13 13
      * @var string
14 14
      */
15
-    protected $model            = 'notifications';
15
+    protected $model = 'notifications';
16 16
 
17 17
     /**
18 18
      * Set the notification notified to true.
Please login to merge, or discard this patch.
Notifications/Database/Migrations/2016_01_24_111941_notifications.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@
 block discarded – undo
12 12
 	 */
13 13
 	public function up()
14 14
 	{
15
-		Schema::create('notifications', function (Blueprint $table) {
15
+		Schema::create('notifications', function(Blueprint $table) {
16 16
 			$table->increments('id');
17
-			$table->string('name',100);
17
+			$table->string('name', 100);
18 18
             $table->text('description')->nullable();
19
-			$table->string('item_name',100);
20
-			$table->string('item_type',100);
19
+			$table->string('item_name', 100);
20
+			$table->string('item_type', 100);
21 21
 			$table->integer('item_id');
22 22
 			$table->boolean('notified');
23 23
 			$table->softDeletes();
Please login to merge, or discard this patch.
src/Modules/Notifications/Notification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use Illuminate\Database\Eloquent\Model;
4 4
 use Illuminate\Database\Eloquent\SoftDeletes;
5 5
 
6
-class Notification extends Model{
6
+class Notification extends Model {
7 7
 
8 8
     use SoftDeletes;
9 9
     protected $table    = 'notifications';
Please login to merge, or discard this patch.
Modules/Reporting/Database/Migrations/2016_01_19_112603_sampel_report.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 	 */
13 13
 	public function up()
14 14
 	{
15
-		DB::statement( "DROP VIEW IF EXISTS admin_count");
16
-		DB::statement( "CREATE VIEW admin_count AS  
15
+		DB::statement("DROP VIEW IF EXISTS admin_count");
16
+		DB::statement("CREATE VIEW admin_count AS  
17 17
 			select count(u.id)
18 18
 			from users u, groups g ,users_groups ug
19 19
 			where
Please login to merge, or discard this patch.
src/Modules/Reporting/Database/Migrations/2016_01_19_112350_reports.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
 	 */
13 13
 	public function up()
14 14
 	{
15
-		Schema::create('reports', function (Blueprint $table) {
15
+		Schema::create('reports', function(Blueprint $table) {
16 16
 			$table->increments('id');
17
-			$table->string('report_name',100);
18
-			$table->string('view_name',100);
17
+			$table->string('report_name', 100);
18
+			$table->string('view_name', 100);
19 19
 			$table->softDeletes();
20 20
 			$table->timestamps();
21 21
         });
Please login to merge, or discard this patch.
src/Modules/Reporting/Report.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use Illuminate\Database\Eloquent\Model;
4 4
 use Illuminate\Database\Eloquent\SoftDeletes;
5 5
 
6
-class Report extends Model{
6
+class Report extends Model {
7 7
 
8 8
     use SoftDeletes;
9 9
 	protected $table    = 'reports';
Please login to merge, or discard this patch.