Doc comment missing for class method
getAvailableLanguages
954 return is_null($sizes[$size]) ? $sizes['Small'] : $sizes[$size];
955 }
956
957 public static function getAvailableLanguages()958 {
959 $langs_available = array_diff(scandir(FLUX_LANG_DIR), array('..', '.'));
960
Doc comment missing for class method
getItemSubType
674 return false;
675 }
676 }
677 public static function getItemSubType($id1, $id2)678 {
679 $subtype = "ItemSubTypes.$id1.$id2";
680 $result = self::config($subtype);
Description
Documentation comments are helpful in understanding what that part of the code is responsible for. It is always a good idea to add documentation to your code to improve the code readability and maintainability. In addition to that, it becomes helpful when you revisit the code after a long time. Here, the function/class method is missing the doc comment and it is recommended to add it for the reasons discussed above.