Passed
Push — master ( e4e152...8fde47 )
by Georgi
02:55
created
src/System/Integration/Modules/ModuleCore.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 	{
47 47
 		$templatesDir = static::path() . DIRECTORY_SEPARATOR . 'Templates';
48 48
 		
49
-		if (! is_dir($templatesDir)) return;
49
+		if (!is_dir($templatesDir)) return;
50 50
 		
51 51
 		$skinDir = $templatesDir . DIRECTORY_SEPARATOR . $skin;
52 52
 		
53
-		return is_dir($skinDir)? $skinDir: $templatesDir;
53
+		return is_dir($skinDir) ? $skinDir : $templatesDir;
54 54
 	}
55 55
 	
56 56
 	public static function translations()
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	{
89 89
 		$paths = $this->migrations();
90 90
 		
91
-		foreach (is_array($paths)? $paths: [$paths] as $path) {
91
+		foreach (is_array($paths) ? $paths : [$paths] as $path) {
92 92
 			\Illuminate\Support\Facades\Artisan::call('migrate', ['--path' => $path]);
93 93
 		}
94 94
 	}
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	{
98 98
 		$paths = $this->migrations();
99 99
 		
100
-		foreach (is_array($paths)? $paths: [$paths] as $path) {
100
+		foreach (is_array($paths) ? $paths : [$paths] as $path) {
101 101
 			\Illuminate\Support\Facades\Artisan::call('migrate:rollback', ['--path' => $path]);
102 102
 		}
103 103
 	}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,9 @@
 block discarded – undo
46 46
 	{
47 47
 		$templatesDir = static::path() . DIRECTORY_SEPARATOR . 'Templates';
48 48
 		
49
-		if (! is_dir($templatesDir)) return;
49
+		if (! is_dir($templatesDir)) {
50
+			return;
51
+		}
50 52
 		
51 53
 		$skinDir = $templatesDir . DIRECTORY_SEPARATOR . $skin;
52 54
 		
Please login to merge, or discard this patch.
src/System/Integration/Modules/Concerns/Notifies.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
 {
7 7
 	public function notify($options, $attachTo = null)
8 8
 	{
9
-		$options = array_merge(['duration'=> 1500], is_array($options)? $options: ['content' => $options]);
9
+		$options = array_merge(['duration'=> 1500], is_array($options) ? $options : ['content' => $options]);
10 10
 		
11
-		$attachTo = $attachTo?: $this;
11
+		$attachTo = $attachTo ?: $this;
12 12
 		
13 13
 		return (new \atk4\ui\jsNotify($options, $attachTo));
14 14
 	}
15 15
 	
16 16
 	public function notifyError($options, $attachTo = null)
17 17
 	{
18
-		$options = array_merge(['color' => 'red'], is_array($options)? $options: ['content' => $options]);
18
+		$options = array_merge(['color' => 'red'], is_array($options) ? $options : ['content' => $options]);
19 19
 		
20 20
 		return $this->notify($options, $attachTo);
21 21
 	}
Please login to merge, or discard this patch.
src/System/Integration/Modules/Concerns/HasPackageManifest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 	
12 12
 	final public static function packageManifest()
13 13
 	{
14
-		return self::$packageManifest = self::$packageManifest?: new PackageManifest(new Filesystem(), app()->basePath(), self::getCachedManifestPath());
14
+		return self::$packageManifest = self::$packageManifest ?: new PackageManifest(new Filesystem(), app()->basePath(), self::getCachedManifestPath());
15 15
 	}
16 16
 	
17 17
 	final public static function getCachedManifestPath()
Please login to merge, or discard this patch.
src/System/SystemInstallWizard.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 		
64 64
 		$column = $columns->addColumn();
65 65
 
66
-		if (! function_exists('locale_get_display_language')) {
66
+		if (!function_exists('locale_get_display_language')) {
67 67
 			$column->addClass('middle aligned');
68 68
 			$column->add(['Label', __('Install php-intl extension to enable language selection!'), 'class' => ['red']]);
69 69
 			
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 		
84 84
 		$form->addField('language', ['DropDown', 'values' => $values, 'caption' => __('Select Language')], ['required'=>true])->set($wizard->recall('language', 'en'));
85 85
 		
86
-		$form->onSubmit(function ($form) use ($wizard) {
86
+		$form->onSubmit(function($form) use ($wizard) {
87 87
 			$wizard->memorize('language', $form->model['language']);
88 88
 			
89 89
 			App::setLocale($form->model['language']);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 		$form->addField('support', ['Checkbox', 'caption' => __('I will not remove "Support -> About" credit page from the application menu.')], ['required'=>true]);
110 110
 		$form->addField('store', ['Checkbox', 'caption' => __('I will not remove or rename "EPESI Store" links from the application.')], ['required'=>true]);
111 111
 		
112
-		$form->onSubmit(function ($form) use ($wizard) {
112
+		$form->onSubmit(function($form) use ($wizard) {
113 113
 			return $wizard->jsNext();
114 114
 		});
115 115
 			
@@ -137,12 +137,12 @@  discard block
 block discarded – undo
137 137
 		$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!')]));
138 138
 
139 139
 		foreach ($wizard->recall('connection', []) as $name => $value) {
140
-			if (! $field = $form->fields[$name]?? null) continue;
140
+			if (!$field = $form->fields[$name]?? null) continue;
141 141
 			
142 142
 			$field->set($value);
143 143
 		}
144 144
 
145
-		$form->onSubmit(function ($form) use ($wizard) {
145
+		$form->onSubmit(function($form) use ($wizard) {
146 146
 			$connection = $form->model->get();
147 147
 
148 148
 			$wizard->memorize('connection', $connection);
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,9 @@
 block discarded – undo
137 137
 		$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!')]));
138 138
 
139 139
 		foreach ($wizard->recall('connection', []) as $name => $value) {
140
-			if (! $field = $form->fields[$name]?? null) continue;
140
+			if (! $field = $form->fields[$name]?? null) {
141
+				continue;
142
+			}
141 143
 			
142 144
 			$field->set($value);
143 145
 		}
Please login to merge, or discard this patch.
src/System/Database/Migrations/2019_09_18_173148_create_core_tables.php 2 patches
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -6,37 +6,37 @@
 block discarded – undo
6 6
 
7 7
 class CreateCoreTables 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('variables', function (Blueprint $table) {
19
-            $table->string('name', 128)->primary();
20
-            $table->text('value');
21
-        });
18
+		Schema::create('variables', function (Blueprint $table) {
19
+			$table->string('name', 128)->primary();
20
+			$table->text('value');
21
+		});
22 22
     	
23
-    	Schema::create('modules', function (Blueprint $table) {
24
-            $table->string('class', 512);
25
-            $table->string('alias', 128)->unique();
26
-            $table->smallInteger('priority');
27
-            $table->smallInteger('state');
28
-        });
29
-    }
23
+		Schema::create('modules', function (Blueprint $table) {
24
+			$table->string('class', 512);
25
+			$table->string('alias', 128)->unique();
26
+			$table->smallInteger('priority');
27
+			$table->smallInteger('state');
28
+		});
29
+	}
30 30
 
31
-    /**
32
-     * Reverse the migrations.
33
-     *
34
-     * @return void
35
-     */
36
-    public function down()
37
-    {
38
-    	Schema::dropIfExists('variables');
31
+	/**
32
+	 * Reverse the migrations.
33
+	 *
34
+	 * @return void
35
+	 */
36
+	public function down()
37
+	{
38
+		Schema::dropIfExists('variables');
39 39
     	
40
-    	Schema::dropIfExists('modules');
41
-    }
40
+		Schema::dropIfExists('modules');
41
+	}
42 42
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
     {
16 16
     	$this->down();
17 17
     	
18
-    	Schema::create('variables', function (Blueprint $table) {
18
+    	Schema::create('variables', function(Blueprint $table) {
19 19
             $table->string('name', 128)->primary();
20 20
             $table->text('value');
21 21
         });
22 22
     	
23
-    	Schema::create('modules', function (Blueprint $table) {
23
+    	Schema::create('modules', function(Blueprint $table) {
24 24
             $table->string('class', 512);
25 25
             $table->string('alias', 128)->unique();
26 26
             $table->smallInteger('priority');
Please login to merge, or discard this patch.
src/System/Seeds/Form.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 	protected $validationRules = [];
18 18
 	
19 19
 	public function addElements($elements, $parent = null) {
20
-		$parent = $parent?: $this;
20
+		$parent = $parent ?: $this;
21 21
 		
22 22
 		foreach ($elements as $name => $desc) {
23 23
 			$name = $desc['name']?? $name;
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
 			
27 27
 			switch ($desc['type']?? 'field') {
28 28
 				case 'field':
29
-					$desc = is_string($desc)? [
29
+					$desc = is_string($desc) ? [
30 30
 					'decorator' => [$desc]
31
-					]: $desc;
31
+					] : $desc;
32 32
 					
33 33
 					$field = $parent->addField($name, $desc['decorator']?? [], $desc['options']?? []);
34 34
 					
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	}
78 78
 	
79 79
 	public function addFieldsDisplayRules($fieldsDisplayRules) {
80
-		$this->setFieldsDisplayRules(array_merge($this->fieldsDisplayRules?: [], $fieldsDisplayRules));
80
+		$this->setFieldsDisplayRules(array_merge($this->fieldsDisplayRules ?: [], $fieldsDisplayRules));
81 81
 	}
82 82
 	
83 83
 	public function addGroupDisplayRules($groupDisplayRules) {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	}
90 90
 	
91 91
 	public function addFieldRules($field, $rules = []) {
92
-		if (! $rules) return;
92
+		if (!$rules) return;
93 93
 		
94 94
 		$this->fieldRules[$field] = $rules['rules']?? [
95 95
 				'identifier' => $field,
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
 	
102 102
 	public function setValues($values)
103 103
 	{
104
-		foreach ($values?: [] as $name => $value) {
105
-			if (! $field = $this->fields[$name]?? null) continue;
104
+		foreach ($values ?: [] as $name => $value) {
105
+			if (!$field = $this->fields[$name]?? null) continue;
106 106
 			
107 107
 			$field->set($value);
108 108
 		}
@@ -125,17 +125,17 @@  discard block
 block discarded – undo
125 125
 				'fields' => $this->fieldRules
126 126
 		]);
127 127
 		
128
-		$this->onSubmit(function ($form) use ($callback) {
128
+		$this->onSubmit(function($form) use ($callback) {
129 129
 			$errors = [];
130
-			foreach ($this->validationRules?: [] as $ruleCallback) {
131
-				if (! is_callable($ruleCallback)) continue;
130
+			foreach ($this->validationRules ?: [] as $ruleCallback) {
131
+				if (!is_callable($ruleCallback)) continue;
132 132
 				
133 133
 				$ruleErrors = $ruleCallback($form);
134 134
 				
135
-				$errors = array_merge($errors, $ruleErrors?: []);
135
+				$errors = array_merge($errors, $ruleErrors ?: []);
136 136
 			}
137 137
 			
138
-			return $errors?: $callback($this);
138
+			return $errors ?: $callback($this);
139 139
 		});
140 140
 			
141 141
 			return $this;
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 	
149 149
 	public function confirmLeave($confirm = true)
150 150
 	{
151
-		$this->canLeave = ! $confirm;
151
+		$this->canLeave = !$confirm;
152 152
 		
153 153
 		return $this;
154 154
 	}
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,9 @@  discard block
 block discarded – undo
89 89
 	}
90 90
 	
91 91
 	public function addFieldRules($field, $rules = []) {
92
-		if (! $rules) return;
92
+		if (! $rules) {
93
+			return;
94
+		}
93 95
 		
94 96
 		$this->fieldRules[$field] = $rules['rules']?? [
95 97
 				'identifier' => $field,
@@ -102,7 +104,9 @@  discard block
 block discarded – undo
102 104
 	public function setValues($values)
103 105
 	{
104 106
 		foreach ($values?: [] as $name => $value) {
105
-			if (! $field = $this->fields[$name]?? null) continue;
107
+			if (! $field = $this->fields[$name]?? null) {
108
+				continue;
109
+			}
106 110
 			
107 111
 			$field->set($value);
108 112
 		}
@@ -128,7 +132,9 @@  discard block
 block discarded – undo
128 132
 		$this->onSubmit(function ($form) use ($callback) {
129 133
 			$errors = [];
130 134
 			foreach ($this->validationRules?: [] as $ruleCallback) {
131
-				if (! is_callable($ruleCallback)) continue;
135
+				if (! is_callable($ruleCallback)) {
136
+					continue;
137
+				}
132 138
 				
133 139
 				$ruleErrors = $ruleCallback($form);
134 140
 				
Please login to merge, or discard this patch.
src/Providers/EpesiServiceProvider.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -9,22 +9,22 @@  discard block
 block discarded – undo
9 9
 
10 10
 class EpesiServiceProvider extends ServiceProvider
11 11
 {
12
-    /**
13
-     * Booting the package.
14
-     */
15
-    public function boot()
16
-    {
17
-    	$this->ensureHttps();
12
+	/**
13
+	 * Booting the package.
14
+	 */
15
+	public function boot()
16
+	{
17
+		$this->ensureHttps();
18 18
     	
19
-    	Route::group(['namespace' => 'Epesi\Core\Controllers', 'middleware' => ['web']], function() {
20
-    		header("Cache-Control: no-cache, no-store, must-revalidate"); //HTTP 1.1
21
-    		header("Pragma: no-cache"); //HTTP 1.0
22
-    		header("Expires: 0");
19
+		Route::group(['namespace' => 'Epesi\Core\Controllers', 'middleware' => ['web']], function() {
20
+			header("Cache-Control: no-cache, no-store, must-revalidate"); //HTTP 1.1
21
+			header("Pragma: no-cache"); //HTTP 1.0
22
+			header("Expires: 0");
23 23
     		
24
-    		Route::any('view/{alias}/{method?}/{args?}', 'ModuleController@view')->middleware('auth');
24
+			Route::any('view/{alias}/{method?}/{args?}', 'ModuleController@view')->middleware('auth');
25 25
     		
26
-    		Route::any('install', 'InstallController@index');
27
-    	});
26
+			Route::any('install', 'InstallController@index');
27
+		});
28 28
     	
29 29
 		// Register providers declared in modules
30 30
 		foreach (ModuleManager::collect('providers') as $provider) {
@@ -34,37 +34,37 @@  discard block
 block discarded – undo
34 34
 			$this->loadJsonTranslationsFrom($path);
35 35
 		}
36 36
 
37
-    	// Register admin service provider if in admin mode or in console
38
-    	// TODO: apply access restriction to admin mode
37
+		// Register admin service provider if in admin mode or in console
38
+		// TODO: apply access restriction to admin mode
39 39
 //     	if ($this->app->runningInConsole() || (request('admin', false) && Auth::user()->can('modify system'))) {
40
-    	if ($this->app->runningInConsole() || request('admin', false)) {
41
-    		$this->app->register(AdminServiceProvider::class);
42
-    	}
43
-    }
40
+		if ($this->app->runningInConsole() || request('admin', false)) {
41
+			$this->app->register(AdminServiceProvider::class);
42
+		}
43
+	}
44 44
 
45
-    /**
46
-     * Register the provider.
47
-     */
48
-    public function register()
49
-    {
50
-    	$this->app->singleton(App::class);
51
-    }
45
+	/**
46
+	 * Register the provider.
47
+	 */
48
+	public function register()
49
+	{
50
+		$this->app->singleton(App::class);
51
+	}
52 52
     
53
-    /**
54
-     * Force to set https scheme if https enabled.
55
-     *
56
-     * @return void
57
-     */
58
-    protected function ensureHttps()
59
-    {
60
-    	if (config('epesi.https') || config('epesi.secure')) {
61
-    		url()->forceScheme('https');
62
-    		$this->app['request']->server->set('HTTPS', true);
63
-    	}
64
-    }
53
+	/**
54
+	 * Force to set https scheme if https enabled.
55
+	 *
56
+	 * @return void
57
+	 */
58
+	protected function ensureHttps()
59
+	{
60
+		if (config('epesi.https') || config('epesi.secure')) {
61
+			url()->forceScheme('https');
62
+			$this->app['request']->server->set('HTTPS', true);
63
+		}
64
+	}
65 65
     
66
-    protected function registerStorageDisk()
67
-    {
68
-    	$this->app['config']['filesystems.disks.epesi'] = config('epesi.disk');
69
-    }
66
+	protected function registerStorageDisk()
67
+	{
68
+		$this->app['config']['filesystems.disks.epesi'] = config('epesi.disk');
69
+	}
70 70
 }
Please login to merge, or discard this patch.
src/Providers/AdminServiceProvider.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -20,23 +20,23 @@
 block discarded – undo
20 20
 			ModuleInstallCommand::class
21 21
 	];
22 22
 	
23
-    /**
24
-     * Booting the package.
25
-     */
26
-    public function boot()
27
-    {
28
-    	// Register migrations from installed modules
29
-    	$this->loadMigrationsFrom(ModuleManager::collect('migrations'));
23
+	/**
24
+	 * Booting the package.
25
+	 */
26
+	public function boot()
27
+	{
28
+		// Register migrations from installed modules
29
+		$this->loadMigrationsFrom(ModuleManager::collect('migrations'));
30 30
 
31
-    	// Publish epesi configuration files
32
-    	$this->publishes([__DIR__.'/../../config' => config_path()], 'epesi.config');
33
-    }
31
+		// Publish epesi configuration files
32
+		$this->publishes([__DIR__.'/../../config' => config_path()], 'epesi.config');
33
+	}
34 34
 
35
-    /**
36
-     * Register the provider.
37
-     */
38
-    public function register()
39
-    {
40
-    	$this->commands($this->commands);
41
-    }
35
+	/**
36
+	 * Register the provider.
37
+	 */
38
+	public function register()
39
+	{
40
+		$this->commands($this->commands);
41
+	}
42 42
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     	$this->loadMigrationsFrom(ModuleManager::collect('migrations'));
30 30
 
31 31
     	// Publish epesi configuration files
32
-    	$this->publishes([__DIR__.'/../../config' => config_path()], 'epesi.config');
32
+    	$this->publishes([__DIR__ . '/../../config' => config_path()], 'epesi.config');
33 33
     }
34 34
 
35 35
     /**
Please login to merge, or discard this patch.
src/App.php 1 patch
Spacing   +10 added lines, -10 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,31 +81,31 @@  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']?? 'modules/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']?? 'modules/system/js';
88 88
 		$urlCss = $this->cdn['semantic-ui']?? 'modules/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']?? 'modules/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']?? 'modules/system/js';
98 98
 		$urlCss = $this->cdn['atk']?? 'modules/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']?? 'modules/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']?? 'modules/system/js';
108
-		$this->requireJS($urlJs.'/jquery-ui.js');
108
+		$this->requireJS($urlJs . '/jquery-ui.js');
109 109
 		
110 110
 // 		$this->requireJS('https://cdnjs.cloudflare.com/ajax/libs/jquery.nicescroll/3.7.6/jquery.nicescroll.min.js');
111 111
 	}
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 		
180 180
 		$key = md5(serialize(func_get_args()));
181 181
 		
182
-		if (! isset($cache[$key])) {
182
+		if (!isset($cache[$key])) {
183 183
 			$cache[$key] = true;
184 184
 			
185 185
 			parent::requireJS($url, $isAsync, $isDefer);
Please login to merge, or discard this patch.