Passed
Push — master ( 5c0c69...46ba0d )
by Georgi
03:26
created
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/HomePage/HomePageSettings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 			return [['Template', $availablePages[$row[$column]]?? '[' . __('missing: :path', ['path' => $row[$column]]) . ']']];
46 46
 		}]);
47 47
 		
48
-		$this->grid->addDragHandler()->onReorder(function ($order) {
48
+		$this->grid->addDragHandler()->onReorder(function($order) {
49 49
 			$result = true;
50 50
 			foreach ($this->getHomepages() as $homepage) {
51 51
 				$homepage->priority = array_search($homepage->id, $order);
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
 				$result &= $homepage->save();
54 54
 			}
55 55
 			
56
-			return $result? $this->notify(__('Homepages reordered!')): $this->notifyError(__('Error saving order!'));
56
+			return $result ? $this->notify(__('Homepages reordered!')) : $this->notifyError(__('Error saving order!'));
57 57
 		});
58 58
 		
59
-		$this->grid->addAction(['icon' => 'red trash'], function ($jschain, $id) {
59
+		$this->grid->addAction(['icon' => 'red trash'], function($jschain, $id) {
60 60
 			HomePage::find($id)->delete();
61 61
 				
62 62
 			return $jschain->closest('tr')->transition('fade left');
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	
93 93
 	public function getHomepageForm()
94 94
 	{
95
-		if (! $this->form) {		
95
+		if (!$this->form) {		
96 96
 			$this->form = new Form(['buttonSave' => ['Button', __('Save'), 'primary']]);
97 97
 	
98 98
 			$this->form->addHook('submit', function($form) {
Please login to merge, or discard this patch.
src/App.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 		//TODO: set the skin from admin / user selection
34 34
 		$this->skin = config('epesi.app.skin', $this->skin);
35 35
 
36
-		$this->template_dir = array_merge(ModuleManager::collect('templates', $this->skin), $this->template_dir?: []);
36
+		$this->template_dir = array_merge(ModuleManager::collect('templates', $this->skin), $this->template_dir ?: []);
37 37
 	}
38 38
 	
39 39
 	final public static function module()
@@ -81,35 +81,35 @@  discard block
 block discarded – undo
81 81
 		//TODO: include below in app.js and app.css
82 82
 		// jQuery
83 83
 		$urlJs = $this->cdn['jquery']?? 'storage/system/js';
84
-		$this->requireJS($urlJs.'/jquery.min.js');
84
+		$this->requireJS($urlJs . '/jquery.min.js');
85 85
 		
86 86
 		// Semantic UI
87 87
 		$urlJs = $this->cdn['semantic-ui']?? 'storage/system/js';
88 88
 		$urlCss = $this->cdn['semantic-ui']?? 'storage/system/css';
89
-		$this->requireJS($urlJs.'/semantic.min.js');
90
-		$this->requireCSS($urlCss.'/semantic.min.css');
89
+		$this->requireJS($urlJs . '/semantic.min.js');
90
+		$this->requireCSS($urlCss . '/semantic.min.css');
91 91
 		
92 92
 		// Serialize Object
93 93
 		$urlJs = $this->cdn['serialize-object']?? 'storage/system/js';
94
-		$this->requireJS($urlJs.'/jquery.serialize-object.min.js');
94
+		$this->requireJS($urlJs . '/jquery.serialize-object.min.js');
95 95
 		
96 96
 		// Agile UI
97 97
 		$urlJs = $this->cdn['atk']?? 'storage/system/js';
98 98
 		$urlCss = $this->cdn['atk']?? 'storage/system/css';
99
-		$this->requireJS($urlJs.'/atkjs-ui.min.js');
100
-		$this->requireCSS($urlCss.'/agileui.css');
99
+		$this->requireJS($urlJs . '/atkjs-ui.min.js');
100
+		$this->requireCSS($urlCss . '/agileui.css');
101 101
 		
102 102
 		// Draggable
103 103
 		$urlJs = $this->cdn['draggable']?? 'storage/system/js';
104
-		$this->requireJS($urlJs.'/draggable.bundle.js');
104
+		$this->requireJS($urlJs . '/draggable.bundle.js');
105 105
 		
106 106
 		// jQuery UI	
107 107
 		$urlJs = $this->cdn['jquery-ui']?? 'storage/system/js';
108
-		$this->requireJS($urlJs.'/jquery-ui.js');
108
+		$this->requireJS($urlJs . '/jquery-ui.js');
109 109
 		
110 110
 		// jQuery niceScroll	
111 111
 		$urlJs = $this->cdn['jquery-nicescroll']?? 'storage/system/js';
112
-		$this->requireJS($urlJs.'/jquery.nicescroll.js');
112
+		$this->requireJS($urlJs . '/jquery.nicescroll.js');
113 113
 	}
114 114
 	
115 115
 	public function addCsrfToken()
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 		
182 182
 		$key = md5(serialize(func_get_args()));
183 183
 		
184
-		if (! isset($cache[$key])) {
184
+		if (!isset($cache[$key])) {
185 185
 			$cache[$key] = true;
186 186
 			
187 187
 			parent::requireJS($url, $isAsync, $isDefer);
Please login to merge, or discard this patch.
src/Layout/LayoutView.php 1 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/Providers/EpesiServiceProvider.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -10,63 +10,63 @@
 block discarded – undo
10 10
 
11 11
 class EpesiServiceProvider extends ServiceProvider
12 12
 {
13
-    /**
14
-     * Booting the package.
15
-     */
16
-    public function boot()
17
-    {
18
-    	$this->ensureHttps();
13
+	/**
14
+	 * Booting the package.
15
+	 */
16
+	public function boot()
17
+	{
18
+		$this->ensureHttps();
19 19
     	
20
-    	Route::group(['namespace' => 'Epesi\Core\Controllers', 'middleware' => 'web'], function() {
21
-    		Route::any('/', 'SystemController@index');
22
-    		Route::get('logo', 'SystemController@logo');
23
-    		Route::any('install', 'SystemController@install');
20
+		Route::group(['namespace' => 'Epesi\Core\Controllers', 'middleware' => 'web'], function() {
21
+			Route::any('/', 'SystemController@index');
22
+			Route::get('logo', 'SystemController@logo');
23
+			Route::any('install', 'SystemController@install');
24 24
     		
25
-    		Route::group(['middleware' => ['auth', NoCacheHeaders::class]], function() {
26
-    			Route::any('home', 'SystemController@home')->name('home');
25
+			Route::group(['middleware' => ['auth', NoCacheHeaders::class]], function() {
26
+				Route::any('home', 'SystemController@home')->name('home');
27 27
     			
28
-    			Route::any('view/{alias}/{method?}/{args?}', 'ModuleController@view');
29
-    		});
30
-    	});
28
+				Route::any('view/{alias}/{method?}/{args?}', 'ModuleController@view');
29
+			});
30
+		});
31 31
 
32
-    	// call boot methods on all modules
33
-    	ModuleManager::call('boot');
32
+		// call boot methods on all modules
33
+		ModuleManager::call('boot');
34 34
     		
35 35
 		foreach (ModuleManager::collect('translations') as $path) {
36 36
 			$this->loadJsonTranslationsFrom($path);
37 37
 		}
38 38
 		
39
-    	// Register admin service provider if in admin mode or in console
40
-    	// TODO: apply access restriction to admin mode
39
+		// Register admin service provider if in admin mode or in console
40
+		// TODO: apply access restriction to admin mode
41 41
 //     	if ($this->app->runningInConsole() || (request('admin', false) && Auth::user()->can('modify system'))) {
42
-    	if ($this->app->runningInConsole() || request('admin', false)) {
43
-    		$this->app->register(AdminServiceProvider::class);
44
-    	}
45
-    }
42
+		if ($this->app->runningInConsole() || request('admin', false)) {
43
+			$this->app->register(AdminServiceProvider::class);
44
+		}
45
+	}
46 46
 
47
-    /**
48
-     * Register the provider.
49
-     */
50
-    public function register()
51
-    {
52
-    	$this->app->singleton(App::class);
53
-    }
47
+	/**
48
+	 * Register the provider.
49
+	 */
50
+	public function register()
51
+	{
52
+		$this->app->singleton(App::class);
53
+	}
54 54
     
55
-    /**
56
-     * Force to set https scheme if https enabled.
57
-     *
58
-     * @return void
59
-     */
60
-    protected function ensureHttps()
61
-    {
62
-    	if (config('epesi.https') || config('epesi.secure')) {
63
-    		url()->forceScheme('https');
64
-    		$this->app['request']->server->set('HTTPS', true);
65
-    	}
66
-    }
55
+	/**
56
+	 * Force to set https scheme if https enabled.
57
+	 *
58
+	 * @return void
59
+	 */
60
+	protected function ensureHttps()
61
+	{
62
+		if (config('epesi.https') || config('epesi.secure')) {
63
+			url()->forceScheme('https');
64
+			$this->app['request']->server->set('HTTPS', true);
65
+		}
66
+	}
67 67
     
68
-    protected function registerStorageDisk()
69
-    {
70
-    	$this->app['config']['filesystems.disks.epesi'] = config('epesi.disk');
71
-    }
68
+	protected function registerStorageDisk()
69
+	{
70
+		$this->app['config']['filesystems.disks.epesi'] = config('epesi.disk');
71
+	}
72 72
 }
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/SystemInstallWizard.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 		
65 65
 		$column = $columns->addColumn();
66 66
 
67
-		if (! function_exists('locale_get_display_language')) {
67
+		if (!function_exists('locale_get_display_language')) {
68 68
 			$column->addClass('middle aligned');
69 69
 			$column->add(['Label', __('Install php-intl extension to enable language selection!'), 'class' => ['red']]);
70 70
 			
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 		
80 80
 		$form->addField('language', ['DropDown', 'values' => $values, 'caption' => __('Select Language'), 'iconLeft' => 'globe'], ['required'=>true])->set($wizard->recall('language', 'en'));
81 81
 		
82
-		$form->onSubmit(function ($form) use ($wizard) {
82
+		$form->onSubmit(function($form) use ($wizard) {
83 83
 			$wizard->memorize('language', $form->model['language']);
84 84
 			
85 85
 			App::setLocale($form->model['language']);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 		$form->addField('support', ['Checkbox', 'caption' => __('I will not remove "Support -> About" credit page from the application menu.')], ['required'=>true]);
112 112
 		$form->addField('store', ['Checkbox', 'caption' => __('I will not remove or rename ":epesi Store" links from the application.', ['epesi' => config('epesi.app.title')])], ['required'=>true]);
113 113
 		
114
-		$form->onSubmit(function ($form) use ($wizard) {
114
+		$form->onSubmit(function($form) use ($wizard) {
115 115
 			return $wizard->jsNext();
116 116
 		});
117 117
 			
@@ -139,12 +139,12 @@  discard block
 block discarded – undo
139 139
 		$form->addField('create', ['Checkbox', 'caption' => __('Create New Database')])->on('change', new jsExpression('if ($(event.target).is(":checked")) alert([])', [__('WARNING: Make sure you have CREATE access level to do this!')]));
140 140
 
141 141
 		foreach ($wizard->recall('connection', []) as $name => $value) {
142
-			if (! $field = $form->fields[$name]?? null) continue;
142
+			if (!$field = $form->fields[$name]?? null) continue;
143 143
 			
144 144
 			$field->set($value);
145 145
 		}
146 146
 
147
-		$form->onSubmit(function ($form) use ($wizard) {
147
+		$form->onSubmit(function($form) use ($wizard) {
148 148
 			$connection = $form->model->get();
149 149
 
150 150
 			$wizard->memorize('connection', $connection);
Please login to merge, or discard this patch.
src/Controllers/SystemController.php 3 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -11,38 +11,38 @@
 block discarded – undo
11 11
 
12 12
 class SystemController extends Controller
13 13
 {
14
-    public function index()
15
-    {
16
-    	return SystemCore::isInstalled()? redirect('home'): redirect('install');
17
-    }
14
+	public function index()
15
+	{
16
+		return SystemCore::isInstalled()? redirect('home'): redirect('install');
17
+	}
18 18
     
19
-    public function install(Epesi $epesi)
20
-    {
21
-    	if (SystemCore::isInstalled()) return redirect('home');
19
+	public function install(Epesi $epesi)
20
+	{
21
+		if (SystemCore::isInstalled()) return redirect('home');
22 22
     	
23
-    	$epesi->title = config('epesi.app.title') . ' > ' . __('Installation');
23
+		$epesi->title = config('epesi.app.title') . ' > ' . __('Installation');
24 24
     	
25
-    	$epesi->initLayout('Centered');
25
+		$epesi->initLayout('Centered');
26 26
     	
27
-    	$epesi->layout->set('logo', url('logo'));
28
-    	$epesi->layout->template->setHTML('copyright', config('epesi.app.copyright'));
27
+		$epesi->layout->set('logo', url('logo'));
28
+		$epesi->layout->template->setHTML('copyright', config('epesi.app.copyright'));
29 29
     	
30
-    	$epesi->add(new SystemInstallWizard());
30
+		$epesi->add(new SystemInstallWizard());
31 31
     	
32
-    	return $epesi->response();
33
-    }
32
+		return $epesi->response();
33
+	}
34 34
     
35
-    public function home()
36
-    {
37
-    	return redirect(HomePageCommon::getUserHomePagePath());
38
-    }
35
+	public function home()
36
+	{
37
+		return redirect(HomePageCommon::getUserHomePagePath());
38
+	}
39 39
     
40
-    public function logo()
41
-    {
42
-    	$path = storage_path(implode(DIRECTORY_SEPARATOR, ['app', 'public', 'system', 'logo.png']));
40
+	public function logo()
41
+	{
42
+		$path = storage_path(implode(DIRECTORY_SEPARATOR, ['app', 'public', 'system', 'logo.png']));
43 43
 
44
-    	$file = new \Symfony\Component\HttpFoundation\File\File($path);
44
+		$file = new \Symfony\Component\HttpFoundation\File\File($path);
45 45
     	
46
-    	return response(File::get($path), 200, ['Content-type' => $file->getMimeType()])->setMaxAge(604800)->setPublic();
47
-    }
46
+		return response(File::get($path), 200, ['Content-type' => $file->getMimeType()])->setMaxAge(604800)->setPublic();
47
+	}
48 48
 }
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 index()
15 15
     {
16
-    	return SystemCore::isInstalled()? redirect('home'): redirect('install');
16
+    	return SystemCore::isInstalled() ? redirect('home') : redirect('install');
17 17
     }
18 18
     
19 19
     public function install(Epesi $epesi)
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,9 @@
 block discarded – undo
18 18
     
19 19
     public function install(Epesi $epesi)
20 20
     {
21
-    	if (SystemCore::isInstalled()) return redirect('home');
21
+    	if (SystemCore::isInstalled()) {
22
+    		return redirect('home');
23
+    	}
22 24
     	
23 25
     	$epesi->title = config('epesi.app.title') . ' > ' . __('Installation');
24 26
     	
Please login to merge, or discard this patch.
src/Controllers/ModuleController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 			}
33 33
 		}
34 34
 
35
-		if (! $view) abort(404);
35
+		if (!$view) abort(404);
36 36
 
37 37
 		$epesi->add($view)->displayModuleContent($method, $args);
38 38
 		
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,9 @@
 block discarded – undo
32 32
 			}
33 33
 		}
34 34
 
35
-		if (! $view) abort(404);
35
+		if (! $view) {
36
+			abort(404);
37
+		}
36 38
 
37 39
 		$epesi->add($view)->displayModuleContent($method, $args);
38 40
 		
Please login to merge, or discard this patch.