Receives directly or indirectly compensation other than as provided by law for any service rendered or to be rendered by him personally in any case, proceeding, application, or other matter which is pending before the public agency of which he is a public officer or employee