Brandon_R
Guest
Yes, I know, I just prefer using all lowercase and underscores.
For example, if I wrote Kier's code, this is what it would look like:
PHP:public function get_news_feed ( array $conditions = array ( ), $fetcholderthanid = 0, array $viewinguser = NULL ) { $this->standardize_viewing_user_reference ( $viewinguser ); if ( $fetcholderthanid ) { $conditions['news_feed_id'] = array ( '<', $fetcholderthanid ); } $newsfeed = $this->get_news_feed_items ( $conditions, $viewinguser['user_id'] ); $newsfeed = $this->fill_out_news_feed_items ( $newsfeed, $viewinguser ); $this->_cache_handlers_for_news_feed ( $newsfeed ); return array ( 'newsfeed' => $newsfeed, 'newsfeedhandlers' => $this->_handler_cache, 'oldestitemid' => $this->get_oldest_news_feed_id_from_array ( $newsfeed ), 'feedends' => ( sizeof ( $newsfeed ) == 0 ) // permissions make this hard to calculate ); }
I have weird standards, I know (especially the spaces... I dunno, they just help me read it better).![]()
A standard is a standard as long as you continue to use it always.