dsb_client.module Line 54: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'description' => t('Translate resource description '. Line 74: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'description' => t('Publish local resource description '. Line 104: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'description' => t('Without this option the user can not '. Line 108: Use an indent of 2 spaces, with no tabs //Field permissions Line 110: Use an indent of 2 spaces, with no tabs //General Line 111: Use an indent of 2 spaces, with no tabs 'dsb content field general language' => array( Line 112: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the general language field'), Line 114: Use an indent of 2 spaces, with no tabs ), Line 115: Use an indent of 2 spaces, with no tabs 'dsb content field general preview_image' => array( Line 116: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the general preview image field'), Line 118: Use an indent of 2 spaces, with no tabs ), Line 119: Use an indent of 2 spaces, with no tabs 'dsb content field general life_cycle version' => array( Line 120: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the general life cycle version field'), Line 122: Use an indent of 2 spaces, with no tabs ), Line 123: Use an indent of 2 spaces, with no tabs 'dsb content field general technical location' => array( Line 124: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the general technical location field'), Line 126: Use an indent of 2 spaces, with no tabs ), Line 127: Use an indent of 2 spaces, with no tabs 'dsb content field general otherPlattformRequirements' => array( Line 128: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the general other plattform requirements field'), Line 130: Use an indent of 2 spaces, with no tabs ), Line 131: Use an indent of 2 spaces, with no tabs 'dsb content field general description' => array( Line 132: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the general description field'), Line 134: Use an indent of 2 spaces, with no tabs ), Line 136: Use an indent of 2 spaces, with no tabs //Life cycle Line 137: Use an indent of 2 spaces, with no tabs 'dsb content field life_cycle contribute' => array( Line 138: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the lifecycle contribute field'), Line 140: Use an indent of 2 spaces, with no tabs ), Line 142: Use an indent of 2 spaces, with no tabs //keywords Line 143: Use an indent of 2 spaces, with no tabs 'dsb content field keywords keyword' => array( Line 144: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the keywords keyword field'), Line 146: Use an indent of 2 spaces, with no tabs ), Line 147: Use an indent of 2 spaces, with no tabs 'dsb content field keywords coverage' => array( Line 148: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the keywords coverage field'), Line 150: Use an indent of 2 spaces, with no tabs ), Line 152: Use an indent of 2 spaces, with no tabs //Education Line 153: Use an indent of 2 spaces, with no tabs 'dsb content field education learningResourceType' => array( Line 154: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the education learningResourceType field'), Line 156: Use an indent of 2 spaces, with no tabs ), Line 157: Use an indent of 2 spaces, with no tabs 'dsb content field education intendedEndUserRole' => array( Line 158: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the education intendedEndUserRole field'), Line 160: Use an indent of 2 spaces, with no tabs ), Line 161: Use an indent of 2 spaces, with no tabs 'dsb content field education typicalAgeRange' => array( Line 162: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the education typicalAgeRange field'), Line 164: Use an indent of 2 spaces, with no tabs ), Line 165: Use an indent of 2 spaces, with no tabs 'dsb content field education typicalLearningTime' => array( Line 166: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the education typicalLearningTime field'), Line 168: Use an indent of 2 spaces, with no tabs ), Line 169: Use an indent of 2 spaces, with no tabs 'dsb content field education difficulty' => array( Line 170: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the education difficulty field'), Line 172: Use an indent of 2 spaces, with no tabs ), Line 173: Use an indent of 2 spaces, with no tabs 'dsb content field education aggregationLevel' => array( Line 174: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the education aggregationLevel field'), Line 176: Use an indent of 2 spaces, with no tabs ), Line 177: Use an indent of 2 spaces, with no tabs 'dsb content field education description' => array( Line 178: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the education description field'), Line 180: Use an indent of 2 spaces, with no tabs ), Line 182: Use an indent of 2 spaces, with no tabs //Classification Line 183: Use an indent of 2 spaces, with no tabs 'dsb content field classification context' => array( Line 184: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the classification context field'), Line 186: Use an indent of 2 spaces, with no tabs ), Line 187: Use an indent of 2 spaces, with no tabs 'dsb content field classification curriculums' => array( Line 188: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the classification curriculums field'), Line 190: Use an indent of 2 spaces, with no tabs ), Line 192: Use an indent of 2 spaces, with no tabs //Rights Line 193: Use an indent of 2 spaces, with no tabs 'dsb content field rights cost' => array( Line 194: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the rights cost field'), Line 196: Use an indent of 2 spaces, with no tabs ), Line 197: Use an indent of 2 spaces, with no tabs 'dsb content field rights copyrightAndOtherRestrictions' => array( Line 198: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the rights copyrightAndOtherRestrictions field'), Line 200: Use an indent of 2 spaces, with no tabs ), Line 201: Use an indent of 2 spaces, with no tabs 'dsb content field rights description' => array( Line 202: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the rights description field'), Line 204: Use an indent of 2 spaces, with no tabs ), Line 206: Use an indent of 2 spaces, with no tabs //Rights Line 207: Use an indent of 2 spaces, with no tabs 'dsb content field relations relation' => array( Line 208: Use an indent of 2 spaces, with no tabs 'title' => t('Can add/edit the relations relation field'), Line 210: Use an indent of 2 spaces, with no tabs ), Line 220: Control statements should have one space between the control keyword and opening parenthesis if(isset($build['field_user_vcard'])) { Line 221: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $build['field_user_vcard'][0]['#markup'] = dsb_client_contributer_preview($build['field_user_vcard'][0]['#markup'], true); Line 252: Control statements should have one space between the control keyword and opening parenthesis foreach(dsb_client_load_content_partner() AS $content_partner) { Line 275: Use an indent of 2 spaces, with no tabs static $cache = array(); Line 276: Use an indent of 2 spaces, with no tabs $name = strtolower($name); Line 277: Use an indent of 2 spaces, with no tabs $name = preg_replace("/\W+/", "_", $name); Line 279: Use an indent of 2 spaces, with no tabs if(empty($cache[$name])) { Line 279: Control statements should have one space between the control keyword and opening parenthesis if(empty($cache[$name])) { Line 280: Control statements should have one space between the control keyword and opening parenthesis if(dsb_client_can_publish_central()) { Line 281: Control statements should have one space between the control keyword and opening parenthesis switch(strtolower($name)) { Line 290: Control statements should have one space between the control keyword and opening parenthesis if(empty($cache[$name])) { Line 291: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $cache[$name] = variable_get("dsb_client_field_require_type_".strtolower($name), Line 294: Use an indent of 2 spaces, with no tabs } Line 295: Use an indent of 2 spaces, with no tabs return ($cache[$name] == $type); Line 512: Use an indent of 2 spaces, with no tabs $items['admin/archibald'] = array( Line 513: Use an indent of 2 spaces, with no tabs 'title' => 'Descriptions', Line 519: Use an indent of 2 spaces, with no tabs ); Line 521: Use an indent of 2 spaces, with no tabs $items['admin/archibald/proposal'] = array( Line 545: Use an indent of 2 spaces, with no tabs $items['admin/archibald/to_publish'] = array( Line 546: Use an indent of 2 spaces, with no tabs 'title' => 'to publish', Line 547: Use an indent of 2 spaces, with no tabs 'page callback' => 'dsb_client_admin_content_overview', Line 548: Use an indent of 2 spaces, with no tabs 'page arguments' => array('to_publish_local'), Line 549: Use an indent of 2 spaces, with no tabs 'access callback' => 'dsb_client_check_publish_access', Line 550: Use an indent of 2 spaces, with no tabs 'type' => MENU_LOCAL_TASK, Line 551: Use an indent of 2 spaces, with no tabs 'weight' => -10, Line 552: Use an indent of 2 spaces, with no tabs 'file' => 'includes/dsb_client.pages.inc', Line 553: Use an indent of 2 spaces, with no tabs ); Line 555: Use an indent of 2 spaces, with no tabs $items['admin/archibald/published'] = array( Line 556: Use an indent of 2 spaces, with no tabs 'title' => 'Published', Line 557: Use an indent of 2 spaces, with no tabs 'page callback' => 'dsb_client_admin_content_overview', Line 558: Use an indent of 2 spaces, with no tabs 'page arguments' => array('published_local'), Line 559: Use an indent of 2 spaces, with no tabs 'access callback' => 'dsb_client_check_publish_access', Line 560: Use an indent of 2 spaces, with no tabs 'type' => MENU_LOCAL_TASK, Line 561: Use an indent of 2 spaces, with no tabs 'weight' => -8, Line 562: Use an indent of 2 spaces, with no tabs 'file' => 'includes/dsb_client.pages.inc', Line 563: Use an indent of 2 spaces, with no tabs ); Line 564: else statements should begin on a new line } else if (variable_get( Line 564: Use "elseif" in place of "else if" } else if (variable_get( Line 625: else statements should begin on a new line } else { Line 627: Use an indent of 2 spaces, with no tabs $items['admin/archibald/to_publish'] = array( Line 628: Use an indent of 2 spaces, with no tabs 'title' => 'to publish', Line 629: Use an indent of 2 spaces, with no tabs 'page callback' => 'dsb_client_admin_content_overview', Line 630: Use an indent of 2 spaces, with no tabs 'page arguments' => array('to_publish'), Line 631: Use an indent of 2 spaces, with no tabs 'access callback' => 'dsb_client_check_publish_access', Line 632: Use an indent of 2 spaces, with no tabs 'type' => MENU_LOCAL_TASK, Line 633: Use an indent of 2 spaces, with no tabs 'weight' => -10, Line 634: Use an indent of 2 spaces, with no tabs 'file' => 'includes/dsb_client.pages.inc', Line 635: Use an indent of 2 spaces, with no tabs ); Line 637: Use an indent of 2 spaces, with no tabs $items['admin/archibald/published'] = array( Line 638: Use an indent of 2 spaces, with no tabs 'title' => 'Published', Line 639: Use an indent of 2 spaces, with no tabs 'page callback' => 'dsb_client_admin_content_overview', Line 640: Use an indent of 2 spaces, with no tabs 'page arguments' => array('published'), Line 641: Use an indent of 2 spaces, with no tabs 'access callback' => 'dsb_client_check_publish_access', Line 642: Use an indent of 2 spaces, with no tabs 'type' => MENU_LOCAL_TASK, Line 643: Use an indent of 2 spaces, with no tabs 'weight' => -8, Line 644: Use an indent of 2 spaces, with no tabs 'file' => 'includes/dsb_client.pages.inc', Line 645: Use an indent of 2 spaces, with no tabs ); Line 665: Use an indent of 2 spaces, with no tabs $items['admin/config/services/archibald/fields'] = array( Line 870: Use an indent of 2 spaces, with no tabs 'file' => 'dsb_client_comments/dsb_client_comments.admin.inc' Line 1218: else statements should begin on a new line } else { Line 1372: Control statements should have one space between the control keyword and opening parenthesis case('pgsql'): Line 1432: else statements should begin on a new line } else { Line 1500: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $logo = null; Line 1659: else statements should begin on a new line } elseif ($value <= 50) { Line 1661: else statements should begin on a new line } elseif ($value <= 250) { Line 1663: else statements should begin on a new line } else { Line 1666: else statements should begin on a new line } else { Line 1745: else statements should begin on a new line } else { Line 1783: Use an indent of 2 spaces, with no tabs return (user_access('edit dsb content') || Line 1792: Use an indent of 2 spaces, with no tabs return (user_access('publish dsb content local') || Line 1808: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return true; Line 1857: else statements should begin on a new line } else { Line 2023: else statements should begin on a new line } else { Line 2033: else statements should begin on a new line } else { Line 2088: else statements should begin on a new line } else { Line 2196: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE function dsb_client_get_solr_bias_value($key, $get_educa_default=false) { Line 2241: else statements should begin on a new line } else { Line 2243: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms t('You account has no vcard, '. Line 2308: else statements should begin on a new line } else { Line 2336: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'UPDATE {dsbc_lom_stats} '. Line 2337: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'SET editing_uid=:uid, editing_last_seen=:time '. Line 2370: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'UPDATE {dsbc_lom_stats} '. Line 2371: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'SET editing_uid=:uid, editing_last_seen=0 '. Line 2430: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'cp.content_partner_id = ls.content_partner_id AND '. Line 2439: Control statements should have one space between the control keyword and opening parenthesis while($data = $res->fetchAssoc()) { Line 2461: Arrays should be formatted with a space separating each element and assignment operator 'name' =>'', Line 2503: Control statements should have one space between the control keyword and opening parenthesis foreach(dsb_client_load_content_partner() AS $content_partner) { Line 2606: else statements should begin on a new line } else if (isset($status->publication_log->lom_status) && Line 2606: Use "elseif" in place of "else if" } else if (isset($status->publication_log->lom_status) && Line 2625: else statements should begin on a new line } else { Line 2642: else statements should begin on a new line } else { SHOWSITES/ALL/MODULES/ARCHIBALD_2/TEMPLATES/DSB_CLIENT_CONTENT_OVERVIEW.TPL.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/TEMPLATES/DSB_CLIENT_CONTENT_OVERVIEW_ROW.TPL.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/TEMPLATES/DSB_CLIENT_CONTENT_VIEW.TPL.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/TEMPLATES/DSB_CLIENT_CONTENT_VIEW_CURRICULUM_EDUCA.TPL.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/TEMPLATES/DSB_CLIENT_CONTENT_VIEW_CURRICULUM_PER.TPL.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/TEMPLATES/DSB_CLIENT_CONTENT_VIEW_CURRICULUM_PER_DETAILS.TPL.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/TEMPLATES/DSB_CLIENT_SEARCH_BLOCK_FORM.TPL.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/JS/CLIENT_OVERVIEW_FACETS.JS SHOWSITES/ALL/MODULES/ARCHIBALD_2/JS/CURRICULUM_EDUCA.JS SHOWSITES/ALL/MODULES/ARCHIBALD_2/JS/CURRICULUM_PER.JS SHOWSITES/ALL/MODULES/ARCHIBALD_2/JS/DSB_ADMIN_CONTENT_OVERVIEW.JS SHOWSITES/ALL/MODULES/ARCHIBALD_2/JS/DSB_CLIENT.JS SHOWSITES/ALL/MODULES/ARCHIBALD_2/JS/DSB_CLIENT_CLASSIFICATION.JS SHOWSITES/ALL/MODULES/ARCHIBALD_2/JS/PROHIBIT_DOUBLE_EDIT.JS SHOWSITES/ALL/MODULES/ARCHIBALD_2/JS/USER_HOOK.JS SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/VCARD/GENERATOR.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/VCARD/PARSER.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LANGUAGES/DE.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LANGUAGES/EN.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LANGUAGES/FR.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LANGUAGES/IT.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/FILE_UPLOADER/UPLOADER.ABSTRACT.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/FILE_UPLOADER/UPLOADER.EDUCA.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/FILE_UPLOADER/UPLOADER.FTP.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/CURRICULUM/OLD/CURRICULUM_PER_1_0.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/CURRICULUM/CURRICULUM.ABSTRACT.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/CURRICULUM/CURRICULUM_EDUCA.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/CURRICULUM/CURRICULUM_PER.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/COVERAGE_SYNC/CHARSETS/ISO5426.INC SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/COVERAGE_SYNC/CHARSETS/UTF-8.INC HIDESITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/COVERAGE_SYNC/RAMEAU.INC rameau.inc Line -1: @file block missing (Drupal Docs) Line 128: Use "elseif" in place of "else if" else if (preg_match("/^a(.+)$/", $v, $matches)) { Line 131: Use "elseif" in place of "else if" else if (preg_match("/^x(.+)$/", $v, $matches)) { Line 134: Use "elseif" in place of "else if" else if (preg_match("/^g(.+)$/", $v, $matches)) { Line 147: Use "elseif" in place of "else if" else if (preg_match("/^.(.+)$/", $v, $matches)) { Line 162: Use "elseif" in place of "else if" else if (preg_match("/\.\.+/", $v, $matches)) { Line 165: Use "elseif" in place of "else if" else if (preg_match("/^a(.+)$/", $v, $matches)) { Line 168: Use "elseif" in place of "else if" else if (preg_match("/^g(.+)$/", $v, $matches)) { Line 171: Use "elseif" in place of "else if" else if (preg_match("/^x(.+)$/", $v, $matches)) { Line 202: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return false; Line 205: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return true; HIDESITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/COVERAGE_SYNC/SWD.INC swd.inc Line -1: @file block missing (Drupal Docs) Line 16: Functions should be called with no spaces between the function name and opening parentheses "845" => array(), #OBERBEGRIFF ZU INDIVIDUALBEZEICHNUNGEN (SCHLAGWORTVERKNUEPFUNGEN) Line 26: missing space after comma $source = preg_replace("/\xc9(.)/","\xc8\\1", $source); //Charset bug couse Trema and Umlaute are the same (U0308) so couse same char, replace c9 to c8 Line 27: missing space after comma $source = preg_replace("/(\x88|\x89)/","", $source); //Killing not sorting chars Line 38: Control statements should have one space between the control keyword and opening parenthesis foreach($lines AS $line_index=>$line) { Line 38: Arrays should be formatted with a space separating each element and assignment operator foreach($lines AS $line_index=>$line) { Line 44: Control statements should have one space between the control keyword and opening parenthesis if(empty($line)) { Line 49: Control statements should have one space between the control keyword and opening parenthesis if(preg_match("/([0-9]{3})[0-9a-zA-Z]\|?(.*)$/is", $line, $matches)) { Line 54: Control statements should have one space between the control keyword and opening parenthesis if(isset($this->used_codes[$code])) { SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/ABSTRACTCOVERAGETYPE.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/DBSTRUCT.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/DIR.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/DSB_API.CLASS.PHP HIDESITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/DSB_CLIENT.ADMIN.INC dsb_client.admin.inc Line 47: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $valid = false; Line 50: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $valid = true; Line 85: Use an indent of 2 spaces, with no tabs $fields = array( Line 86: Use an indent of 2 spaces, with no tabs "general-description" => RES_FIELD_REQUIRED, Line 87: Use an indent of 2 spaces, with no tabs "general-language" => RES_FIELD_RECOMMEND, Line 88: Use an indent of 2 spaces, with no tabs "life_cycle-version" => RES_FIELD_OPTIONAL, Line 89: Use an indent of 2 spaces, with no tabs "technical-location" => RES_FIELD_OPTIONAL, Line 90: Use an indent of 2 spaces, with no tabs "general-otherPlattformRequirements" => RES_FIELD_RECOMMEND, Line 91: Use an indent of 2 spaces, with no tabs "education-learningResourceType" => RES_FIELD_REQUIRED, Line 92: Use an indent of 2 spaces, with no tabs "education-intendedEndUserRole" => RES_FIELD_RECOMMEND, Line 93: Use an indent of 2 spaces, with no tabs "education-typicalAgeRange" => RES_FIELD_RECOMMEND, Line 94: Use an indent of 2 spaces, with no tabs "education-typicalLearningTime" => RES_FIELD_OPTIONAL, Line 95: Use an indent of 2 spaces, with no tabs "education-difficulty" => RES_FIELD_OPTIONAL, Line 96: Use an indent of 2 spaces, with no tabs "education-aggregationLevel" => RES_FIELD_OPTIONAL, Line 97: Use an indent of 2 spaces, with no tabs "education-description" => RES_FIELD_RECOMMEND, Line 98: Use an indent of 2 spaces, with no tabs "rights-cost" => RES_FIELD_OPTIONAL, Line 99: Use an indent of 2 spaces, with no tabs "rights-copyrightAndOtherRestrictions" => RES_FIELD_OPTIONAL, Line 100: Use an indent of 2 spaces, with no tabs "rights-description" => RES_FIELD_OPTIONAL, Line 101: Use an indent of 2 spaces, with no tabs "relations-relation" => RES_FIELD_OPTIONAL, Line 102: Use an indent of 2 spaces, with no tabs "life_cycle-contribute" => RES_FIELD_OPTIONAL, Line 103: Use an indent of 2 spaces, with no tabs "keywords-keyword" => RES_FIELD_RECOMMEND, Line 104: Use an indent of 2 spaces, with no tabs "keywords-coverage" => RES_FIELD_OPTIONAL, Line 105: Use an indent of 2 spaces, with no tabs "classification-context" => RES_FIELD_REQUIRED, Line 106: Use an indent of 2 spaces, with no tabs "classification-curriculums" => RES_FIELD_RECOMMEND, Line 107: Use an indent of 2 spaces, with no tabs ); Line 118: Use an indent of 2 spaces, with no tabs foreach($fields AS $field => $default) { Line 118: Control statements should have one space between the control keyword and opening parenthesis foreach($fields AS $field => $default) { Line 120: Use an indent of 2 spaces, with no tabs $name = strtolower($field); Line 121: Use an indent of 2 spaces, with no tabs $name = preg_replace("/\W+/", "_", $name); Line 123: Use an indent of 2 spaces, with no tabs $form['options'][$name] = array( Line 124: Use an indent of 2 spaces, with no tabs '#title' => t('Field: @field', array("@field" => $field)), Line 125: Use an indent of 2 spaces, with no tabs '#description' => Line 126: Use an indent of 2 spaces, with no tabs t('Please choose which requirement type this field shoud have'), Line 127: Use an indent of 2 spaces, with no tabs '#type' => 'radios', Line 128: Use an indent of 2 spaces, with no tabs '#options' => array( Line 129: Use an indent of 2 spaces, with no tabs RES_FIELD_OPTIONAL => t('optional'), Line 130: Use an indent of 2 spaces, with no tabs RES_FIELD_RECOMMEND => t('recommend'), Line 131: Use an indent of 2 spaces, with no tabs RES_FIELD_REQUIRED => t('required'), Line 132: Use an indent of 2 spaces, with no tabs ), Line 134: Use an indent of 2 spaces, with no tabs '#default_value' => variable_get( Line 139: Use an indent of 2 spaces, with no tabs ); Line 141: Control statements should have one space between the control keyword and opening parenthesis if($can_central_publish && ( Line 146: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form['options'][$name]['#disabled'] = true; Line 148: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $form['options'][$name]['#title'] .= "
(".t("This field is always required, because central publishing is available").")"; Line 150: Use an indent of 2 spaces, with no tabs } Line 152: Use an indent of 2 spaces, with no tabs $form['submit'] = array( Line 157: Use an indent of 2 spaces, with no tabs return $form; Line 214: Use an indent of 2 spaces, with no tabs foreach($form_state['values'] AS $field => $value) { Line 214: Control statements should have one space between the control keyword and opening parenthesis foreach($form_state['values'] AS $field => $value) { Line 215: Use an indent of 2 spaces, with no tabs if($field == 'submit' || Line 215: Control statements should have one space between the control keyword and opening parenthesis if($field == 'submit' || Line 216: Use an indent of 2 spaces, with no tabs $field == 'form_build_id' || Line 217: Use an indent of 2 spaces, with no tabs $field == 'form_token' || Line 218: Use an indent of 2 spaces, with no tabs $field == 'form_id' || Line 219: Use an indent of 2 spaces, with no tabs $field == 'op') { Line 220: Use an indent of 2 spaces, with no tabs continue; Line 221: Use an indent of 2 spaces, with no tabs } Line 222: Use an indent of 2 spaces, with no tabs variable_set("dsb_client_field_require_type_".strtolower($field), $value); Line 222: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms variable_set("dsb_client_field_require_type_".strtolower($field), $value); Line 223: Use an indent of 2 spaces, with no tabs } Line 224: Use an indent of 2 spaces, with no tabs drupal_set_message(t("Field configuration saved successfully"), 'ok'); Line 240: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '!module' => ' t('If this options is disabled, '. Line 323: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Seach in collections means that related childs '. Line 324: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'of a result will not shown as single item in search result, '. Line 333: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Give bias to certain properties '. Line 334: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'when ordering the search results. '. Line 335: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'Any value except Ignore will increase the score of the given type '. Line 368: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('This options looks up for collection child '. Line 423: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE true Line 456: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Adding a new resource first the language '. Line 457: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'of the description has to be choosen. '. Line 467: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#title' => t('The Resource add/editor form displays only warnings, '. Line 469: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Allows to save the resource '. Line 470: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'even when mandetory fields are missing. '. Line 471: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'Will only show warnings. '. Line 482: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Set this option off if you want to show '. Line 492: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#title' => t('Display a warning when resource add/edit form '. Line 494: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('This option will only work in modern versions '. Line 510: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#title' => t('Display only resources in '. Line 512: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Show resource independet of current choosen '. Line 513: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'interface language. '. Line 514: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'With activates solr search it could happend that you will see '. Line 568: Arrays should be formatted with a space separating each element and assignment operator '@usage_count' =>$data['usage_count'] Line 571: else statements should begin on a new line } else if (count($content_partner)<2) { Line 571: Use "elseif" in place of "else if" } else if (count($content_partner)<2) { Line 641: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Space separated list of file extensions '. Line 652: Use an indent of 2 spaces, with no tabs $form['dsb']['dsb_client_publish_type'] = array( Line 654: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Please choose which publish options you need').'
'. Line 655: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms t('This option is only activ if you have at least one content partner '. Line 656: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'account with working api key.').'
'. Line 660: Use an indent of 2 spaces, with no tabs '#options' => array( Line 661: Use an indent of 2 spaces, with no tabs DSB_CLIENT_PUBLISH_SEPERATE => t( Line 664: Use an indent of 2 spaces, with no tabs DSB_CLIENT_PUBLISH_TOGETHER => t( Line 667: Use an indent of 2 spaces, with no tabs ), Line 672: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE '#disabled' => (dsb_client_can_publish_central()!=true) Line 705: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $email_token_help = t('Available variables are: '. Line 706: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '[site:name], [site:url], [user:name], [user:mail], '. Line 707: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '[lom:id], [lom:url], [lom:title], [overview:proposal-url], '. Line 716: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Edit the notification e-mail message sent to users '. Line 717: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'with editor role. '. Line 718: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'When a new resource has been created by an user '. Line 757: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Edit the notification e-mail message sent to users '. Line 758: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'with publisher role. '. Line 759: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'When the status of a resource has been '. Line 790: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Define here which user role '. Line 799: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Edit the notification e-mail message sent to '. Line 800: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'the responsible editor. '. Line 801: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'When the status of a resource has been changed by '. Line 844: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Edit the notification e-mail message sent to '. Line 951: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_state['values']['dsb_mail_new_unavailable_subject'] = null; Line 955: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_state['values']['dsb_mail_new_unavailable_body'] = null; Line 960: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_state['values']['dsb_mail_status2final_subject'] = null; Line 964: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_state['values']['dsb_mail_status2final_body'] = null; Line 969: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_state['values']['dsb_mail_status2draft_subject'] = null; Line 973: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_state['values']['dsb_mail_status2draft_body'] = null; Line 978: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_state['values']['dsb_mail_set_responsible_subject'] = null; Line 982: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_state['values']['dsb_mail_set_responsible_body'] = null; Line 1085: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $col[] = "
filename, $matches)) { Line 1210: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $classname = "uploader_".$matches[1]; Line 1213: Control statements should have one space between the control keyword and opening parenthesis if($content_partner['file_server_type'] == $matches[1]) { Line 1223: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('Choose here they way to publish your resource '. Line 1239: Control statements should have one space between the control keyword and opening parenthesis if(!empty($selected_plugin) || $content_partner['file_server_type'] == 'no') { Line 1247: Control statements should have one space between the control keyword and opening parenthesis if($content_partner['file_server_type'] != 'no') { Line 1261: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'because non-identifier uploads (company logo, preview images needs'. Line 1299: Control statements should have one space between the control keyword and opening parenthesis if(empty($form['file_upload']['file_uploader_config'])) { Line 1305: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms "#markup" => '
'.drupal_render($form['file_upload']['file_uploader_config']).'
' Line 1334: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (openssl_pkey_get_private($client_keyfile, $form_state['values']['password']) === false) { Line 1343: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms require_once(dirname(__FILE__).'/file_uploader/uploader.'.$form_state['values']['file_server_type'].'.class.php'); Line 1344: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $classname = "uploader_".$form_state['values']['file_server_type']; Line 1405: Control statements should have one space between the control keyword and opening parenthesis if(!empty($form_state['values']['file_server_type']) && $form_state['values']['file_server_type'] != 'no') { Line 1406: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms require_once(dirname(__FILE__).'/file_uploader/uploader.'.$form_state['values']['file_server_type'].'.class.php'); Line 1407: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $classname = "uploader_".$form_state['values']['file_server_type']; Line 1461: Arrays should be formatted with a space separating each element and assignment operator '@usage_count' =>$data['usage_count'] Line 1465: else statements should begin on a new line } else if (count($content_partners)<2) { Line 1465: Use "elseif" in place of "else if" } else if (count($content_partners)<2) { Line 1470: else statements should begin on a new line } else { HIDESITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/DSB_CLIENT.AJAX.INC dsb_client.ajax.inc Line 78: Use "elseif" in place of "else if" else if ($type == 'coverage') { Line 97: do not use mixed case (camelCase), use lower case and _ $tmpArray = array(); Line 109: do not use mixed case (camelCase), use lower case and _ if (!isset($tmpArray[$near])) { Line 110: do not use mixed case (camelCase), use lower case and _ $tmpArray[$near] = array(); Line 112: do not use mixed case (camelCase), use lower case and _ $tmpArray[$near][] = array( Line 117: do not use mixed case (camelCase), use lower case and _ foreach ($tmpArray AS $i => &$tmpArr) { Line 118: do not use mixed case (camelCase), use lower case and _ foreach ($tmpArr AS &$termArr) { Line 119: do not use mixed case (camelCase), use lower case and _ $return_data[$termArr['term']] = Line 123: do not use mixed case (camelCase), use lower case and _ $termArr['content'] . Line 194: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($validator->ready_for_publish() != true) { Line 296: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE strpos($k, '|' . filter_xss($_POST['current_value'])) !== false) { Line 299: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (strpos($k, '|unavailable') !== false) { Line 342: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE null, Line 357: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE null, Line 393: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $send_info_mail = ($form_state['values']['mailconfirm'] == 1) ? true : false; Line 447: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $send_info_mail == true) { Line 454: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $send_info_mail == true) { Line 458: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE null, Line 485: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms ).'
'.t( Line 486: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'Cause of this, the owner can not be changed. '. Line 559: Control statements should have one space between the control keyword and opening parenthesis foreach(dsb_client_load_content_partner() AS $content_partner) { Line 634: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $html .= t('Sorry, can not change status of this ressource. '. Line 635: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'Because it is faulty. '. Line 762: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE null, Line 773: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE null, Line 804: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $send_info_mail = ($form_state['values']['mailconfirm'] == 1) ? true : false; Line 809: else statements should begin on a new line } else { Line 831: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($send_info_mail == true) { HIDESITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/DSB_CLIENT.FORM.INC dsb_client.form.inc Line 32: Use an indent of 2 spaces, with no tabs static $perms = null; Line 32: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE static $perms = null; Line 33: Use an indent of 2 spaces, with no tabs if(empty($perms)) { Line 33: Control statements should have one space between the control keyword and opening parenthesis if(empty($perms)) { Line 34: Use an indent of 2 spaces, with no tabs $perms = dsb_client_permission(); Line 35: Use an indent of 2 spaces, with no tabs } Line 36: Use an indent of 2 spaces, with no tabs if(!isset($perms['dsb content field '.$field])) { Line 36: Control statements should have one space between the control keyword and opening parenthesis if(!isset($perms['dsb content field '.$field])) { Line 36: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms if(!isset($perms['dsb content field '.$field])) { Line 37: Use an indent of 2 spaces, with no tabs return true; Line 37: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return true; Line 38: Use an indent of 2 spaces, with no tabs } Line 39: Use an indent of 2 spaces, with no tabs $result = user_access('dsb content field '.$field); Line 39: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $result = user_access('dsb content field '.$field); Line 40: Use an indent of 2 spaces, with no tabs return $result; Line 101: Use an indent of 2 spaces, with no tabs dsb_client_check_field_permission_recrusive($form); Line 128: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $data['user'] = null; Line 145: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_blur_message = false; Line 147: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_blur_message = true; Line 168: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE function dsb_client_get_require_type_value($name, $type, $default = false) { Line 169: Use an indent of 2 spaces, with no tabs $is_require_type = dsb_client_is_require_type($name, $type, Line 170: Use an indent of 2 spaces, with no tabs ($default)?$type:RES_FIELD_OPTIONAL); Line 171: Use an indent of 2 spaces, with no tabs if($is_require_type) { Line 171: Control statements should have one space between the control keyword and opening parenthesis if($is_require_type) { Line 172: Use an indent of 2 spaces, with no tabs switch($type) { Line 172: Control statements should have one space between the control keyword and opening parenthesis switch($type) { Line 173: Use an indent of 2 spaces, with no tabs case RES_FIELD_REQUIRED: Line 174: Use an indent of 2 spaces, with no tabs return ' *'; Line 175: Use an indent of 2 spaces, with no tabs case RES_FIELD_RECOMMEND: Line 176: Use an indent of 2 spaces, with no tabs return ' *'; Line 177: Use an indent of 2 spaces, with no tabs } Line 178: Use an indent of 2 spaces, with no tabs } Line 179: Use an indent of 2 spaces, with no tabs return ''; Line 183: Use an indent of 2 spaces, with no tabs if(empty($form)) { Line 183: Control statements should have one space between the control keyword and opening parenthesis if(empty($form)) { Line 184: Use an indent of 2 spaces, with no tabs return false; Line 184: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return false; Line 185: Use an indent of 2 spaces, with no tabs } Line 187: Use an indent of 2 spaces, with no tabs if(!is_array($form)) { Line 187: Control statements should have one space between the control keyword and opening parenthesis if(!is_array($form)) { Line 188: Use an indent of 2 spaces, with no tabs return false; Line 188: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return false; Line 189: Use an indent of 2 spaces, with no tabs } Line 191: Use an indent of 2 spaces, with no tabs if(!empty($parent)) { Line 191: Control statements should have one space between the control keyword and opening parenthesis if(!empty($parent)) { Line 192: Use an indent of 2 spaces, with no tabs $parent .= " "; Line 193: Use an indent of 2 spaces, with no tabs } Line 195: Use an indent of 2 spaces, with no tabs $remove_self_key_check = array(); Line 196: Use an indent of 2 spaces, with no tabs $return_true = true; Line 196: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $return_true = true; Line 197: Use an indent of 2 spaces, with no tabs foreach($form AS $k => &$v) { Line 197: Control statements should have one space between the control keyword and opening parenthesis foreach($form AS $k => &$v) { Line 198: Use an indent of 2 spaces, with no tabs if(preg_match("/^\#/", $k)) { Line 198: Control statements should have one space between the control keyword and opening parenthesis if(preg_match("/^\#/", $k)) { Line 199: Use an indent of 2 spaces, with no tabs continue; Line 200: Use an indent of 2 spaces, with no tabs } Line 201: Use an indent of 2 spaces, with no tabs $return_true = false; Line 201: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $return_true = false; Line 202: Use an indent of 2 spaces, with no tabs $remove_self_key_check[$k] = $k; Line 203: Use an indent of 2 spaces, with no tabs switch($k) { Line 203: Control statements should have one space between the control keyword and opening parenthesis switch($k) { Line 204: Use an indent of 2 spaces, with no tabs case 'session_ident': Line 205: Use an indent of 2 spaces, with no tabs $check_k = 'curriculums'; Line 206: Use an indent of 2 spaces, with no tabs break; Line 207: Use an indent of 2 spaces, with no tabs case 'description_spell_check': Line 208: Use an indent of 2 spaces, with no tabs $check_k = 'description'; Line 209: Use an indent of 2 spaces, with no tabs break; Line 210: Use an indent of 2 spaces, with no tabs case 'learningResourceType_analog': Line 211: Use an indent of 2 spaces, with no tabs case 'learningResourceType_digital': Line 212: Use an indent of 2 spaces, with no tabs $check_k = 'learningResourceType'; Line 213: Use an indent of 2 spaces, with no tabs break; Line 214: Use an indent of 2 spaces, with no tabs default: Line 215: Use an indent of 2 spaces, with no tabs $check_k = $k; Line 216: Use an indent of 2 spaces, with no tabs break; Line 217: Use an indent of 2 spaces, with no tabs } Line 219: Use an indent of 2 spaces, with no tabs if(dsb_client_check_field_permission($parent.$check_k)."" != "1") { Line 219: Control statements should have one space between the control keyword and opening parenthesis if(dsb_client_check_field_permission($parent.$check_k)."" != "1") { Line 219: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms if(dsb_client_check_field_permission($parent.$check_k)."" != "1") { Line 220: Use an indent of 2 spaces, with no tabs unset($form[$k]); Line 221: Use an indent of 2 spaces, with no tabs unset($remove_self_key_check[$k]); Line 222: Use an indent of 2 spaces, with no tabs continue; Line 223: Use an indent of 2 spaces, with no tabs } Line 224: Use an indent of 2 spaces, with no tabs if(!dsb_client_check_field_permission_recrusive($v, $parent.$k)) { Line 224: Control statements should have one space between the control keyword and opening parenthesis if(!dsb_client_check_field_permission_recrusive($v, $parent.$k)) { Line 224: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms if(!dsb_client_check_field_permission_recrusive($v, $parent.$k)) { Line 225: Use an indent of 2 spaces, with no tabs unset($form[$k]); Line 226: Use an indent of 2 spaces, with no tabs } Line 227: Use an indent of 2 spaces, with no tabs } Line 228: Use an indent of 2 spaces, with no tabs return $return_true || !empty($remove_self_key_check); Line 238: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE function dsb_client_get_taxonomy_options($vocab, $parent=null) { Line 239: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE static $vocabularies = null; Line 253: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $tree = taxonomy_get_tree($vocabularies[$vocab], 0, NULL, true); Line 255: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $parent_key = null; Line 273: else statements should begin on a new line } else { Line 276: else statements should begin on a new line } else { Line 308: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE function dsb_client_form_set_error_or_info($field, $name, $is_msg = false) { Line 309: Use an indent of 2 spaces, with no tabs if(!$is_msg) { Line 309: Control statements should have one space between the control keyword and opening parenthesis if(!$is_msg) { Line 310: Use an indent of 2 spaces, with no tabs $name = str_replace(' *', '',$name); Line 310: missing space after comma $name = str_replace(' *', '',$name); Line 311: Use an indent of 2 spaces, with no tabs $name = str_replace(' *', '',$name); Line 311: missing space after comma $name = str_replace(' *', '',$name); Line 312: Use an indent of 2 spaces, with no tabs $msg = t('!name field is required.', array('!name' => $name)); Line 313: Use an indent of 2 spaces, with no tabs } Line 314: Use an indent of 2 spaces, with no tabs else { Line 315: Use an indent of 2 spaces, with no tabs $msg = $name; Line 316: Use an indent of 2 spaces, with no tabs } Line 317: Use an indent of 2 spaces, with no tabs if (variable_get('dsb_client_resource_save_able_with_errors', 1) == true) { Line 317: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (variable_get('dsb_client_resource_save_able_with_errors', 1) == true) { Line 318: Use an indent of 2 spaces, with no tabs drupal_set_message($msg, 'warning'); Line 318: Potential problem: drupal_set_message() only accepts filtered text, be sure to use check_plain(), filter_xss() or similar to ensure your $variable is fully sanitized. drupal_set_message($msg, 'warning'); Line 319: Use an indent of 2 spaces, with no tabs } Line 320: Use an indent of 2 spaces, with no tabs else { Line 321: Use an indent of 2 spaces, with no tabs form_set_error($field, $msg); Line 321: Potential problem: form_set_error() and form_error() only accept filtered text, be sure to use check_plain(), filter_xss() or similar to ensure your $variable is fully sanitized. form_set_error($field, $msg); Line 322: Use an indent of 2 spaces, with no tabs } Line 340: Control statements should have one space between the control keyword and opening parenthesis if(!dsb_client_get_require_type_value($require_key, RES_FIELD_REQUIRED)) { Line 341: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return false; Line 344: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $debug = false; Line 349: Control statements should have one space between the control keyword and opening parenthesis foreach($key_arr AS $key) { Line 350: Control statements should have one space between the control keyword and opening parenthesis if(!isset($form_value[$key])) { Line 351: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return false; Line 358: Use an indent of 2 spaces, with no tabs if(is_array($form_state_value)) { Line 358: Control statements should have one space between the control keyword and opening parenthesis if(is_array($form_state_value)) { Line 360: Use an indent of 2 spaces, with no tabs if(!isset($form_value['#title'])) { Line 360: Control statements should have one space between the control keyword and opening parenthesis if(!isset($form_value['#title'])) { Line 361: Use an indent of 2 spaces, with no tabs return false; Line 361: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return false; Line 362: Use an indent of 2 spaces, with no tabs } Line 363: Use an indent of 2 spaces, with no tabs foreach($form_state_value AS $val) { Line 363: Control statements should have one space between the control keyword and opening parenthesis foreach($form_state_value AS $val) { Line 364: Use an indent of 2 spaces, with no tabs if(!empty($val)) { Line 364: Control statements should have one space between the control keyword and opening parenthesis if(!empty($val)) { Line 365: Use an indent of 2 spaces, with no tabs return false; Line 365: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return false; Line 366: Use an indent of 2 spaces, with no tabs } Line 367: Use an indent of 2 spaces, with no tabs } Line 368: Use an indent of 2 spaces, with no tabs return true; Line 368: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return true; Line 369: Use an indent of 2 spaces, with no tabs } Line 370: Use an indent of 2 spaces, with no tabs return empty($form_state_value); Line 382: Control statements should have one space between the control keyword and opening parenthesis foreach($array2 AS $k=>$v) { Line 382: Arrays should be formatted with a space separating each element and assignment operator foreach($array2 AS $k=>$v) { Line 383: Control statements should have one space between the control keyword and opening parenthesis if(!isset($source_array[$k])) { Line 387: Control statements should have one space between the control keyword and opening parenthesis if(is_array($v)) { Line 407: Use an indent of 2 spaces, with no tabs dsb_client_form_merge_recrusive($form_state['values'], Line 412: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'description' => false, Line 413: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'otherPlattformRequirements' => false, Line 415: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'version' => false Line 418: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'location' => false Line 422: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'intendedEndUserRole' => false, Line 423: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'typicalLearningTime' => false, Line 424: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'difficulty' => false, Line 425: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'aggregationLevel' => false, Line 426: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'description' => false, Line 428: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'to' => false, Line 429: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'from' => false, Line 433: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'cost' => false, Line 434: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'copyrightAndOtherRestrictions' => false, Line 435: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'description' => false, Line 438: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'relation' => false Line 441: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'keyword' => false, Line 442: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'coverage' => false Line 445: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'contribute' => false Line 448: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'context' => false, Line 454: Use an indent of 2 spaces, with no tabs //Validation: general -> language Line 455: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('general,language', $form_state, $form)) { Line 456: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('general][language', $form['general']['language']['#title']); Line 457: Use an indent of 2 spaces, with no tabs } Line 458: Use an indent of 2 spaces, with no tabs //Validation: general -> description Line 459: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('general,description', $form_state, $form)) { Line 460: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('general][description', $form['general']['description']['#title']); Line 461: Use an indent of 2 spaces, with no tabs } Line 463: Use an indent of 2 spaces, with no tabs //Validation: life_cycle -> version Line 464: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('general,life_cycle,version', $form_state, $form)) { Line 465: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('general][life_cycle][version', $form['general']['life_cycle']['version']['#title']); Line 466: Use an indent of 2 spaces, with no tabs } Line 468: Use an indent of 2 spaces, with no tabs //Validation: technical -> location Line 469: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('general,technical,location', $form_state, $form)) { Line 470: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('general][technical][location', $form['general']['technical']['location']['#title']); Line 471: Use an indent of 2 spaces, with no tabs } Line 473: Use an indent of 2 spaces, with no tabs //Validation: general -> otherPlattformRequirements Line 474: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('general,otherPlattformRequirements', $form_state, $form)) { Line 475: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('general][otherPlattformRequirements', $form['general']['otherPlattformRequirements']['#title']); Line 476: Use an indent of 2 spaces, with no tabs } Line 478: Use an indent of 2 spaces, with no tabs //Validation: education -> intendedEndUserRole Line 479: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('education,intendedEndUserRole', $form_state, $form)) { Line 480: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('education][intendedEndUserRole', $form['education']['intendedEndUserRole']['#title']); Line 481: Use an indent of 2 spaces, with no tabs } Line 483: Use an indent of 2 spaces, with no tabs //Validation: education -> typicalAgeRange Line 484: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('education,typicalAgeRange,from', $form_state, $form) && Line 487: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('education[typicalAgeRange', $form['education']['typicalAgeRange']['#title']); Line 488: Use an indent of 2 spaces, with no tabs } Line 490: Use an indent of 2 spaces, with no tabs //Validation: education -> typicalLearningTime Line 491: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('education,typicalLearningTime', $form_state, $form)) { Line 492: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('education][typicalLearningTime', $form['education']['typicalLearningTime']['#title']); Line 493: Use an indent of 2 spaces, with no tabs } Line 495: Use an indent of 2 spaces, with no tabs //Validation: education -> difficulty Line 496: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('education,difficulty', $form_state, $form)) { Line 497: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('education][difficulty', $form['education']['difficulty']['#title']); Line 498: Use an indent of 2 spaces, with no tabs } Line 500: Use an indent of 2 spaces, with no tabs //Validation: education -> aggregationLevel Line 501: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('education,aggregationLevel', $form_state, $form)) { Line 502: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('education][aggregationLevel', $form['education']['aggregationLevel']['#title']); Line 503: Use an indent of 2 spaces, with no tabs } Line 505: Use an indent of 2 spaces, with no tabs //Validation: education -> description Line 506: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('education,description', $form_state, $form)) { Line 507: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('education][description', $form['education']['description']['#title']); Line 508: Use an indent of 2 spaces, with no tabs } Line 510: Use an indent of 2 spaces, with no tabs //Validation: rights -> cost Line 511: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('rights,cost', $form_state, $form)) { Line 512: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('rights][cost', $form['rights']['cost']['#title']); Line 513: Use an indent of 2 spaces, with no tabs } Line 515: Use an indent of 2 spaces, with no tabs //Validation: rights -> copyrightAndOtherRestrictions Line 516: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('rights,copyrightAndOtherRestrictions', $form_state, $form)) { Line 517: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('rights][copyrightAndOtherRestrictions', $form['rights']['copyrightAndOtherRestrictions']['#title']); Line 518: Use an indent of 2 spaces, with no tabs } Line 520: Use an indent of 2 spaces, with no tabs //Validation: rights -> description Line 521: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('rights,description', $form_state, $form)) { Line 522: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('rights][description', $form['rights']['description']['#title']); Line 523: Use an indent of 2 spaces, with no tabs } Line 525: Use an indent of 2 spaces, with no tabs //Validation: classification -> context Line 526: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('classification,context', $form_state, $form)) { Line 527: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('classification][context', $form['classification']['context']['#title']); Line 528: Use an indent of 2 spaces, with no tabs } Line 530: Use an indent of 2 spaces, with no tabs //Validation: classification -> curriculums Line 531: Use an indent of 2 spaces, with no tabs if (dsb_client_form_value_is_empty('classification,curriculums', $form_state, $form)) { Line 532: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info('classification][curriculums', $form['classification']['curriculums']['#title']); Line 533: Use an indent of 2 spaces, with no tabs } Line 536: Use an indent of 2 spaces, with no tabs dsb_client_general_handle_file_upload($form_state); Line 538: Use an indent of 2 spaces, with no tabs //Get all relations Line 539: Use an indent of 2 spaces, with no tabs $existing_relations = array(); Line 540: Use an indent of 2 spaces, with no tabs $is_empty = true; Line 540: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $is_empty = true; Line 541: Use an indent of 2 spaces, with no tabs if (!empty($form_state['values']['relations']['relation'])) { Line 542: Use an indent of 2 spaces, with no tabs foreach ($form_state['values']['relations']['relation'] AS Line 543: Use an indent of 2 spaces, with no tabs $i => $relation) { Line 545: Use an indent of 2 spaces, with no tabs if (empty($relation) || Line 546: Use an indent of 2 spaces, with no tabs !is_array($relation) || Line 547: Use an indent of 2 spaces, with no tabs empty($relation['ressource'])) { Line 549: Use an indent of 2 spaces, with no tabs continue; Line 550: Use an indent of 2 spaces, with no tabs } Line 551: Use an indent of 2 spaces, with no tabs $is_empty = false; Line 551: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $is_empty = false; Line 552: Use an indent of 2 spaces, with no tabs if (isset($existing_relations[$relation['ressource']])) { Line 553: Use an indent of 2 spaces, with no tabs form_set_error( Line 554: Use an indent of 2 spaces, with no tabs 'relations][ressource][' . $i, Line 555: Use an indent of 2 spaces, with no tabs t('Please don´t set relations twice') Line 556: Use an indent of 2 spaces, with no tabs ); Line 557: Use an indent of 2 spaces, with no tabs } Line 558: Use an indent of 2 spaces, with no tabs elseif (!empty($form_state['values']['lom_id']) && Line 559: Use an indent of 2 spaces, with no tabs $relation['ressource'] == $form_state['values']['lom_id']) { Line 561: Use an indent of 2 spaces, with no tabs form_set_error( Line 562: Use an indent of 2 spaces, with no tabs 'relations][ressource][' . $i, Line 563: Use an indent of 2 spaces, with no tabs t('Please don´t refere to the resource itself.') Line 564: Use an indent of 2 spaces, with no tabs ); Line 565: Use an indent of 2 spaces, with no tabs } Line 567: Use an indent of 2 spaces, with no tabs $existing_relations[$relation['ressource']] = true; Line 567: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $existing_relations[$relation['ressource']] = true; Line 568: Use an indent of 2 spaces, with no tabs } Line 570: Use an indent of 2 spaces, with no tabs if ($is_empty && dsb_client_is_require_type("relations-relation", Line 571: Use an indent of 2 spaces, with no tabs RES_FIELD_REQUIRED)) { Line 572: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info( Line 573: Use an indent of 2 spaces, with no tabs 'relations][relation', $form['relations']['relation']['#title']); Line 574: Use an indent of 2 spaces, with no tabs } Line 575: Use an indent of 2 spaces, with no tabs } Line 577: Use an indent of 2 spaces, with no tabs //Get all identifiers Line 578: Use an indent of 2 spaces, with no tabs $existing_identifiers = array(); Line 579: Use an indent of 2 spaces, with no tabs foreach ($form_state['values']['general']['identifier'] Line 580: Use an indent of 2 spaces, with no tabs AS $i => $identifier) { Line 582: Use an indent of 2 spaces, with no tabs if (is_array($identifier) && Line 583: Use an indent of 2 spaces, with no tabs !empty($identifier['entity']) && Line 584: Use an indent of 2 spaces, with no tabs !empty($identifier['catalog'])) { Line 586: Use an indent of 2 spaces, with no tabs switch (drupal_strtoupper($identifier['catalog'])) { Line 587: Use an indent of 2 spaces, with no tabs case 'ISBN': Line 588: Use an indent of 2 spaces, with no tabs if (!preg_match( Line 589: Use an indent of 2 spaces, with no tabs '/(ISBN)?[ \-]*[0-9\-\ ]{6,}/i', Line 590: Use an indent of 2 spaces, with no tabs $identifier['entity'])) { Line 592: Use an indent of 2 spaces, with no tabs form_set_error( Line 593: Use an indent of 2 spaces, with no tabs 'general][identifier][' . $i . '][entity', Line 594: Use an indent of 2 spaces, with no tabs t('This is not a valid ISBN.Example: ISBN "ISBN 978-3-16-148410-0"') Line 595: Use an indent of 2 spaces, with no tabs ); Line 596: Use an indent of 2 spaces, with no tabs } Line 597: Use an indent of 2 spaces, with no tabs break; Line 599: Use an indent of 2 spaces, with no tabs case 'URL': Line 600: Use an indent of 2 spaces, with no tabs if (strpos($identifier['entity'], '://') === false) { Line 600: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (strpos($identifier['entity'], '://') === false) { Line 601: Use an indent of 2 spaces, with no tabs if (!preg_match( Line 602: Use an indent of 2 spaces, with no tabs '/dsb_client_file\/[0-9]+\/.+/', Line 603: Use an indent of 2 spaces, with no tabs $identifier['entity'])) { Line 605: Use an indent of 2 spaces, with no tabs form_set_error( Line 606: Use an indent of 2 spaces, with no tabs 'general][identifier][' . $i . '][entity', Line 607: Use an indent of 2 spaces, with no tabs t('This is not a valid local URL.') Line 608: Use an indent of 2 spaces, with no tabs ); Line 609: Use an indent of 2 spaces, with no tabs } Line 610: Use an indent of 2 spaces, with no tabs } Line 611: Use an indent of 2 spaces, with no tabs else { Line 612: Use an indent of 2 spaces, with no tabs $url_parts = parse_url($identifier['entity']); Line 613: Use an indent of 2 spaces, with no tabs if (empty($url_parts['scheme']) || Line 614: Use an indent of 2 spaces, with no tabs empty($url_parts['host'])) { Line 616: Use an indent of 2 spaces, with no tabs form_set_error( Line 617: Use an indent of 2 spaces, with no tabs 'general][identifier][' . $i . '][entity', Line 618: Use an indent of 2 spaces, with no tabs t('This is not a valid URL.') Line 619: Use an indent of 2 spaces, with no tabs ); Line 621: Use an indent of 2 spaces, with no tabs } Line 622: Use an indent of 2 spaces, with no tabs } Line 623: Use an indent of 2 spaces, with no tabs break; Line 624: Use an indent of 2 spaces, with no tabs } Line 625: Use an indent of 2 spaces, with no tabs $key = $identifier['catalog'] . '_____' . $identifier['entity']; Line 627: Use an indent of 2 spaces, with no tabs if (isset($existing_identifiers[$key])) { Line 628: Use an indent of 2 spaces, with no tabs form_set_error( Line 629: Use an indent of 2 spaces, with no tabs 'general][identifier][' . $i . '][entity', Line 630: Use an indent of 2 spaces, with no tabs t('Please don`t set identifier twice.') Line 631: Use an indent of 2 spaces, with no tabs ); Line 632: Use an indent of 2 spaces, with no tabs } Line 634: Use an indent of 2 spaces, with no tabs $existing_identifiers[$key] = true; Line 634: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $existing_identifiers[$key] = true; Line 635: Use an indent of 2 spaces, with no tabs } Line 636: Use an indent of 2 spaces, with no tabs } Line 639: Use an indent of 2 spaces, with no tabs // at least one realtion or one identifyer needs to be set Line 640: Use an indent of 2 spaces, with no tabs if (count($existing_relations) == 0 && Line 641: Use an indent of 2 spaces, with no tabs count($existing_identifiers) == 0) { Line 643: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info( Line 644: Use an indent of 2 spaces, with no tabs 'general][identifier', Line 645: Use an indent of 2 spaces, with no tabs t('At leased one identifer is required'), Line 646: Use an indent of 2 spaces, with no tabs true Line 646: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE true Line 647: Use an indent of 2 spaces, with no tabs ); Line 648: Use an indent of 2 spaces, with no tabs } Line 650: Use an indent of 2 spaces, with no tabs //Validation: life cycle -> keywords Line 651: Use an indent of 2 spaces, with no tabs if (dsb_client_check_field_permission('keywords keyword') && Line 652: Use an indent of 2 spaces, with no tabs isset($form_state['values']['keywords']['keyword'])) { Line 654: Use an indent of 2 spaces, with no tabs $is_empty = true; Line 654: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $is_empty = true; Line 655: Use an indent of 2 spaces, with no tabs $existing_keyword = array(); Line 657: Use an indent of 2 spaces, with no tabs foreach ($form_state['values']['keywords']['keyword'] AS $i => $keyword) { Line 658: Use an indent of 2 spaces, with no tabs $keyword = drupal_strtolower(trim($keyword)); Line 660: Use an indent of 2 spaces, with no tabs if (empty($keyword) || !preg_match("/^keyword_[a-z0-9]+$/", $i)) { Line 661: Use an indent of 2 spaces, with no tabs continue; Line 662: Use an indent of 2 spaces, with no tabs } Line 664: Use an indent of 2 spaces, with no tabs $is_empty = false; Line 664: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $is_empty = false; Line 666: Use an indent of 2 spaces, with no tabs if (isset($existing_keyword[$keyword])) { Line 667: Use an indent of 2 spaces, with no tabs form_set_error( Line 668: Use an indent of 2 spaces, with no tabs 'keywords][keyword][' . $i, Line 669: Use an indent of 2 spaces, with no tabs t('Please don´t set keyword twice') Line 670: Use an indent of 2 spaces, with no tabs ); Line 671: Use an indent of 2 spaces, with no tabs } Line 673: Use an indent of 2 spaces, with no tabs $existing_keyword[$keyword] = true; Line 673: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $existing_keyword[$keyword] = true; Line 674: Use an indent of 2 spaces, with no tabs } Line 676: Use an indent of 2 spaces, with no tabs if ($is_empty && dsb_client_is_require_type("keywords-keyword", Line 677: Use an indent of 2 spaces, with no tabs RES_FIELD_REQUIRED)) { Line 678: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info( Line 679: Use an indent of 2 spaces, with no tabs 'keywords][keyword', Line 680: Use an indent of 2 spaces, with no tabs $form['keywords']['keyword']['#title'] Line 681: Use an indent of 2 spaces, with no tabs ); Line 682: Use an indent of 2 spaces, with no tabs } Line 683: Use an indent of 2 spaces, with no tabs } Line 685: Use an indent of 2 spaces, with no tabs //Validation: keywords -> coverages Line 686: Use an indent of 2 spaces, with no tabs if (dsb_client_check_field_permission('keywords coverage') && Line 687: Use an indent of 2 spaces, with no tabs isset($form_state['values']['keywords']['coverage'])) { Line 689: Use an indent of 2 spaces, with no tabs $is_empty = true; Line 689: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $is_empty = true; Line 690: Use an indent of 2 spaces, with no tabs $existing_coverage = array(); Line 692: Use an indent of 2 spaces, with no tabs foreach ($form_state['values']['keywords']['coverage'] AS Line 693: Use an indent of 2 spaces, with no tabs $i => $coverage) { Line 695: Use an indent of 2 spaces, with no tabs $coverage = drupal_strtolower(trim($coverage)); Line 697: Use an indent of 2 spaces, with no tabs if (empty($coverage) || !preg_match("/^coverage_[a-z0-9]+$/", $i)) { Line 698: Use an indent of 2 spaces, with no tabs continue; Line 699: Use an indent of 2 spaces, with no tabs } Line 701: Use an indent of 2 spaces, with no tabs $is_empty = false; Line 701: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $is_empty = false; Line 703: Use an indent of 2 spaces, with no tabs if (isset($existing_coverage[$coverage])) { Line 704: Use an indent of 2 spaces, with no tabs form_set_error( Line 705: Use an indent of 2 spaces, with no tabs 'keywords][coverage][' . $i, Line 706: Use an indent of 2 spaces, with no tabs t('Please don´t set coverage twice') Line 707: Use an indent of 2 spaces, with no tabs ); Line 708: Use an indent of 2 spaces, with no tabs } Line 709: Use an indent of 2 spaces, with no tabs $existing_coverage[$coverage] = true; Line 709: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $existing_coverage[$coverage] = true; Line 711: Use an indent of 2 spaces, with no tabs } Line 712: Use an indent of 2 spaces, with no tabs if ($is_empty && dsb_client_is_require_type("keywords-coverage", Line 713: Use an indent of 2 spaces, with no tabs RES_FIELD_REQUIRED)) { Line 715: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info( Line 716: Use an indent of 2 spaces, with no tabs 'keywords][coverage', Line 717: Use an indent of 2 spaces, with no tabs $form['keywords']['coverage']['#title'] Line 718: Use an indent of 2 spaces, with no tabs ); Line 719: Use an indent of 2 spaces, with no tabs } Line 721: Use an indent of 2 spaces, with no tabs } Line 723: Use an indent of 2 spaces, with no tabs //Validation: life cycle -> contributer Line 725: Use an indent of 2 spaces, with no tabs isset($form_state['values']['life_cycle']['contribute'])) { Line 727: Use an indent of 2 spaces, with no tabs $is_empty = true; Line 727: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $is_empty = true; Line 731: Use an indent of 2 spaces, with no tabs AS $i => $contribute) { Line 734: Use an indent of 2 spaces, with no tabs !preg_match("/^contribute_[a-z0-9]+$/", $i)) { Line 739: Use an indent of 2 spaces, with no tabs $is_empty = false; Line 739: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $is_empty = false; Line 743: Use an indent of 2 spaces, with no tabs 'life_cycle][contribute]['.$i, Line 743: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'life_cycle][contribute]['.$i, Line 744: Use an indent of 2 spaces, with no tabs t('Please don´t set contributors with same person with same role twice') Line 745: Use an indent of 2 spaces, with no tabs ); Line 747: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $existing_contributes[$key] = true; Line 751: Use an indent of 2 spaces, with no tabs if ($is_empty && dsb_client_is_require_type("life_cycle-contribute", Line 754: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info( Line 755: Use an indent of 2 spaces, with no tabs 'life_cycle][contribute', Line 756: Use an indent of 2 spaces, with no tabs $form['life_cycle']['contribute']['#title'] Line 757: Use an indent of 2 spaces, with no tabs ); Line 759: Use an indent of 2 spaces, with no tabs } Line 763: Use an indent of 2 spaces, with no tabs //Validation: Learning resource type Line 767: Control statements should have one space between the control keyword and opening parenthesis if(!empty($form_state['values']['education'])) { Line 773: do not use mixed case (camelCase), use lower case and _ foreach ($selected_options AS $i => $learningResourceType) { Line 774: do not use mixed case (camelCase), use lower case and _ if (!empty($learningResourceType)) { Line 782: Use an indent of 2 spaces, with no tabs dsb_client_form_set_error_or_info( Line 783: Use an indent of 2 spaces, with no tabs 'education][learningResourceType', Line 784: Use an indent of 2 spaces, with no tabs t('Learning resource type') Line 785: Use an indent of 2 spaces, with no tabs ); Line 800: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $set_responsible_uid = false; Line 809: do not use mixed case (camelCase), use lower case and _ $metaMetadata = $lom->get_metaMetadata(); Line 812: do not use mixed case (camelCase), use lower case and _ $metaMetadata->add_contribute($contribute); Line 814: do not use mixed case (camelCase), use lower case and _ $lom->set_metaMetadata($metaMetadata); Line 819: do not use mixed case (camelCase), use lower case and _ $metaMetadata = new LOMDATA_metaMetadata(); Line 820: do not use mixed case (camelCase), use lower case and _ $metaMetadata->set_language($form_state['values']['language']); Line 824: do not use mixed case (camelCase), use lower case and _ $metaMetadata->add_contribute($contribute); Line 826: do not use mixed case (camelCase), use lower case and _ $lom->set_metaMetadata($metaMetadata); Line 837: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $set_responsible_uid = true; Line 874: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($set_responsible_uid == true) { Line 895: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE dsb_client_prohibit_double_edit_checkout($lom_id, false); Line 916: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $with_desc=false, Line 937: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE '#collapsed' => false, Line 943: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (strpos($show, 'y') !== false) { Line 953: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (strpos($show, 'm') !== false) { Line 963: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (strpos($show, 'd') !== false) { Line 964: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $options = range(0, (strpos($show, 'm') !== false) ? 31 : 356); Line 973: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (strpos($show, 't') !== false) { Line 1117: Use an indent of 2 spaces, with no tabs // build md5 hashes and store it in session Line 1135: Use an indent of 2 spaces, with no tabs . ' ...'; HIDESITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/DSB_CLIENT.OVERVIEW.INC dsb_client.overview.inc Line 79: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (variable_get('dsb_client_search_in_current_language', 1) == true) { Line 167: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (variable_get('dsb_client_search_in_current_language', 1) == true) { Line 294: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE '#tree' => true, Line 323: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '" class="btndetails inactive remember_choice sorl_search_facet">'. Line 325: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $html .= '
get_metaMetadata(); Line 189: do not use mixed case (camelCase), use lower case and _ if ($metaMetadata instanceof LOMDATA_metaMetadata) { Line 190: do not use mixed case (camelCase), use lower case and _ $language = $metaMetadata->get_language(); Line 205: do not use mixed case (camelCase), use lower case and _ $metaMetadata->set_language($language); Line 206: do not use mixed case (camelCase), use lower case and _ $lom->set_metaMetadata($metaMetadata); Line 243: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $lom = dsb_client_load($preload_lomid, $copy_version, false); Line 248: do not use mixed case (camelCase), use lower case and _ $metaMetadata = $lom->get_metaMetadata(); Line 249: do not use mixed case (camelCase), use lower case and _ if ($metaMetadata instanceof LOMDATA_metaMetadata) { Line 250: do not use mixed case (camelCase), use lower case and _ $language = $metaMetadata->get_language(); Line 414: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'prefix' => (!empty($lang->prefix)) ? $lang->prefix . '/' : null Line 420: else statements should begin on a new line } else { Line 476: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'show_status_filter' => false, Line 477: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'show_own_filter' => true Line 480: Use an indent of 2 spaces, with no tabs $publish_type = variable_get("dsb_client_publish_type", 0); Line 497: Use an indent of 2 spaces, with no tabs $search->add_was_published_filter(); Line 501: Use an indent of 2 spaces, with no tabs $search->set_local_published_filter(TRUE); Line 505: Use an indent of 2 spaces, with no tabs $search->set_local_published_filter(FALSE); Line 509: Use an indent of 2 spaces, with no tabs $search->add_can_published_filter(); Line 528: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_params['show_status_filter'] = true; Line 529: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE #$form_params['show_own_filter'] = true; Line 587: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($form_params['show_own_filter'] == true) { Line 600: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($form_params['show_status_filter'] == true) { Line 659: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $html = ''; Line 732: else statements should begin on a new line } else { Line 741: else statements should begin on a new line } else { Line 746: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'data' => 'publication_local_status) { Line 208: Control statements should have one space between the control keyword and opening parenthesis switch($status->publication_central_status) { Line 254: The $text argument to l() should be enclosed within t() so that it is translatable. $data[2] = l('details', 'archibald/' . $lom->get_lom_id() . '/publish/status/central'); Line 304: Use "elseif" in place of "else if" else if ($status->publication_central_status == 'old') { Line 310: Use "elseif" in place of "else if" else if ($status->publication_central_status == 'ok') { Line 318: Use "elseif" in place of "else if" else if ($status->publication_central_status == 'error') { Line 330: Use "elseif" in place of "else if" else if ($status->publication_central_status == 'processing' || Line 378: Use "elseif" in place of "else if" else if ($status->publication_local_status == 'old') { Line 392: Use "elseif" in place of "else if" else if ($status->publication_local_status == 'ok') { Line 437: Use "elseif" in place of "else if" else if ($status->publication_local_status == 'old') { Line 471: Use "elseif" in place of "else if" else if ($status->publication_local_status == 'ok') { Line 556: Use "elseif" in place of "else if" else if ($status->publication_central_status == 'old') { Line 564: else statements should begin on a new line } else { Line 579: Use "elseif" in place of "else if" else if ($status->publication_central_status == 'ok') { Line 586: Use "elseif" in place of "else if" else if ($status->publication_central_status == 'error') { Line 596: Use "elseif" in place of "else if" else if ($status->publication_central_status == 'processing' || Line 655: Control statements should have one space between the control keyword and opening parenthesis switch($form_state['values']['op']) { Line 705: Use "elseif" in place of "else if" else if (variable_get('dsb_client_publish_type', DSB_CLIENT_PUBLISH_SEPERATE) == DSB_CLIENT_PUBLISH_SEPERATE) { Line 719: Use "elseif" in place of "else if" else if (variable_get('dsb_client_publish_type', DSB_CLIENT_PUBLISH_SEPERATE) == DSB_CLIENT_PUBLISH_SEPERATE) { Line 744: Control statements should have one space between the control keyword and opening parenthesis if($LOM_Publish->lom_api_unpublish($lom) == true) { Line 744: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if($LOM_Publish->lom_api_unpublish($lom) == true) { Line 758: else statements should begin on a new line } else { Line 775: Control statements should have one space between the control keyword and opening parenthesis if(path_is_admin($redirect)) { Line 776: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $redirect = urldecode(url($base_url).'#overlay='.$redirect); Line 799: Arrays should be formatted with a space separating each element and assignment operator drupal_json_output(array('cron_run'=>'ok')); Line 817: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($lom===null) { Line 828: Arrays should be formatted with a space separating each element and assignment operator drupal_set_title(t('Publish status: !title', array('!title'=>$title))); Line 831: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($is_central_configurated != true) { Line 844: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms t('Use drush dsb_reset_upload_err and drush cron --verbose') . '
', Line 855: missing space after comma return theme('dsb_client_content_publish_central_status',array( Line 950: missing space after comma $message = t('Success full published',array( Line 957: missing space after comma $message = t('Publishing, currently uploading files',array( Line 1012: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $error = false; Line 1072: else statements should begin on a new line } else { Line 1078: else statements should begin on a new line } else { Line 1095: else statements should begin on a new line } else { Line 1118: else statements should begin on a new line } else { Line 1123: else statements should begin on a new line } else { Line 1129: else statements should begin on a new line } else { HIDESITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/DSB_CLIENT_CONTRIBUTER.INC dsb_client_contributer.inc Line 121: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE function dsb_client_contributer_preview($contributer_id, $return = false) { Line 125: Control statements should have one space between the control keyword and opening parenthesis if($return) { Line 305: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'ajax' => true, Line 338: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'ajax' => true, Line 487: else statements should begin on a new line } else { Line 612: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $html .= ' false, Line 310: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE '#required' => false, Line 363: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE '#required' => false, Line 372: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE '#required' => false, Line 381: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE '#required' => false, Line 444: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (!valid_url($form_state['values']['url'], true)) { Line 504: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_state['complete'] = true; Line 525: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('All this ressources use the update vCard. '. Line 556: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $form_state['complete'] = true; Line 577: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $sql = 'SELECT lom.lom_id '. Line 578: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'FROM {dsbc_contribute_entity} AS cont_entity '. Line 579: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'INNER JOIN {dsbc_contribute} cont '. Line 580: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'ON (cont_entity.contribute_id = cont.contribute_id) '. Line 581: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'INNER JOIN {dsbc_lifecycle_contributes} lc_cont '. Line 582: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'ON (cont.contribute_id = lc_cont.contribute_id) '. Line 583: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'INNER JOIN {dsbc_lom} lom '. Line 584: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'ON (lc_cont.lifecycle_id = lom.lifecycle_id) '. Line 585: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'WHERE cont_entity.entity_id=:contributer_id '. Line 586: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'AND cont.type=:type '. Line 594: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $result[$row->lom_id]['lifecycle'] = true; Line 599: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $sql = 'SELECT lom.lom_id '. Line 600: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'FROM {dsbc_contribute_entity} AS cont_entity '. Line 601: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'INNER JOIN {dsbc_contribute} cont '. Line 602: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'ON (cont_entity.contribute_id = cont.contribute_id) '. Line 603: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'INNER JOIN {dsbc_meta_metadata_contributes} mm_cont '. Line 604: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'ON (cont.contribute_id = mm_cont.contribute_id) '. Line 605: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'INNER JOIN {dsbc_lom} lom '. Line 606: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'ON (mm_cont.meta_metadata_id = lom.meta_metadata_id) '. Line 607: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'WHERE cont_entity.entity_id=:contributer_id '. Line 608: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'AND cont.type=:type '. Line 616: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $result[$row->lom_id]['meta_metadata'] = true; Line 671: do not use mixed case (camelCase), use lower case and _ $lifeCycle = $lom->get_lifeCycle(); Line 672: do not use mixed case (camelCase), use lower case and _ $lifeCycle->set_contribute($contributes); Line 673: do not use mixed case (camelCase), use lower case and _ $lom->set_lifeCycle($lifeCycle); Line 677: do not use mixed case (camelCase), use lower case and _ $metaMetadata = $lom->get_metaMetadata(); Line 678: do not use mixed case (camelCase), use lower case and _ $metaMetadata->set_contribute($contributes); Line 679: do not use mixed case (camelCase), use lower case and _ $lom->set_metaMetadata($metaMetadata); HIDESITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/DSB_CLIENT_IMAGE_HANDLER.INC dsb_client_image_handler.inc Line 84: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'width' => null, Line 125: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $cmd = "$imageick_bin -colorspace gray ". Line 126: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms "-sigmoidal-contrast 1/10% -fill '#{$data['color']}' ". Line 150: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'The image %image could not be colorized because the imagefilter() '. Line 212: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'help' => t('The colorize effect will first remove all color '. Line 213: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'from the source image and then tint '. Line 268: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#description' => t('The color to use when colorizing the image. '. HIDESITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/DSB_CLIENT_LOM.TEST dsb_client_lom.test Line 29: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE private $insert = null; Line 35: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE private $loaded = null; Line 41: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE private $json_exported = null; Line 47: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE private $json_imported = null; Line 54: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($this->insert == null) { Line 94: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $insert_string = var_export($this->insert, true); Line 95: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $loaded_string = var_export($this->json_imported, true); Line 118: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE private function insertTest($update = false) { Line 138: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($update == true) { Line 153: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($update != true) { Line 162: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($update == true) { Line 171: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($update == true) { Line 199: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($update == true) { Line 215: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($update == true) { Line 395: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms $curriculum_per = '{"Cycle 2":'. Line 396: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '{"Math\u00e9matiques et Sciences de la nature":{"MSN 25":'. Line 397: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '{"discipline":"Sciences de la nature","object":'. Line 398: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"Diversit\u00e9 du vivant","code":"MSN 25","url_part":"MSN_25",'. Line 399: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"description":"Repr\u00e9senter des ph\u00e9nom\u00e8nes naturels, '. Line 400: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'techniques, sociauxou des situations math\u00e9matiques",'. Line 401: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"object_elements":[{"uuid":"89db62571d03d1769031bd5bf333c03a",'. Line 402: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"url_part":"","subtitle":"GENERAL","childs":[],"details":'. Line 403: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '[{"ident":5,"url_part":"MSN_25#8242","text":"Cet objectif n\'est pas '. Line 404: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'travaill\u00e9 pour lui-m\u00eame. '. Line 405: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'Il s\'active dans les autres axes seulement.","school_year":'. Line 406: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"5e \u2013 6e ann\u00e9es"}]}]}},"Langues":{"L1 22":{'. Line 407: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"discipline":"Allemand","object":"Fonctionnement de la langue",'. Line 408: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"code":"L1 22","url_part":"L1_22","description":"\u00c9crire des textes'. Line 409: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'vari\u00e9s \u00e0 l\'aide de diverses r\u00e9f\u00e9rences",'. Line 410: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"object_elements":[{"uuid":"7b18a2603a68e16652e9c7b13f1d01de",'. Line 411: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"url_part":"L1_22#les-regroupements-de-genres","subtitle":'. Line 412: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"Les regroupements de genres","childs":[{"uuid":'. Line 413: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"fed0971e4bb314ac3f648c6776cbe22f","url_part":"L1_22#le-texte-qui-'. Line 414: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'transmet-des-savoirs","subtitle":"Le texte qui transmet des savoirs",'. Line 415: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"childs":[],"details":[{"ident":5,"url_part":"L1_22#16827","text":'. Line 416: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"Genres conseill\u00e9s\u00a0:","school_year":"5e \u2013 '. Line 417: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '6e ann\u00e9es"},{"ident":5,"url_part":"L1_22#633","text":"\n\u2022 '. Line 418: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'le texte qui explique \u00abcomment\u00bb et \u00abpourquoi\u00bb '. Line 419: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '\n\u2022 l\u2019article encyclop\u00e9dique \n\u2022 '. Line 420: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'l\u2019expos\u00e9 \u00e9crit \n\u2022 la note de synth\u00e8se '. Line 421: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '\n","school_year":"5e \u2013 6e ann\u00e9es"},{"ident":5,"url_part":'. Line 422: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"L1_22#642","text":"\u00c9criture et organisation d\u2019un texte '. Line 423: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'qui transmet des savoirs (ordre logique des id\u00e9es, titre et '. Line 424: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'sous-titres, disposition \u00e0 bon escient de croquis, dessins, '. Line 425: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'photos,\u2026)","school_year":"5e \u2013 6e ann\u00e9es"}]}],'. Line 426: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"details":[]}]}},"Formation g\u00e9n\u00e9rale":{"FG 25":{'. Line 427: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"discipline":"Identit\u00e9","object":"Identit\u00e9","code":"FG 25",'. Line 428: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"url_part":"FG_25","description":"Reconna\u00eetre l\'alt\u00e9rit'. Line 429: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '\u00e9 et d\u00e9velopper le respect mutuel dans la communaut'. Line 430: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '\u00e9 scolaire","object_elements":[]}}},"Cycle 3":{"Formation '. Line 431: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'g\u00e9n\u00e9rale":{"FG 38":{"discipline":"Identit\u00e9","object":'. Line 432: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"Identit\u00e9","code":"FG 38","url_part":"FG_38","description":'. Line 433: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"Expliciter ses r\u00e9actions et ses comportements en fonction des '. Line 434: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms 'groupes d\u2019appartenance et des situations v\u00e9cues",'. Line 435: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"object_elements":[{"uuid":"f844526e4fb9414177c66cc8085175af",'. Line 436: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '"url_part":"","subtitle":"GENERAL","childs":[],"details":[{"ident":'. Line 437: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '9,"url_part":"FG_38#8250","text":"Cet objectif n\'est pas travaill'. Line 438: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '\u00e9 pour lui-m\u00eame. Il s\'active dans les autres axes '. Line 484: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($update == true) { Line 511: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE false // dont use cache here Line 553: else statements should begin on a new line } else { Line 576: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $insert_string = var_export($test_inserted, true); Line 577: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $loaded_string = var_export($test_loaded, true); Line 600: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $missed = true; Line 603: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $missed = false; Line 605: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $ike = var_export($l_keyword, true); Line 606: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $lke = var_export($l_keyword, true); Line 616: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $missed = true; Line 620: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $missed = false; Line 621: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $ike = var_export($i_coverage, true); Line 622: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $lke = var_export($l_coverage, true); Line 687: Functions should be called with no spaces between the function name and opening parentheses # otherwise, find the shortest move (Manhattan-distance) from the Line 742: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms # elements into $out. HIDESITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/DSB_CLIENT_TRANSLATE.INC dsb_client_translate.inc Line 60: The $text argument to l() should be enclosed within t() so that it is translatable. l('translate', 'admin/archibald/translate_term/' . $lom_id . '/' . $pref) Line 84: do not use mixed case (camelCase), use lower case and _ $langStringObj = new LOMDATA_langString(); Line 85: do not use mixed case (camelCase), use lower case and _ $langStringObj->strings = array(); Line 86: do not use mixed case (camelCase), use lower case and _ $langStringObj->set_id($langstring_terms_id); Line 92: do not use mixed case (camelCase), use lower case and _ $langStringObj->set_string($row['term'], $row['language']); Line 94: do not use mixed case (camelCase), use lower case and _ if (is_null($langStringObj->strings)) { Line 95: do not use mixed case (camelCase), use lower case and _ $langStringObj->strings = array(); Line 98: do not use mixed case (camelCase), use lower case and _ $strings = $langStringObj->get_strings(); Line 102: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if (strpos($ls, "\n") !== false || Line 162: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE cache_set($cid, null, 'cache', CACHE_TEMPORARY); Line 194: do not use mixed case (camelCase), use lower case and _ $langString = new LOMDATA_langString(); Line 195: do not use mixed case (camelCase), use lower case and _ $langString->id = $form['langstring_terms_id']['#value']; Line 197: do not use mixed case (camelCase), use lower case and _ foreach ($form AS $k => $tmpArr) { Line 202: do not use mixed case (camelCase), use lower case and _ $langString->set_string($tmpArr['#value'], $matches[1]); Line 205: do not use mixed case (camelCase), use lower case and _ return LOM_Save_Handler::save_or_insert_langString($langString); SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LOM.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LOM_CONTRIBUTER.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LOM_PUBLISH.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LOM_SAVE_HANDLER.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LOM_SOLR.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LOM_SOLR_SEARCH.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LOM_SQL_SEARCH.CLASS.PHP SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/LOM_VALIDATE.CLASS.PHP HIDESITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/TAXONOMY_SYNC.INC taxonomy_sync.inc Line 24: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE static $vocabularies = null; Line 38: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($taxonomy == null) { Line 70: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'is_new' => true Line 105: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE 'is_new' => true Line 115: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $vocabularies[strtr($vocab, array(' ' => '_'))], 0, NULL, true Line 175: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $data[$taxon_context][$taxon_key]->is_new = false; Line 187: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($data->is_new == true) { Line 241: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $vocabularies[strtr($vocab, array(' ' => '_'))], 0, NULL, true Line 357: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE function dsb_client_sync_taxonomy_os($ontology_identifier = null) { Line 374: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE protected $m_vocabulary_vids = null; Line 386: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE public function sync($ontology_identifier = null) { Line 392: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($ontology == false) { Line 461: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $return = taxonomy_get_tree($vid, 0, NULL, true); Line 465: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return false; Line 479: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($local_vocab === false) { Line 489: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return false; Line 560: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $locales_source_exists = true; Line 585: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE if ($lid != false) { Line 590: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $locales_source_exists = false; Line 601: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $locales_source_exists = false; SHOWSITES/ALL/MODULES/ARCHIBALD_2/INCLUDES/VCARD.PHP HIDESITES/ALL/MODULES/ARCHIBALD_2/FORM/FORM_CLASSIFICATION.INC form_classification.inc Line 52: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#title' => t('Context'). Line 55: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms ). Line 73: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $session_ident = md5(uniqid(mt_rand(), true)); Line 192: Use "elseif" in place of "else if" else if ($form[$k]['#type'] != 'hidden') { Line 229: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE return false; Line 398: Use "elseif" in place of "else if" else if (isset($_POST['custom_handler'])) { Line 492: Use an indent of 2 spaces, with no tabs if (dsb_client_check_field_permission('classification context')) { Line 493: Use an indent of 2 spaces, with no tabs $existing_contexts = array(); Line 494: Use an indent of 2 spaces, with no tabs foreach ($lom_education->get_context() AS $context) { Line 495: Use an indent of 2 spaces, with no tabs if ($context instanceof LOMDATA_vocabulary) { Line 496: Use an indent of 2 spaces, with no tabs $key = $context->get_source() . '|' . $context->get_value(); Line 497: Use an indent of 2 spaces, with no tabs } Line 498: Use an indent of 2 spaces, with no tabs else { Line 499: Use an indent of 2 spaces, with no tabs // this shoud realy never happen Line 500: Use an indent of 2 spaces, with no tabs continue; Line 501: Use an indent of 2 spaces, with no tabs } Line 503: Use an indent of 2 spaces, with no tabs $existing_contexts[$key] = $context; Line 504: Use an indent of 2 spaces, with no tabs } Line 506: Use an indent of 2 spaces, with no tabs foreach ($form_state['values']['classification']['context'] AS Line 507: Use an indent of 2 spaces, with no tabs $i => $context) { Line 509: Use an indent of 2 spaces, with no tabs $key = drupal_strtolower(trim($context)); Line 511: Use an indent of 2 spaces, with no tabs if (empty($key) || !preg_match('/(.+)\|(.+)/', $context, $parts)) { Line 512: Use an indent of 2 spaces, with no tabs continue; Line 513: Use an indent of 2 spaces, with no tabs } Line 515: Use an indent of 2 spaces, with no tabs if (isset($existing_contexts[$key])) { Line 516: Use an indent of 2 spaces, with no tabs unset($existing_contexts[$key]); Line 517: Use an indent of 2 spaces, with no tabs } Line 518: Use an indent of 2 spaces, with no tabs else { Line 519: Use an indent of 2 spaces, with no tabs $vocabulary = new LOMDATA_vocabulary(); Line 520: Use an indent of 2 spaces, with no tabs $vocabulary->set_source($parts[1]); Line 521: Use an indent of 2 spaces, with no tabs $vocabulary->set_value($parts[2]); Line 522: Use an indent of 2 spaces, with no tabs $lom_education->add_context($vocabulary); Line 523: Use an indent of 2 spaces, with no tabs } Line 524: Use an indent of 2 spaces, with no tabs } Line 526: Use an indent of 2 spaces, with no tabs if (!empty($existing_contexts)) { Line 527: Use an indent of 2 spaces, with no tabs foreach ($existing_contexts AS $key => $context) { Line 528: Use an indent of 2 spaces, with no tabs $lom_education->remove_context($context); Line 529: Use an indent of 2 spaces, with no tabs } Line 530: Use an indent of 2 spaces, with no tabs } Line 532: Use an indent of 2 spaces, with no tabs $lom->set_education($lom_education); Line 533: Use an indent of 2 spaces, with no tabs } Line 536: Use an indent of 2 spaces, with no tabs if (dsb_client_check_field_permission('classification curriculums')) { Line 537: Use an indent of 2 spaces, with no tabs $session_ident = $form_state['values']['classification']['session_ident']; Line 539: Use an indent of 2 spaces, with no tabs $lom_classification = array(); Line 540: Use an indent of 2 spaces, with no tabs if (!empty($_SESSION['lom_classification'][$session_ident])) { Line 541: Use an indent of 2 spaces, with no tabs $lom_classification = unserialize( Line 543: Use an indent of 2 spaces, with no tabs ); Line 545: Use an indent of 2 spaces, with no tabs unset($_SESSION['lom_classification'][$session_ident]); Line 546: Use an indent of 2 spaces, with no tabs } Line 547: Use an indent of 2 spaces, with no tabs // save sub object back Line 548: Use an indent of 2 spaces, with no tabs $lom->set_classification($lom_classification); Line 550: Use an indent of 2 spaces, with no tabs $lom_curriculum = array(); Line 551: Use an indent of 2 spaces, with no tabs if (!empty($_SESSION['lom_curriculum'][$session_ident])) { Line 552: Use an indent of 2 spaces, with no tabs $lom_curriculum = unserialize($_SESSION['lom_curriculum'][$session_ident]); Line 553: Use an indent of 2 spaces, with no tabs unset($_SESSION['lom_curriculum'][$session_ident]); Line 554: Use an indent of 2 spaces, with no tabs } Line 555: Use an indent of 2 spaces, with no tabs // save sub object back Line 556: Use an indent of 2 spaces, with no tabs $lom->set_curriculum($lom_curriculum); Line 558: Use an indent of 2 spaces, with no tabs // check with curreculums are used Line 559: Use an indent of 2 spaces, with no tabs $used_curriculums = array(); Line 560: Use an indent of 2 spaces, with no tabs if (!empty($lom_classification)) { Line 562: Use an indent of 2 spaces, with no tabs foreach ($lom_classification AS $classification) { Line 563: Use an indent of 2 spaces, with no tabs if ($classification instanceof LOMDATA_classification) { Line 565: Use an indent of 2 spaces, with no tabs $purpose = $classification->get_purpose()->get_value(); Line 566: Use an indent of 2 spaces, with no tabs $taxonPathes = $classification->get_taxonPath(); Line 566: do not use mixed case (camelCase), use lower case and _ $taxonPathes = $classification->get_taxonPath(); Line 568: Use an indent of 2 spaces, with no tabs foreach ($taxonPathes AS $taxonPath_id => $taxonPath) { Line 568: do not use mixed case (camelCase), use lower case and _ foreach ($taxonPathes AS $taxonPath_id => $taxonPath) { Line 570: Use an indent of 2 spaces, with no tabs if ($taxonPath instanceof LOMDATA_taxonPath) { Line 570: do not use mixed case (camelCase), use lower case and _ if ($taxonPath instanceof LOMDATA_taxonPath) { Line 571: Use an indent of 2 spaces, with no tabs $source = $taxonPath->get_source()->get_strings(); Line 571: do not use mixed case (camelCase), use lower case and _ $source = $taxonPath->get_source()->get_strings(); Line 572: Use an indent of 2 spaces, with no tabs $source = reset($source); // get first element Line 573: Use an indent of 2 spaces, with no tabs $used_curriculums[$source] = true; Line 573: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE $used_curriculums[$source] = true; Line 574: Use an indent of 2 spaces, with no tabs } Line 576: Use an indent of 2 spaces, with no tabs } Line 577: Use an indent of 2 spaces, with no tabs } Line 578: Use an indent of 2 spaces, with no tabs } Line 579: Use an indent of 2 spaces, with no tabs } Line 581: Use an indent of 2 spaces, with no tabs if (empty($used_curriculums['educa']) && (count($used_curriculums) > 0 || !empty($lom_curriculum))) { Line 582: Use an indent of 2 spaces, with no tabs drupal_set_message( Line 588: Use an indent of 2 spaces, with no tabs ); Line 589: Use an indent of 2 spaces, with no tabs } Line 590: Use an indent of 2 spaces, with no tabs } HIDESITES/ALL/MODULES/ARCHIBALD_2/FORM/FORM_EDUCATION.INC form_education.inc Line 72: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE RES_FIELD_RECOMMEND, true Line 94: missing space after comma if (preg_match('/^([\-U0-9]{0,3})\-([\-U0-9]{0,3})$/i',(string) $default_value, $hits)) { Line 101: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#title' => t('Typical age range'). Line 103: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE RES_FIELD_RECOMMEND, true Line 104: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms ). Line 109: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE '#collapsed' => false, Line 142: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#title' => t('Typical learning time'). Line 145: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms ). Line 149: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE '#default_value' => dsb_client_get_education_typical_lerning_time($default_value, true), Line 174: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#title' => t('Difficulty'). Line 177: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms ). Line 196: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#title' => t('Aggregation level'). Line 199: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms ). Line 223: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms '#title' => t('Educational description'). Line 225: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE RES_FIELD_RECOMMEND, true Line 226: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms ). Line 360: Use an indent of 2 spaces, with no tabs $output = '