Passed
Push — master ( 347b45...ffee8a )
by Georgi
02:42
created
Database/Migrations/2014_10_12_100000_create_password_resets_table.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -6,27 +6,27 @@
 block discarded – undo
6 6
 
7 7
 class CreatePasswordResetsTable extends Migration
8 8
 {
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-        Schema::create('password_resets', function (Blueprint $table) {
17
-            $table->string('email')->index();
18
-            $table->string('token');
19
-            $table->timestamp('created_at')->nullable();
20
-        });
21
-    }
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('password_resets', function (Blueprint $table) {
17
+			$table->string('email')->index();
18
+			$table->string('token');
19
+			$table->timestamp('created_at')->nullable();
20
+		});
21
+	}
22 22
 
23
-    /**
24
-     * Reverse the migrations.
25
-     *
26
-     * @return void
27
-     */
28
-    public function down()
29
-    {
30
-        Schema::dropIfExists('password_resets');
31
-    }
23
+	/**
24
+	 * Reverse the migrations.
25
+	 *
26
+	 * @return void
27
+	 */
28
+	public function down()
29
+	{
30
+		Schema::dropIfExists('password_resets');
31
+	}
32 32
 }
Please login to merge, or discard this patch.
src/User/Login/Database/Migrations/2014_10_12_000000_create_users_table.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -6,31 +6,31 @@
 block discarded – undo
6 6
 
7 7
 class CreateUsersTable extends Migration
8 8
 {
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-        Schema::create('users', function (Blueprint $table) {
17
-            $table->bigIncrements('id');
18
-            $table->string('name');
19
-            $table->string('email')->unique();
20
-            $table->timestamp('email_verified_at')->nullable();
21
-            $table->string('password');
22
-            $table->rememberToken();
23
-            $table->timestamps();
24
-        });
25
-    }
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('users', function (Blueprint $table) {
17
+			$table->bigIncrements('id');
18
+			$table->string('name');
19
+			$table->string('email')->unique();
20
+			$table->timestamp('email_verified_at')->nullable();
21
+			$table->string('password');
22
+			$table->rememberToken();
23
+			$table->timestamps();
24
+		});
25
+	}
26 26
 
27
-    /**
28
-     * Reverse the migrations.
29
-     *
30
-     * @return void
31
-     */
32
-    public function down()
33
-    {
34
-        Schema::dropIfExists('users');
35
-    }
27
+	/**
28
+	 * Reverse the migrations.
29
+	 *
30
+	 * @return void
31
+	 */
32
+	public function down()
33
+	{
34
+		Schema::dropIfExists('users');
35
+	}
36 36
 }
Please login to merge, or discard this patch.
src/User/Access/Providers/UserAccessServiceProvider.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,14 +7,14 @@
 block discarded – undo
7 7
 
8 8
 class UserAccessServiceProvider extends ServiceProvider
9 9
 {
10
-    /**
11
-     * Booting the package.
12
-     */
13
-    public function boot()
14
-    {
15
-    	// allow Super Admin full access
16
-    	Gate::after(function ($user, $ability) {
17
-    		return $user->hasRole('Super Admin');
18
-    	});
19
-    }
10
+	/**
11
+	 * Booting the package.
12
+	 */
13
+	public function boot()
14
+	{
15
+		// allow Super Admin full access
16
+		Gate::after(function ($user, $ability) {
17
+			return $user->hasRole('Super Admin');
18
+		});
19
+	}
20 20
 }
Please login to merge, or discard this patch.
Database/Migrations/2019_09_18_173148_create_user_settings_table.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -6,31 +6,31 @@
 block discarded – undo
6 6
 
7 7
 class CreateUserSettingsTable extends Migration
8 8
 {
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-    	$this->down();
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		$this->down();
17 17
     	
18
-    	Schema::create('user_settings', function (Blueprint $table) {
19
-    		$table->increments('id');
20
-    		$table->unsignedInteger('user_id');
21
-            $table->string('group', 512);
22
-            $table->string('name', 128);
23
-            $table->text('value');
24
-        });
25
-    }
18
+		Schema::create('user_settings', function (Blueprint $table) {
19
+			$table->increments('id');
20
+			$table->unsignedInteger('user_id');
21
+			$table->string('group', 512);
22
+			$table->string('name', 128);
23
+			$table->text('value');
24
+		});
25
+	}
26 26
 
27
-    /**
28
-     * Reverse the migrations.
29
-     *
30
-     * @return void
31
-     */
32
-    public function down()
33
-    {
34
-    	Schema::dropIfExists('user_settings');
35
-    }
27
+	/**
28
+	 * Reverse the migrations.
29
+	 *
30
+	 * @return void
31
+	 */
32
+	public function down()
33
+	{
34
+		Schema::dropIfExists('user_settings');
35
+	}
36 36
 }
Please login to merge, or discard this patch.
Dashboard/Database/Migrations/2019_09_18_173148_create_dashboard_tables.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -6,42 +6,42 @@
 block discarded – undo
6 6
 
7 7
 class CreateDashboardTables extends Migration
8 8
 {
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-    	$this->down();
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		$this->down();
17 17
     	
18
-    	Schema::create('dashboards', function (Blueprint $table) {
19
-    		$table->increments('id');
20
-    		$table->unsignedInteger('user_id');
21
-            $table->string('name', 64);
22
-            $table->smallInteger('position');
23
-        });
18
+		Schema::create('dashboards', function (Blueprint $table) {
19
+			$table->increments('id');
20
+			$table->unsignedInteger('user_id');
21
+			$table->string('name', 64);
22
+			$table->smallInteger('position');
23
+		});
24 24
 
25
-    	Schema::create('dashboard_applets', function (Blueprint $table) {
26
-    		$table->increments('id');
27
-    		$table->unsignedInteger('dashboard_id');
28
-            $table->string('class', 512);            
29
-            $table->smallInteger('column');
30
-            $table->smallInteger('row');
31
-            $table->text('options');
25
+		Schema::create('dashboard_applets', function (Blueprint $table) {
26
+			$table->increments('id');
27
+			$table->unsignedInteger('dashboard_id');
28
+			$table->string('class', 512);            
29
+			$table->smallInteger('column');
30
+			$table->smallInteger('row');
31
+			$table->text('options');
32 32
             
33
-            $table->foreign('dashboard_id')->references('id')->on('dashboards');
34
-        });
35
-    }
33
+			$table->foreign('dashboard_id')->references('id')->on('dashboards');
34
+		});
35
+	}
36 36
 
37
-    /**
38
-     * Reverse the migrations.
39
-     *
40
-     * @return void
41
-     */
42
-    public function down()
43
-    {
44
-    	Schema::dropIfExists('dashboard_applets');
45
-    	Schema::dropIfExists('dashboards');    	
46
-    }
37
+	/**
38
+	 * Reverse the migrations.
39
+	 *
40
+	 * @return void
41
+	 */
42
+	public function down()
43
+	{
44
+		Schema::dropIfExists('dashboard_applets');
45
+		Schema::dropIfExists('dashboards');    	
46
+	}
47 47
 }
Please login to merge, or discard this patch.
src/User/Database/Models/User.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -8,33 +8,33 @@
 block discarded – undo
8 8
 
9 9
 class User extends Authenticatable
10 10
 {
11
-    use Notifiable;
12
-    use HasRoles;
11
+	use Notifiable;
12
+	use HasRoles;
13 13
 
14
-    /**
15
-     * The attributes that are mass assignable.
16
-     *
17
-     * @var array
18
-     */
19
-    protected $fillable = [
20
-        'name', 'email', 'password',
21
-    ];
14
+	/**
15
+	 * The attributes that are mass assignable.
16
+	 *
17
+	 * @var array
18
+	 */
19
+	protected $fillable = [
20
+		'name', 'email', 'password',
21
+	];
22 22
 
23
-    /**
24
-     * The attributes that should be hidden for arrays.
25
-     *
26
-     * @var array
27
-     */
28
-    protected $hidden = [
29
-        'password', 'remember_token',
30
-    ];
23
+	/**
24
+	 * The attributes that should be hidden for arrays.
25
+	 *
26
+	 * @var array
27
+	 */
28
+	protected $hidden = [
29
+		'password', 'remember_token',
30
+	];
31 31
 
32
-    /**
33
-     * The attributes that should be cast to native types.
34
-     *
35
-     * @var array
36
-     */
37
-    protected $casts = [
38
-        'email_verified_at' => 'datetime',
39
-    ];
32
+	/**
33
+	 * The attributes that should be cast to native types.
34
+	 *
35
+	 * @var array
36
+	 */
37
+	protected $casts = [
38
+		'email_verified_at' => 'datetime',
39
+	];
40 40
 }
Please login to merge, or discard this patch.
src/Layout/Seeds/LaunchPad.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	
15 15
 	public function __construct($parent)
16 16
 	{
17
-    	$this->parent = $parent;
17
+		$this->parent = $parent;
18 18
     	
19 19
 		parent::__construct('$(this).atkCreateModal([arg])', [
20 20
 				'arg' => [
@@ -26,29 +26,29 @@  discard block
 block discarded – undo
26 26
 	}
27 27
     
28 28
 	protected function getURL()
29
-    {
30
-    	return $this->parent->add('VirtualPage')->set(Closure::fromCallable([$this, 'getContents']))->getJSURL('cut');
31
-    }
29
+	{
30
+		return $this->parent->add('VirtualPage')->set(Closure::fromCallable([$this, 'getContents']))->getJSURL('cut');
31
+	}
32 32
     
33
-    protected function getContents(VirtualPage $vp)
34
-    {
35
-    	$vp->add([
36
-    			new LaunchButton([
37
-    					'label' => 'Test Button 1',
38
-    					'icon' => 'user'
39
-    			])
40
-    	])->link(URL::to('/'));
41
-    	$vp->add([
42
-    			new LaunchButton([
43
-    					'label' => 'Test Button 2',
44
-    					'icon' => 'car'
45
-    			])
46
-    	]);
47
-    	$vp->add([
48
-    			new LaunchButton([
49
-    					'label' => 'Test Button 3',
50
-    					'icon' => 'bus'
51
-    			])
52
-    	]);
53
-    }
33
+	protected function getContents(VirtualPage $vp)
34
+	{
35
+		$vp->add([
36
+				new LaunchButton([
37
+						'label' => 'Test Button 1',
38
+						'icon' => 'user'
39
+				])
40
+		])->link(URL::to('/'));
41
+		$vp->add([
42
+				new LaunchButton([
43
+						'label' => 'Test Button 2',
44
+						'icon' => 'car'
45
+				])
46
+		]);
47
+		$vp->add([
48
+				new LaunchButton([
49
+						'label' => 'Test Button 3',
50
+						'icon' => 'bus'
51
+				])
52
+		]);
53
+	}
54 54
 }
Please login to merge, or discard this patch.
src/Layout/LayoutView.php 1 patch
Indentation   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -30,36 +30,36 @@  discard block
 block discarded – undo
30 30
  */
31 31
 class LayoutView extends ModuleView
32 32
 {
33
-    public $menuLeft;    // vertical menu
34
-    public $menu;        // horizontal menu
35
-    public $menuRight;   // vertical pull-down
36
-    public $actionBar;   
37
-    public $locationBar;
33
+	public $menuLeft;    // vertical menu
34
+	public $menu;        // horizontal menu
35
+	public $menuRight;   // vertical pull-down
36
+	public $actionBar;   
37
+	public $locationBar;
38 38
     
39
-    public $burger = true;      // burger menu item
39
+	public $burger = true;      // burger menu item
40 40
 
41
-    /*
41
+	/*
42 42
      * Whether or not left Menu is visible on Page load.
43 43
      */
44
-    public $isMenuLeftVisible = true;
44
+	public $isMenuLeftVisible = true;
45 45
 
46
-    public $defaultTemplate = 'layout/admin.html';
46
+	public $defaultTemplate = 'layout/admin.html';
47 47
     
48
-    protected $location;
48
+	protected $location;
49 49
 
50
-    public function init()
51
-    {
52
-        parent::init();
50
+	public function init()
51
+	{
52
+		parent::init();
53 53
 
54
-        $this->setMenu();
55
-        $this->setActionBar();
54
+		$this->setMenu();
55
+		$this->setActionBar();
56 56
         
57 57
 //         if (request()->pjax()) return;
58 58
         
59
-        $this->setMenuLeft();        
60
-        $this->setMenuRight();
59
+		$this->setMenuLeft();        
60
+		$this->setMenuRight();
61 61
         
62
-        $this->setVersion();
62
+		$this->setVersion();
63 63
         
64 64
 //         $this->js(true, null, 'body')->niceScroll();
65 65
 //         $this->js(true, null, new jsExpression('window'))->on('pageshow', new jsFunction(['event'], [
@@ -67,24 +67,24 @@  discard block
 block discarded – undo
67 67
 // 		if (event.originalEvent.persisted) {
68 68
 //         	window.location.reload(); 
69 69
 //     	}')]));
70
-    }
70
+	}
71 71
     
72
-    public function setMenu()
73
-    {
74
-        if ($this->menu) return;
72
+	public function setMenu()
73
+	{
74
+		if ($this->menu) return;
75 75
 
76
-        //.ui.sidebar, 
77
-        $this->menu = $this->add(['Menu', 'atk-topMenu fixed horizontal', 'element' => 'header'], 'TopMenu');
76
+		//.ui.sidebar, 
77
+		$this->menu = $this->add(['Menu', 'atk-topMenu fixed horizontal', 'element' => 'header'], 'TopMenu');
78 78
         
79
-        $this->app->addStyle('');
79
+		$this->app->addStyle('');
80 80
 
81
-        // company logo
82
-        $this->menu->add(['class' => ['epesi-logo']])->add(['Image', url('img/tsm_logo_agile.png')]);
81
+		// company logo
82
+		$this->menu->add(['class' => ['epesi-logo']])->add(['Image', url('img/tsm_logo_agile.png')]);
83 83
         
84
-        if ($this->burger) {
85
-        	/** @scrutinizer ignore-call */
86
-        	$this->burger = $this->menu->addItem(['class' => ['icon atk-leftMenuTrigger']]);
87
-        }
84
+		if ($this->burger) {
85
+			/** @scrutinizer ignore-call */
86
+			$this->burger = $this->menu->addItem(['class' => ['icon atk-leftMenuTrigger']]);
87
+		}
88 88
        	
89 89
 		// home icon
90 90
 		$this->menu->addItem(['class' => ['icon epesi-home']], url('view/dashboard'))->add(['Icon',	'home']);
@@ -126,50 +126,50 @@  discard block
 block discarded – undo
126 126
 		]), 'RightMenu')->addClass('right menu')->removeClass('item');
127 127
 	}
128 128
 	
129
-    public function setMenuLeft()
130
-    {
131
-        if ($this->menuLeft) return;
129
+	public function setMenuLeft()
130
+	{
131
+		if ($this->menuLeft) return;
132 132
         
133
-        $this->menuLeft = $this->add(new Seeds\NavMenu('left vertical labeled sidebar'), 'LeftMenu');
133
+		$this->menuLeft = $this->add(new Seeds\NavMenu('left vertical labeled sidebar'), 'LeftMenu');
134 134
 
135
-        if (! $this->burger) return;
135
+		if (! $this->burger) return;
136 136
 
137
-        if (! session()->get('menu', 1)) {
138
-        	$this->isMenuLeftVisible = false;
139
-        }
137
+		if (! session()->get('menu', 1)) {
138
+			$this->isMenuLeftVisible = false;
139
+		}
140 140
         
141
-        $this->burger->add(['Icon',	'content'])->on('click', [
142
-        		(new jQuery('.ui.left.sidebar'))->toggleClass('visible'),
143
-        		(new jQuery('.epesi-logo'))->toggleClass('expanded'),
144
-        		(new jQuery('body'))->toggleClass('atk-leftMenu-visible'),
145
-        		$this->burger->add('jsCallback')->set(function($j, $visible) {
146
-        			session()->put('menu', $visible? 1: 0);
147
-        			session()->save();
148
-        		}, [new \atk4\ui\jsExpression( '$("#' . $this->menuLeft->id . '").hasClass("visible")? 1: 0' )])
149
-        ]);
150
-    }
141
+		$this->burger->add(['Icon',	'content'])->on('click', [
142
+				(new jQuery('.ui.left.sidebar'))->toggleClass('visible'),
143
+				(new jQuery('.epesi-logo'))->toggleClass('expanded'),
144
+				(new jQuery('body'))->toggleClass('atk-leftMenu-visible'),
145
+				$this->burger->add('jsCallback')->set(function($j, $visible) {
146
+					session()->put('menu', $visible? 1: 0);
147
+					session()->save();
148
+				}, [new \atk4\ui\jsExpression( '$("#' . $this->menuLeft->id . '").hasClass("visible")? 1: 0' )])
149
+		]);
150
+	}
151 151
     
152
-    public function setActionBar()
153
-    {
154
-    	if ($this->actionBar) return;
152
+	public function setActionBar()
153
+	{
154
+		if ($this->actionBar) return;
155 155
     	
156
-    	$this->actionBar = $this->add(new Seeds\ActionBar(), 'ActionBar');
157
-    }
156
+		$this->actionBar = $this->add(new Seeds\ActionBar(), 'ActionBar');
157
+	}
158 158
     
159
-    public function setVersion()
160
-    {
161
-    	$this->template->trySet('version', $this->app->version);
162
-    }
159
+	public function setVersion()
160
+	{
161
+		$this->template->trySet('version', $this->app->version);
162
+	}
163 163
 
164
-    /**
165
-     * {@inheritdoc}
166
-     */
164
+	/**
165
+	 * {@inheritdoc}
166
+	 */
167 167
     
168
-    public function renderView()
169
-    {
170
-    	if ($this->menuLeft && $this->isMenuLeftVisible) {
171
-               $this->menuLeft->addClass('visible');
172
-        }
173
-        parent::renderView();
174
-    }
168
+	public function renderView()
169
+	{
170
+		if ($this->menuLeft && $this->isMenuLeftVisible) {
171
+			   $this->menuLeft->addClass('visible');
172
+		}
173
+		parent::renderView();
174
+	}
175 175
 }
Please login to merge, or discard this patch.