@@ -28,7 +28,7 @@ class DbtngExampleStorage {
2828   * 
2929   * @see db_insert() 
3030   */ 
31-   public  static  function  insert ($ entry ) {
31+   public  static  function  insert (array   $ entry ) {
3232    $ return_value  = NULL ;
3333    try  {
3434      $ return_value  = db_insert ('dbtng_example ' )
@@ -56,13 +56,13 @@ public static function insert($entry) {
5656   * 
5757   * @see db_update() 
5858   */ 
59-   public  static  function  update ($ entry ) {
59+   public  static  function  update (array   $ entry ) {
6060    try  {
6161      // db_update()...->execute() returns the number of rows updated. 
6262      $ count  = db_update ('dbtng_example ' )
63-            ->fields ($ entry )
64-            ->condition ('pid ' , $ entry ['pid ' ])
65-            ->execute ();
63+         ->fields ($ entry )
64+         ->condition ('pid ' , $ entry ['pid ' ])
65+         ->execute ();
6666    }
6767    catch  (\Exception   $ e ) {
6868      drupal_set_message (t ('db_update failed. Message = %message, query= %query ' , array (
@@ -83,10 +83,10 @@ public static function update($entry) {
8383   * 
8484   * @see db_delete() 
8585   */ 
86-   public  static  function  delete ($ entry ) {
86+   public  static  function  delete (array   $ entry ) {
8787    db_delete ('dbtng_example ' )
88-          ->condition ('pid ' , $ entry ['pid ' ])
89-          ->execute ();
88+       ->condition ('pid ' , $ entry ['pid ' ])
89+       ->execute ();
9090  }
9191
9292  /** 
@@ -161,7 +161,7 @@ public static function delete($entry) {
161161   * @see http://drupal.org/node/310072 
162162   * @see http://drupal.org/node/310075 
163163   */ 
164-   public  static  function  load ($ entry  = array ()) {
164+   public  static  function  load (array   $ entry  = array ()) {
165165    // Read all fields from the dbtng_example table. 
166166    $ select  = db_select ('dbtng_example ' , 'example ' );
167167    $ select ->fields ('example ' );
0 commit comments