original_string: public static function registerAdminClass(string $name, string $class): bool
      {
          if (class_exists($class) === false) {
              return false;
          }
          if (self::$admin_classes === null) {
              self::$admin_classes = [];
          }
          $check = new ReflectionClass($class);
          if ($check->implementsInterface("TheCMSThread\\Classes\\Admin") === true) {
              self::$admin_classes[$name] = $class;
              return true;
          } else {
              return false;
          }
      }
code: public static function registerAdminClass(string $name, string $class): bool
      {
          if (class_exists($class) === false) {
              return false;
          }
          if (self::$admin_classes === null) {
              self::$admin_classes = [];
          }
          $check = new ReflectionClass($class);
          if ($check->implementsInterface("TheCMSThread\\Classes\\Admin") === true) {
              self::$admin_classes[$name] = $class;
              return true;
          } else {
              return false;
          }
      }
code_tokens: public static function registerAdminClass ( string $ name , string $ class ) : bool { if ( class_exists ( $ class ) === false ) { return false ; } if ( self :: $ admin_classes === null ) { self :: $ admin_classes = [ ] ; } $ check = new ReflectionClass ( $ class ) ; if ( $ check -> implementsInterface ( "TheCMSThread\\Classes\\Admin" ) === true ) { self :: $ admin_classes [ $ name ] = $ class ; return true ; } else { return false ; } }
docstring: Register an admin class
  
  @param   string  $name   The name the class is registered under
  @param   string  $class  The class name
  
  @return  bool
docstring_tokens: Register an admin class