Completed
Push — master ( e7c824...3ed60a )
by Anton
10s
created
www/engine/System/Classes/Modules/Entitizer/Form/Page.php 1 patch
Unused Use Statements   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Modules\Entitizer\Form {
4 4
 
5
-	use Modules\Entitizer, Utils\Form, Utils\Lister;
5
+	use Modules\Entitizer;
6
+	use Utils\Form;
7
+	use Utils\Lister;
6 8
 
7 9
 	class Page extends Form {
8 10
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Form/User.php 1 patch
Unused Use Statements   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Modules\Entitizer\Form {
4 4
 
5
-	use Modules\Auth, Modules\Entitizer, Utils\Form, Utils\Lister, Geo\Country, Geo\Timezone, Language;
5
+	use Modules\Auth;
6
+	use Modules\Entitizer;
7
+	use Utils\Form;
8
+	use Utils\Lister;
9
+	use Geo\Country;
10
+	use Geo\Timezone;
11
+	use Language;
6 12
 
7 13
 	class User extends Form {
8 14
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Form/Widget.php 1 patch
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Modules\Entitizer\Form {
4 4
 
5
-	use Modules\Entitizer, Utils\Form;
5
+	use Modules\Entitizer;
6
+	use Utils\Form;
6 7
 
7 8
 	class Widget extends Form {
8 9
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Listview/Variables.php 1 patch
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Modules\Entitizer\Listview {
4 4
 
5
-	use Modules\Entitizer, Template;
5
+	use Modules\Entitizer;
6
+	use Template;
6 7
 
7 8
 	class Variables extends Entitizer\Utils\Listview {
8 9
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Listview/Widgets.php 1 patch
Unused Use Statements   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Modules\Entitizer\Listview {
4 4
 
5
-	use Modules\Entitizer, Template, Language;
5
+	use Modules\Entitizer;
6
+	use Template;
7
+	use Language;
6 8
 
7 9
 	class Widgets extends Entitizer\Utils\Listview {
8 10
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Filemanager/Handler/Dir.php 1 patch
Unused Use Statements   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Modules\Filemanager\Handler {
4 4
 
5
-	use Modules\Filemanager, Date, Template;
5
+	use Modules\Filemanager;
6
+	use Date;
7
+	use Template;
6 8
 
7 9
 	class Dir extends Filemanager\Utils\Handler {
8 10
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Filemanager/Handler/File.php 1 patch
Unused Use Statements   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Modules\Filemanager\Handler {
4 4
 
5
-	use Modules\Filemanager, Date, Explorer, Mime, Number, Template;
5
+	use Modules\Filemanager;
6
+	use Date;
7
+	use Explorer;
8
+	use Mime;
9
+	use Number;
10
+	use Template;
6 11
 
7 12
 	class File extends Filemanager\Utils\Handler {
8 13
 
Please login to merge, or discard this patch.
www/engine/Main.php 2 patches
Braces   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,7 +2,9 @@  discard block
 block discarded – undo
2 2
 
3 3
 # Check PHP version
4 4
 
5
-if (version_compare(PHP_VERSION, '7.0.0') < 0) exit('PHP version 7 or higher is required.');
5
+if (version_compare(PHP_VERSION, '7.0.0') < 0) {
6
+	exit('PHP version 7 or higher is required.');
7
+}
6 8
 
7 9
 # Set error reporting
8 10
 
@@ -37,9 +39,11 @@  discard block
 block discarded – undo
37 39
 
38 40
 	# Require class file
39 41
 
40
-	if (@file_exists($file_name = ($path . '.php')) && @is_file($file_name)) require_once $file_name;
41
-
42
-	else if (@file_exists($file_name = ($path . '/' . $last . '.php')) && @is_file($file_name)) require_once $file_name;
42
+	if (@file_exists($file_name = ($path . '.php')) && @is_file($file_name)) {
43
+		require_once $file_name;
44
+	} else if (@file_exists($file_name = ($path . '/' . $last . '.php')) && @is_file($file_name)) {
45
+		require_once $file_name;
46
+	}
43 47
 
44 48
 	# Check if class exists
45 49
 
@@ -50,5 +54,7 @@  discard block
 block discarded – undo
50 54
 
51 55
 	# Call autoload method
52 56
 
53
-	if (method_exists($class_name, '__autoload')) $class_name::__autoload();
54
-});
57
+	if (method_exists($class_name, '__autoload')) {
58
+		$class_name::__autoload();
59
+	}
60
+	});
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,18 +10,18 @@  discard block
 block discarded – undo
10 10
 
11 11
 # Define constants
12 12
 
13
-define('DIR_ENGINE',        (dirname(__FILE__) . '/'));
13
+define('DIR_ENGINE', (dirname(__FILE__).'/'));
14 14
 
15
-define('DIR_WWW',           (DIR_ENGINE . '../'));
16
-define('DIR_UPLOADS',       (DIR_ENGINE . '../uploads/'));
15
+define('DIR_WWW', (DIR_ENGINE.'../'));
16
+define('DIR_UPLOADS', (DIR_ENGINE.'../uploads/'));
17 17
 
18 18
 # Require framework main file
19 19
 
20
-require_once(DIR_ENGINE . 'Framework/Main.php');
20
+require_once(DIR_ENGINE.'Framework/Main.php');
21 21
 
22 22
 # Require system main file
23 23
 
24
-require_once(DIR_ENGINE . 'System/Main.php');
24
+require_once(DIR_ENGINE.'System/Main.php');
25 25
 
26 26
 # Register classes autoloader
27 27
 
@@ -33,13 +33,13 @@  discard block
 block discarded – undo
33 33
 
34 34
 	$system_classes = ['Frames', 'Handlers', 'Modules', 'Utils', 'Views', 'Dispatcher', 'Installer'];
35 35
 
36
-	$path = ((in_array($path[0], $system_classes) ? DIR_SYSTEM_CLASSES : DIR_CLASSES) . implode('/', $path));
36
+	$path = ((in_array($path[0], $system_classes) ? DIR_SYSTEM_CLASSES : DIR_CLASSES).implode('/', $path));
37 37
 
38 38
 	# Require class file
39 39
 
40
-	if (@file_exists($file_name = ($path . '.php')) && @is_file($file_name)) require_once $file_name;
40
+	if (@file_exists($file_name = ($path.'.php')) && @is_file($file_name)) require_once $file_name;
41 41
 
42
-	else if (@file_exists($file_name = ($path . '/' . $last . '.php')) && @is_file($file_name)) require_once $file_name;
42
+	else if (@file_exists($file_name = ($path.'/'.$last.'.php')) && @is_file($file_name)) require_once $file_name;
43 43
 
44 44
 	# Check if class exists
45 45
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Form/Menuitem.php 1 patch
Unused Use Statements   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Modules\Entitizer\Form {
4 4
 
5
-	use Modules\Entitizer, Utils\Form, Utils\Lister;
5
+	use Modules\Entitizer;
6
+	use Utils\Form;
7
+	use Utils\Lister;
6 8
 
7 9
 	class Page extends Form {
8 10
 
Please login to merge, or discard this patch.