original_string: public static function find($id)
      {
          self::init();
          $query = 'SELECT * FROM ' . self::$modelTable . ' WHERE id = '.$id;
          $qb = new QueryBuilder(self::$connect, $query);
          $rows = $qb->get();
          $collection = self::makeCollection($rows);
          return !empty($collection) ? array_shift($collection) : null;
      }
code: public static function find($id)
      {
          self::init();
          $query = 'SELECT * FROM ' . self::$modelTable . ' WHERE id = '.$id;
          $qb = new QueryBuilder(self::$connect, $query);
          $rows = $qb->get();
          $collection = self::makeCollection($rows);
          return !empty($collection) ? array_shift($collection) : null;
      }
code_tokens: public static function find ( $ id ) { self :: init ( ) ; $ query = 'SELECT * FROM ' . self :: $ modelTable . ' WHERE id = ' . $ id ; $ qb = new QueryBuilder ( self :: $ connect , $ query ) ; $ rows = $ qb -> get ( ) ; $ collection = self :: makeCollection ( $ rows ) ; return ! empty ( $ collection ) ? array_shift ( $ collection ) : null ; }
docstring: Get object of record
docstring_tokens: Get object of record