Changeset View
Changeset View
Standalone View
Standalone View
modules/in-bulletin/units/topics/topics_config.php
Show First 20 Lines • Show All 300 Lines • ▼ Show 20 Line(s) | |||||
'status' => STATUS_PENDING, | 'status' => STATUS_PENDING, | ||||
), | ), | ||||
), | ), | ||||
'TableName' => TABLE_PREFIX.'Topic', | 'TableName' => TABLE_PREFIX.'Topic', | ||||
'CustomDataTableName' => TABLE_PREFIX . 'TopicCustomData', | 'CustomDataTableName' => TABLE_PREFIX . 'TopicCustomData', | ||||
'CalculatedFields' => Array ( | 'CalculatedFields' => Array ( | ||||
'' => Array ( | '' => Array ( | ||||
Lint: CodingStandard.Arrays.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.OwnerId = ' . USER_ROOT . ', "root", IF (%1$s.OwnerId = ' . USER_GUEST . ', "Guest", "n/a")), IF(u.Username = "", u.Email, u.Username))', | 'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.OwnerId = ' . USER_ROOT . ', "root", IF (%1$s.OwnerId = ' . USER_GUEST . ', "Guest", IF (%1$s.OwnerId = ' . USER_SYSTEM . ', "system", "n/a"))), IF(u.Username = "", u.Email, u.Username))', | ||||
'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', | 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', | ||||
Expected 1 space before concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceBefore: Expected 1 space before concat operator; 0 found | |||||
Expected 1 space after concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceAfter: Expected 1 space after concat operator; 0 found | |||||
'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', | 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', | ||||
'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', | 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', | ||||
'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', | 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', | ||||
'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', | 'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', | ||||
'AltName' => 'img.AltName', | 'AltName' => 'img.AltName', | ||||
'SameImages' => 'img.SameImages', | 'SameImages' => 'img.SameImages', | ||||
'LocalThumb' => 'img.LocalThumb', | 'LocalThumb' => 'img.LocalThumb', | ||||
▲ Show 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | |||||
), | ), | ||||
'use_phrases' => 1, | 'use_phrases' => 1, | ||||
'not_null' => 1, 'default' => 2, | 'not_null' => 1, 'default' => 2, | ||||
), | ), | ||||
'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
'OwnerId' => Array ( | 'OwnerId' => Array ( | ||||
'type' => 'int', | 'type' => 'int', | ||||
'formatter' => 'kLEFTFormatter', | 'formatter' => 'kLEFTFormatter', | ||||
'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), | 'options' => Array (USER_ROOT => 'root', USER_SYSTEM => 'system', USER_GUEST => 'Guest'), | ||||
There must be no space between the Array keyword and the opening parenthesis Lint: CodingStandard.Arrays.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users WHERE %s', | 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users WHERE %s', | ||||
'left_key_field' => 'PortalUserId', 'left_title_field' => USER_TITLE_FIELD, | 'left_key_field' => 'PortalUserId', 'left_title_field' => USER_TITLE_FIELD, | ||||
'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), | 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), | ||||
'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, | 'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, | ||||
), | ), | ||||
'ModifiedById' => Array ( | 'ModifiedById' => Array ( | ||||
'type' => 'int', | 'type' => 'int', | ||||
'formatter' => 'kLEFTFormatter', | 'formatter' => 'kLEFTFormatter', | ||||
'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), | 'options' => Array (USER_ROOT => 'root', USER_SYSTEM => 'system', USER_GUEST => 'Guest'), | ||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
There must be no space between the Array keyword and the opening parenthesis Lint: CodingStandard.Arrays.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users WHERE %s', | 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users WHERE %s', | ||||
'left_key_field' => 'PortalUserId', 'left_title_field' => USER_TITLE_FIELD, | 'left_key_field' => 'PortalUserId', 'left_title_field' => USER_TITLE_FIELD, | ||||
'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), | 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), | ||||
'default' => NULL, | 'default' => NULL, | ||||
), | ), | ||||
'ResourceId' => Array ('type' => 'int', 'default' => null), | 'ResourceId' => Array ('type' => 'int', 'default' => null), | ||||
'TopicType' => Array ( | 'TopicType' => Array ( | ||||
'type' => 'int', | 'type' => 'int', | ||||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |
There must be no space between the Array keyword and the opening parenthesis