Passed
Push — master ( 9b6cf0...d3c4d5 )
by Georgi
05:20
created
src/Layout/Seeds/NavMenu.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 		$this->addHeader($this->app->title);
20 20
 		
21 21
 		$items = collect();
22
-		foreach(NavMenuJoint::collect() as $joint) {
22
+		foreach (NavMenuJoint::collect() as $joint) {
23 23
 			$items = $items->merge($joint->items());
24 24
 		}
25 25
 
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
36 36
 	
37 37
 	public static function addItems($menu, Collection $items)
38 38
 	{
39
-		$items->sort(function ($entry1, $entry2) {
39
+		$items->sort(function($entry1, $entry2) {
40 40
 			$weight1 = $entry1['weight']?? 10;
41 41
 			$weight2 = $entry2['weight']?? 10;
42 42
 			
43 43
 			return $weight1 <=> $weight2;
44 44
 		})->map(function($item, $caption) use ($menu) {
45
-			if (! ($item['access']?? true)) return;
45
+			if (!($item['access']?? true)) return;
46 46
 			
47 47
 			if (!isset($item['link']) && !is_array($item)) {
48 48
 				$item = [
Please login to merge, or discard this patch.
Braces   +7 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,7 +42,9 @@  discard block
 block discarded – undo
42 42
 			
43 43
 			return $weight1 <=> $weight2;
44 44
 		})->map(function($item, $caption) use ($menu) {
45
-			if (! ($item['access']?? true)) return;
45
+			if (! ($item['access']?? true)) {
46
+				return;
47
+			}
46 48
 			
47 49
 			if (!isset($item['link']) && !is_array($item)) {
48 50
 				$item = [
@@ -60,8 +62,7 @@  discard block
 block discarded – undo
60 62
 				$submenu = $menu->addMenu($item['caption']);
61 63
 				
62 64
 				self::addItems($submenu, collect($subitems));
63
-			}
64
-			elseif ($subitems = $item['group']?? []) {
65
+			} elseif ($subitems = $item['group']?? []) {
65 66
 				$subgroup = $menu->addGroup($item['caption']);
66 67
 				
67 68
 				if (($item['toggle']?? false) && !$menu->in_dropdown) {
@@ -70,8 +71,7 @@  discard block
 block discarded – undo
70 71
 				}
71 72
 				
72 73
 				self::addItems($subgroup, collect($subitems));
73
-			}
74
-			elseif ($subitems = $item['accordion']?? []) {
74
+			} elseif ($subitems = $item['accordion']?? []) {
75 75
 				$accordion = $menu->add(['Accordion']);
76 76
 				
77 77
 				$section = $accordion->addSection($item['caption']);
@@ -94,12 +94,10 @@  discard block
 block discarded – undo
94 94
 					}
95 95
 				}
96 96
 // 				self::addItems($accordion, collect($subitems));
97
-			}
98
-			else {
97
+			} else {
99 98
 				if (is_a($menu, Accordion::class)) {
100 99
 					$menu->add(['View', 'Test']);
101
-				}
102
-				else {
100
+				} else {
103 101
 					$menu->addItem($item['caption'], $item['link']?? '');
104 102
 				}
105 103
 				
Please login to merge, or discard this patch.
src/Console/SetEnvCommand.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -6,48 +6,48 @@
 block discarded – undo
6 6
 
7 7
 class SetEnvCommand extends Command
8 8
 {
9
-    /**
10
-     * The name and signature of the console command.
11
-     *
12
-     * @var string
13
-     */
14
-    protected $signature = 'epesi:env {name : Env variable(s) to set} {value? : Env variable value}';
9
+	/**
10
+	 * The name and signature of the console command.
11
+	 *
12
+	 * @var string
13
+	 */
14
+	protected $signature = 'epesi:env {name : Env variable(s) to set} {value? : Env variable value}';
15 15
 
16
-    /**
17
-     * The console command description.
18
-     *
19
-     * @var string
20
-     */
21
-    protected $description = 'Update ENV variable';
16
+	/**
17
+	 * The console command description.
18
+	 *
19
+	 * @var string
20
+	 */
21
+	protected $description = 'Update ENV variable';
22 22
 
23
-    /**
24
-     * Execute the console command.
25
-     */
26
-    public function handle()
27
-    {
28
-    	$this->setEnv($this->argument('name'), $this->argument('value'));
29
-    }
23
+	/**
24
+	 * Execute the console command.
25
+	 */
26
+	public function handle()
27
+	{
28
+		$this->setEnv($this->argument('name'), $this->argument('value'));
29
+	}
30 30
     
31
-    private static function setEnv($name, $value = null)
32
-    {
33
-    	$env = $name;
34
-    	if (is_string($name) && !isset($value)) {
35
-    		$env = [
36
-    				$name => $value
37
-    		];
38
-    	}
31
+	private static function setEnv($name, $value = null)
32
+	{
33
+		$env = $name;
34
+		if (is_string($name) && !isset($value)) {
35
+			$env = [
36
+					$name => $value
37
+			];
38
+		}
39 39
     	
40
-    	foreach ($env as $key => $value) {
41
-    		$oldSetting = $key . '=' . env($key);
42
-    		$newSetting = $key . '=' . $value;
40
+		foreach ($env as $key => $value) {
41
+			$oldSetting = $key . '=' . env($key);
42
+			$newSetting = $key . '=' . $value;
43 43
     		
44
-    		putenv($newSetting);
44
+			putenv($newSetting);
45 45
     		
46
-    		file_put_contents(app()->environmentFilePath(), str_replace(
47
-    			$oldSetting,
48
-    			$newSetting,
49
-    			file_get_contents(app()->environmentFilePath())
50
-    		));
51
-    	}
52
-    }
46
+			file_put_contents(app()->environmentFilePath(), str_replace(
47
+				$oldSetting,
48
+				$newSetting,
49
+				file_get_contents(app()->environmentFilePath())
50
+			));
51
+		}
52
+	}
53 53
 }
Please login to merge, or discard this patch.
src/System/Integration/Modules/Concerns/HasMigrations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	{
21 21
 		$paths = $this->migrations();
22 22
 		
23
-		foreach (is_array($paths)? $paths: [$paths] as $path) {
23
+		foreach (is_array($paths) ? $paths : [$paths] as $path) {
24 24
 			\Illuminate\Support\Facades\Artisan::call('migrate', ['--path' => $path, '--force' => true]);
25 25
 		}
26 26
 		
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 	{
32 32
 		$paths = $this->migrations();
33 33
 		
34
-		foreach (is_array($paths)? $paths: [$paths] as $path) {
34
+		foreach (is_array($paths) ? $paths : [$paths] as $path) {
35 35
 			\Illuminate\Support\Facades\Artisan::call('migrate:rollback', ['--path' => $path]);
36 36
 		}
37 37
 		
Please login to merge, or discard this patch.
HomePage/Database/Migrations/2019_09_18_173158_create_homepage_table.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     {
16 16
     	$this->down();
17 17
     	
18
-    	Schema::create('home_pages', function (Blueprint $table) {
18
+    	Schema::create('home_pages', function(Blueprint $table) {
19 19
     		$table->increments('id');
20 20
             $table->string('path', 64);
21 21
             $table->string('role', 64);
Please login to merge, or discard this patch.
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -6,30 +6,30 @@
 block discarded – undo
6 6
 
7 7
 class CreateHomePageTable 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('home_pages', function (Blueprint $table) {
19
-    		$table->increments('id');
20
-            $table->string('path', 64);
21
-            $table->string('role', 64);
22
-            $table->smallInteger('priority')->default(0);
23
-        });
24
-    }
18
+		Schema::create('home_pages', function (Blueprint $table) {
19
+			$table->increments('id');
20
+			$table->string('path', 64);
21
+			$table->string('role', 64);
22
+			$table->smallInteger('priority')->default(0);
23
+		});
24
+	}
25 25
 
26
-    /**
27
-     * Reverse the migrations.
28
-     *
29
-     * @return void
30
-     */
31
-    public function down()
32
-    {
33
-    	Schema::dropIfExists('home_pages'); 	
34
-    }
26
+	/**
27
+	 * Reverse the migrations.
28
+	 *
29
+	 * @return void
30
+	 */
31
+	public function down()
32
+	{
33
+		Schema::dropIfExists('home_pages'); 	
34
+	}
35 35
 }
Please login to merge, or discard this patch.
src/Layout/LayoutView.php 3 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@  discard block
 block discarded – undo
31 31
  */
32 32
 class LayoutView extends ModuleView
33 33
 {
34
-    public $menuLeft;    // vertical menu
35
-    public $menu;        // horizontal menu
36
-    public $menuRight;   // vertical pull-down
34
+    public $menuLeft; // vertical menu
35
+    public $menu; // horizontal menu
36
+    public $menuRight; // vertical pull-down
37 37
     public $actionBar;   
38 38
     public $locationBar;
39 39
     
40
-    public $burger = true;      // burger menu item
40
+    public $burger = true; // burger menu item
41 41
 
42 42
     /*
43 43
      * Whether or not left Menu is visible on Page load.
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $this->menu->addItem(['class' => ['icon epesi-home']], url('home'))->add(['Icon', 'home']);
89 89
 
90 90
 		// location bar
91
-		$this->locationBar = $this->menu->add(['View',	['ui' => 'epesi-location']]);
91
+		$this->locationBar = $this->menu->add(['View', ['ui' => 'epesi-location']]);
92 92
 	}
93 93
 
94 94
 	public function setLocation($crumbs)
@@ -130,20 +130,20 @@  discard block
 block discarded – undo
130 130
         
131 131
         $this->menuLeft = $this->add(new Seeds\NavMenu('left vertical labeled sidebar'), 'LeftMenu');
132 132
 
133
-        if (! $this->burger) return;
133
+        if (!$this->burger) return;
134 134
 
135
-        if (! session()->get('menu', 1)) {
135
+        if (!session()->get('menu', 1)) {
136 136
         	$this->isMenuLeftVisible = false;
137 137
         }
138 138
         
139
-        $this->burger->add(['Icon',	'content'])->on('click', [
139
+        $this->burger->add(['Icon', 'content'])->on('click', [
140 140
         		(new jQuery('.ui.left.sidebar'))->toggleClass('visible'),
141 141
         		(new jQuery('.epesi-logo'))->toggleClass('expanded'),
142 142
         		(new jQuery('body'))->toggleClass('atk-leftMenu-visible'),
143 143
         		$this->burger->add('jsCallback')->set(function($j, $visible) {
144
-        			session()->put('menu', $visible? 1: 0);
144
+        			session()->put('menu', $visible ? 1 : 0);
145 145
         			session()->save();
146
-        		}, [new \atk4\ui\jsExpression( '$("#' . $this->menuLeft->id . '").hasClass("visible")? 1: 0' )])
146
+        		}, [new \atk4\ui\jsExpression('$("#' . $this->menuLeft->id . '").hasClass("visible")? 1: 0')])
147 147
         ]);
148 148
     }
149 149
     
Please login to merge, or discard this patch.
Braces   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,9 @@  discard block
 block discarded – undo
72 72
     
73 73
     public function setMenu()
74 74
     {
75
-        if ($this->menu) return;
75
+        if ($this->menu) {
76
+        	return;
77
+        }
76 78
  
77 79
         $this->menu = $this->add(['Menu', 'atk-topMenu fixed horizontal', 'element' => 'header'], 'TopMenu');
78 80
 
@@ -117,7 +119,9 @@  discard block
 block discarded – undo
117 119
 	
118 120
 	public function setMenuRight()
119 121
 	{
120
-		if ($this->menuRight) return;
122
+		if ($this->menuRight) {
123
+			return;
124
+		}
121 125
 
122 126
 		$this->menuRight = $this->menu->add(new Seeds\RightMenu([
123 127
 				'ui' => false
@@ -126,11 +130,15 @@  discard block
 block discarded – undo
126 130
 	
127 131
     public function setMenuLeft()
128 132
     {
129
-        if ($this->menuLeft) return;
133
+        if ($this->menuLeft) {
134
+        	return;
135
+        }
130 136
         
131 137
         $this->menuLeft = $this->add(new Seeds\NavMenu('left vertical labeled sidebar'), 'LeftMenu');
132 138
 
133
-        if (! $this->burger) return;
139
+        if (! $this->burger) {
140
+        	return;
141
+        }
134 142
 
135 143
         if (! session()->get('menu', 1)) {
136 144
         	$this->isMenuLeftVisible = false;
@@ -149,7 +157,9 @@  discard block
 block discarded – undo
149 157
     
150 158
     public function setActionBar()
151 159
     {
152
-    	if ($this->actionBar) return;
160
+    	if ($this->actionBar) {
161
+    		return;
162
+    	}
153 163
     	
154 164
     	$this->actionBar = $this->add(new Seeds\ActionBar(), 'ActionBar');
155 165
     }
Please login to merge, or discard this patch.
Indentation   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -30,64 +30,64 @@  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
-        $this->js(true, null, 'body')->niceScroll();
64
+		$this->js(true, null, 'body')->niceScroll();
65 65
         
66 66
 //         $this->js(true, null, new jsExpression('window'))->on('pageshow', new jsFunction(['event'], [
67 67
 //         			new jsExpression('
68 68
 // 		if (event.originalEvent.persisted) {
69 69
 //         	window.location.reload(); 
70 70
 //     	}')]));
71
-    }
71
+	}
72 72
     
73
-    public function setMenu()
74
-    {
75
-        if ($this->menu) return;
73
+	public function setMenu()
74
+	{
75
+		if ($this->menu) return;
76 76
  
77
-        $this->menu = $this->add(['Menu', 'atk-topMenu fixed horizontal', 'element' => 'header'], 'TopMenu');
77
+		$this->menu = $this->add(['Menu', 'atk-topMenu fixed horizontal', 'element' => 'header'], 'TopMenu');
78 78
 
79
-        // company logo
80
-        // see Epesi\Core\Controllers\SystemController::logo
81
-        $this->menu->add(['class' => ['epesi-logo'], 'style' => ['width' =>  '167px']])->add(['Image', url('logo')])->setStyle(['max-height' => '32px']);
79
+		// company logo
80
+		// see Epesi\Core\Controllers\SystemController::logo
81
+		$this->menu->add(['class' => ['epesi-logo'], 'style' => ['width' =>  '167px']])->add(['Image', url('logo')])->setStyle(['max-height' => '32px']);
82 82
         
83
-        if ($this->burger) {
84
-        	/** @scrutinizer ignore-call */
85
-        	$this->burger = $this->menu->addItem(['class' => ['icon atk-leftMenuTrigger']]);
86
-        }
83
+		if ($this->burger) {
84
+			/** @scrutinizer ignore-call */
85
+			$this->burger = $this->menu->addItem(['class' => ['icon atk-leftMenuTrigger']]);
86
+		}
87 87
        	
88 88
 		// home icon redirects to /home path 
89 89
 		// see Epesi\Core\Controllers\SystemController::home
90
-        $this->menu->addItem(['class' => ['icon epesi-home']], url('home'))->add(['Icon', 'home']);
90
+		$this->menu->addItem(['class' => ['icon epesi-home']], url('home'))->add(['Icon', 'home']);
91 91
 
92 92
 		// location bar
93 93
 		$this->locationBar = $this->menu->add(['View',	['ui' => 'epesi-location']]);
@@ -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.
src/Middleware/NoCacheHeaders.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -6,25 +6,25 @@
 block discarded – undo
6 6
 
7 7
 class NoCacheHeaders
8 8
 {
9
-    /**
10
-     * Add cache related HTTP headers.
11
-     *
12
-     * @param  \Illuminate\Http\Request  $request
13
-     * @param  \Closure  $next
14
-     * @param  string|array  $options
15
-     * @return \Symfony\Component\HttpFoundation\Response
16
-     *
17
-     * @throws \InvalidArgumentException
18
-     */
19
-    public function handle($request, Closure $next, $options = [])
20
-    {
21
-        $response = $next($request);
9
+	/**
10
+	 * Add cache related HTTP headers.
11
+	 *
12
+	 * @param  \Illuminate\Http\Request  $request
13
+	 * @param  \Closure  $next
14
+	 * @param  string|array  $options
15
+	 * @return \Symfony\Component\HttpFoundation\Response
16
+	 *
17
+	 * @throws \InvalidArgumentException
18
+	 */
19
+	public function handle($request, Closure $next, $options = [])
20
+	{
21
+		$response = $next($request);
22 22
 
23
-        $response->headers->addCacheControlDirective('no-cache', true);
24
-        $response->headers->addCacheControlDirective('max-age', 0);
25
-        $response->headers->addCacheControlDirective('must-revalidate', true);
26
-        $response->headers->addCacheControlDirective('no-store', true);
23
+		$response->headers->addCacheControlDirective('no-cache', true);
24
+		$response->headers->addCacheControlDirective('max-age', 0);
25
+		$response->headers->addCacheControlDirective('must-revalidate', true);
26
+		$response->headers->addCacheControlDirective('no-store', true);
27 27
         
28
-        return $response;
29
-    }
28
+		return $response;
29
+	}
30 30
 }
Please login to merge, or discard this patch.
src/System/Seeds/LaunchButton.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 {
7 7
 	public $defaultTemplate = 'launch_button.html';
8 8
 	
9
-    public $ui = 'basic launch pjax button';
9
+	public $ui = 'basic launch pjax button';
10 10
     
11
-    public $container = 'View';
11
+	public $container = 'View';
12 12
   
13 13
 }
Please login to merge, or discard this patch.
src/System/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.
User/Database/Migrations/2014_10_12_100000_create_password_resets_table.php 2 patches
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.
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('password_resets', function (Blueprint $table) {
16
+        Schema::create('password_resets', function(Blueprint $table) {
17 17
             $table->string('email')->index();
18 18
             $table->string('token');
19 19
             $table->timestamp('created_at')->nullable();
Please login to merge, or discard this patch.