Passed
Push — master ( a82a12...289cbe )
by Anton
03:10
created
www/engine/System/Classes/Utils/Menu.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,9 @@  discard block
 block discarded – undo
20 20
 
21 21
 				$item->children = ($children = Template::createBlock());
22 22
 
23
-				foreach ($this->menu[$id]['children'] as $child) $children->addItem($this->parseItem($child));
23
+				foreach ($this->menu[$id]['children'] as $child) {
24
+					$children->addItem($this->parseItem($child));
25
+				}
24 26
 
25 27
 			} else {
26 28
 
@@ -44,7 +46,9 @@  discard block
 block discarded – undo
44 46
 
45 47
 			$menu = Entitizer::getTreeview(TABLE_MENU)->getSubtree(0, ['active' => true]);
46 48
 
47
-			if (false !== $menu) $this->menu = $menu;
49
+			if (false !== $menu) {
50
+				$this->menu = $menu;
51
+			}
48 52
 		}
49 53
 
50 54
 		# Get block
@@ -53,7 +57,9 @@  discard block
 block discarded – undo
53 57
 
54 58
 			$menu = Template::createBlock();
55 59
 
56
-			foreach ($this->menu[0]['children'] as $id) $menu->addItem($this->parseItem($id));
60
+			foreach ($this->menu[0]['children'] as $id) {
61
+				$menu->addItem($this->parseItem($id));
62
+			}
57 63
 
58 64
 			# ------------------------
59 65
 
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Collection/Pages.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -23,34 +23,34 @@
 block discarded – undo
23 23
 
24 24
 		protected function init() {
25 25
 
26
-			$this->config->addParam('active', '', function (bool $active) {
26
+			$this->config->addParam('active', '', function(bool $active) {
27 27
 
28
-				return ($active ? ("ent.visibility = " . VISIBILITY_PUBLISHED . " AND ent.locked = 0") : '');
28
+				return ($active ? ("ent.visibility = ".VISIBILITY_PUBLISHED." AND ent.locked = 0") : '');
29 29
 			});
30 30
 
31
-			$this->config->addParam('rank', '', function (int $rank = null) {
31
+			$this->config->addParam('rank', '', function(int $rank = null) {
32 32
 
33
-				return ((null !== $rank) ? ("ent.access <= " . $rank) : '');
33
+				return ((null !== $rank) ? ("ent.access <= ".$rank) : '');
34 34
 			});
35 35
 
36
-			$this->config->addParam('time_created >=', '', function (int $time) {
36
+			$this->config->addParam('time_created >=', '', function(int $time) {
37 37
 
38
-				return ((0 < $time) ? ("ent.time_created >= " . $time) : '');
38
+				return ((0 < $time) ? ("ent.time_created >= ".$time) : '');
39 39
 			});
40 40
 
41
-			$this->config->addParam('time_created <=', '', function (int $time) {
41
+			$this->config->addParam('time_created <=', '', function(int $time) {
42 42
 
43
-				return ((0 < $time) ? ("ent.time_created <= " . $time) : '');
43
+				return ((0 < $time) ? ("ent.time_created <= ".$time) : '');
44 44
 			});
45 45
 
46
-			$this->config->addParam('time_modified >=', '', function (int $time) {
46
+			$this->config->addParam('time_modified >=', '', function(int $time) {
47 47
 
48
-				return ((0 < $time) ? ("ent.time_modified >= " . $time) : '');
48
+				return ((0 < $time) ? ("ent.time_modified >= ".$time) : '');
49 49
 			});
50 50
 
51
-			$this->config->addParam('time_modified <=', '', function (int $time) {
51
+			$this->config->addParam('time_modified <=', '', function(int $time) {
52 52
 
53
-				return ((0 < $time) ? ("ent.time_modified <= " . $time) : '');
53
+				return ((0 < $time) ? ("ent.time_modified <= ".$time) : '');
54 54
 			});
55 55
 		}
56 56
 	}
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Definition/Variable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@
 block discarded – undo
23 23
 
24 24
 			# Add params
25 25
 
26
-			$this->params->addTextual       ('name',                true, 255, false, '');
27
-			$this->params->addTextual       ('title',               true, 255, false, '');
28
-			$this->params->addTextual       ('value',               true, 255, false, '');
26
+			$this->params->addTextual('name', true, 255, false, '');
27
+			$this->params->addTextual('title', true, 255, false, '');
28
+			$this->params->addTextual('value', true, 255, false, '');
29 29
 
30 30
 			# Add indexes
31 31
 
32
-			$this->indexes->add             ('name',                'UNIQUE');
33
-			$this->indexes->add             ('title');
32
+			$this->indexes->add('name', 'UNIQUE');
33
+			$this->indexes->add('title');
34 34
 		}
35 35
 	}
36 36
 }
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Definition/Widget.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,16 +23,16 @@
 block discarded – undo
23 23
 
24 24
 			# Add params
25 25
 
26
-			$this->params->addBoolean       ('active',              false);
27
-			$this->params->addTextual       ('name',                true, 255, false, '');
28
-			$this->params->addTextual       ('title',               true, 255, false, '');
29
-			$this->params->addTextual       ('contents',            false, 0, false, '');
26
+			$this->params->addBoolean('active', false);
27
+			$this->params->addTextual('name', true, 255, false, '');
28
+			$this->params->addTextual('title', true, 255, false, '');
29
+			$this->params->addTextual('contents', false, 0, false, '');
30 30
 
31 31
 			# Add indexes
32 32
 
33
-			$this->indexes->add             ('active');
34
-			$this->indexes->add             ('name',                'UNIQUE');
35
-			$this->indexes->add             ('title');
33
+			$this->indexes->add('active');
34
+			$this->indexes->add('name', 'UNIQUE');
35
+			$this->indexes->add('title');
36 36
 		}
37 37
 	}
38 38
 }
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Definition/User.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -23,27 +23,27 @@
 block discarded – undo
23 23
 
24 24
 			# Add params
25 25
 
26
-			$this->params->addInteger       ('rank',                true, 1, true, RANK_GUEST);
27
-			$this->params->addTextual       ('name',                true, 16, false, '');
28
-			$this->params->addTextual       ('email',               true, 128, false, '');
29
-			$this->params->addTextual       ('auth_key',            true, 40, true, '');
30
-			$this->params->addTextual       ('password',            true, 40, true, '');
31
-			$this->params->addTextual       ('first_name',          true, 255, false, '');
32
-			$this->params->addTextual       ('last_name',           true, 255, false, '');
33
-			$this->params->addInteger       ('sex',                 true, 1, true, SEX_NOT_SELECTED);
34
-			$this->params->addTextual       ('city',                true, 255, false, '');
35
-			$this->params->addTextual       ('country',             true, 2, false, '');
36
-			$this->params->addTextual       ('timezone',            true, 40, false, '');
37
-			$this->params->addInteger       ('time_registered',     false, 10, true, 0);
38
-			$this->params->addInteger       ('time_logged',         false, 10, true, 0);
26
+			$this->params->addInteger('rank', true, 1, true, RANK_GUEST);
27
+			$this->params->addTextual('name', true, 16, false, '');
28
+			$this->params->addTextual('email', true, 128, false, '');
29
+			$this->params->addTextual('auth_key', true, 40, true, '');
30
+			$this->params->addTextual('password', true, 40, true, '');
31
+			$this->params->addTextual('first_name', true, 255, false, '');
32
+			$this->params->addTextual('last_name', true, 255, false, '');
33
+			$this->params->addInteger('sex', true, 1, true, SEX_NOT_SELECTED);
34
+			$this->params->addTextual('city', true, 255, false, '');
35
+			$this->params->addTextual('country', true, 2, false, '');
36
+			$this->params->addTextual('timezone', true, 40, false, '');
37
+			$this->params->addInteger('time_registered', false, 10, true, 0);
38
+			$this->params->addInteger('time_logged', false, 10, true, 0);
39 39
 
40 40
 			# Add indexes
41 41
 
42
-			$this->indexes->add             ('rank');
43
-			$this->indexes->add             ('name',                'UNIQUE');
44
-			$this->indexes->add             ('email',               'UNIQUE');
45
-			$this->indexes->add             ('time_registered');
46
-			$this->indexes->add             ('time_logged');
42
+			$this->indexes->add('rank');
43
+			$this->indexes->add('name', 'UNIQUE');
44
+			$this->indexes->add('email', 'UNIQUE');
45
+			$this->indexes->add('time_registered');
46
+			$this->indexes->add('time_logged');
47 47
 		}
48 48
 	}
49 49
 }
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Definition/Page.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -23,29 +23,29 @@
 block discarded – undo
23 23
 
24 24
 			# Add params
25 25
 
26
-			$this->params->addInteger       ('visibility',          true, 1, true, VISIBILITY_DRAFT);
27
-			$this->params->addInteger       ('access',              true, 1, true, ACCESS_PUBLIC);
28
-			$this->params->addBoolean       ('locked',              true);
29
-			$this->params->addTextual       ('slug',                true, 255, false, '');
30
-			$this->params->addTextual       ('name',                true, 255, false, '');
31
-			$this->params->addTextual       ('title',               true, 255, false, '');
32
-			$this->params->addTextual       ('contents',            false, 0, false, '');
33
-			$this->params->addTextual       ('description',         false, 0, false, '');
34
-			$this->params->addTextual       ('keywords',            false, 0, false, '');
35
-			$this->params->addBoolean       ('robots_index',        false);
36
-			$this->params->addBoolean       ('robots_follow',       false);
37
-			$this->params->addInteger       ('time_created',        false, 10, true, 0);
38
-			$this->params->addInteger       ('time_modified',       false, 10, true, 0);
26
+			$this->params->addInteger('visibility', true, 1, true, VISIBILITY_DRAFT);
27
+			$this->params->addInteger('access', true, 1, true, ACCESS_PUBLIC);
28
+			$this->params->addBoolean('locked', true);
29
+			$this->params->addTextual('slug', true, 255, false, '');
30
+			$this->params->addTextual('name', true, 255, false, '');
31
+			$this->params->addTextual('title', true, 255, false, '');
32
+			$this->params->addTextual('contents', false, 0, false, '');
33
+			$this->params->addTextual('description', false, 0, false, '');
34
+			$this->params->addTextual('keywords', false, 0, false, '');
35
+			$this->params->addBoolean('robots_index', false);
36
+			$this->params->addBoolean('robots_follow', false);
37
+			$this->params->addInteger('time_created', false, 10, true, 0);
38
+			$this->params->addInteger('time_modified', false, 10, true, 0);
39 39
 
40 40
 			# Add indexes
41 41
 
42
-			$this->indexes->add             ('visibility');
43
-			$this->indexes->add             ('access');
44
-			$this->indexes->add             ('slug');
45
-			$this->indexes->add             ('name');
46
-			$this->indexes->add             ('title');
47
-			$this->indexes->add             ('time_created');
48
-			$this->indexes->add             ('time_modified');
42
+			$this->indexes->add('visibility');
43
+			$this->indexes->add('access');
44
+			$this->indexes->add('slug');
45
+			$this->indexes->add('name');
46
+			$this->indexes->add('title');
47
+			$this->indexes->add('time_created');
48
+			$this->indexes->add('time_modified');
49 49
 		}
50 50
 	}
51 51
 }
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Definition/User/Secret.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,19 +23,19 @@
 block discarded – undo
23 23
 
24 24
 			# Add params
25 25
 
26
-			$this->params->addTextual       ('code',                true, 40, true, '');
27
-			$this->params->addTextual       ('ip',                  true, 255, false, '');
28
-			$this->params->addInteger       ('time',                false, 10, true, 0);
26
+			$this->params->addTextual('code', true, 40, true, '');
27
+			$this->params->addTextual('ip', true, 255, false, '');
28
+			$this->params->addInteger('time', false, 10, true, 0);
29 29
 
30 30
 			# Add indexes
31 31
 
32
-			$this->indexes->add             ('code',                'UNIQUE');
33
-			$this->indexes->add             ('ip');
34
-			$this->indexes->add             ('time');
32
+			$this->indexes->add('code', 'UNIQUE');
33
+			$this->indexes->add('ip');
34
+			$this->indexes->add('time');
35 35
 
36 36
 			# Add foreign keys
37 37
 
38
-			$this->foreigns->add            ('id',                  TABLE_USERS, 'id', 'CASCADE', 'RESTRICT');
38
+			$this->foreigns->add('id', TABLE_USERS, 'id', 'CASCADE', 'RESTRICT');
39 39
 		}
40 40
 	}
41 41
 }
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Definition/Menuitem.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,16 +23,16 @@
 block discarded – undo
23 23
 
24 24
 			# Add params
25 25
 
26
-			$this->params->addBoolean       ('active',              false);
27
-			$this->params->addInteger       ('position',            true, 2, true, 0);
28
-			$this->params->addTextual       ('slug',                true, 255, false, '');
29
-			$this->params->addTextual       ('text',                true, 255, false, '');
30
-			$this->params->addInteger       ('target',              true, 1, true, TARGET_SELF);
26
+			$this->params->addBoolean('active', false);
27
+			$this->params->addInteger('position', true, 2, true, 0);
28
+			$this->params->addTextual('slug', true, 255, false, '');
29
+			$this->params->addTextual('text', true, 255, false, '');
30
+			$this->params->addInteger('target', true, 1, true, TARGET_SELF);
31 31
 
32 32
 			# Add indexes
33 33
 
34
-			$this->indexes->add             ('active');
35
-			$this->indexes->add             ('position');
34
+			$this->indexes->add('active');
35
+			$this->indexes->add('position');
36 36
 		}
37 37
 	}
38 38
 }
Please login to merge, or discard this patch.
www/engine/System/Classes/Modules/Entitizer/Dataset/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@
 block discarded – undo
21 21
 
22 22
 		protected function init() {
23 23
 
24
-			$this->addVirtual('gravatar', function (array $data) {
24
+			$this->addVirtual('gravatar', function(array $data) {
25 25
 
26 26
 				return md5(strtolower($data['email']));
27 27
 			});
28 28
 
29
-			$this->addVirtual('full_name', function (array $data) {
29
+			$this->addVirtual('full_name', function(array $data) {
30 30
 
31
-				return trim($data['first_name'] . ' ' . $data['last_name']);
31
+				return trim($data['first_name'].' '.$data['last_name']);
32 32
 			});
33 33
 		}
34 34
 	}
Please login to merge, or discard this patch.