original_string: public function getStructuralPatches($patchLevel)
      {
          $patches = $this->db->fetchAll(
                  "SELECT * FROM gems__patches WHERE gpa_level = ? ORDER BY gpa_location, gpa_name, gpa_order",
                  $patchLevel
                  );
  
          foreach ($patches as $patchId => $patch) {
              if (\MUtil_String::startsWith(trim($patch['gpa_sql']), 'INSERT', true) ||
                      \MUtil_String::startsWith(trim($patch['gpa_sql']), 'UPDATE', true) ||
                      \MUtil_String::startsWith(trim($patch['gpa_sql']), 'DELETE', true)) {
                  unset($patches[$patchId]);
              }
          }
  
          return $patches;
      }
code: public function getStructuralPatches($patchLevel)
      {
          $patches = $this->db->fetchAll(
                  "SELECT * FROM gems__patches WHERE gpa_level = ? ORDER BY gpa_location, gpa_name, gpa_order",
                  $patchLevel
                  );
  
          foreach ($patches as $patchId => $patch) {
              if (\MUtil_String::startsWith(trim($patch['gpa_sql']), 'INSERT', true) ||
                      \MUtil_String::startsWith(trim($patch['gpa_sql']), 'UPDATE', true) ||
                      \MUtil_String::startsWith(trim($patch['gpa_sql']), 'DELETE', true)) {
                  unset($patches[$patchId]);
              }
          }
  
          return $patches;
      }
code_tokens: public function getStructuralPatches ( $ patchLevel ) { $ patches = $ this -> db -> fetchAll ( "SELECT * FROM gems__patches WHERE gpa_level = ? ORDER BY gpa_location, gpa_name, gpa_order" , $ patchLevel ) ; foreach ( $ patches as $ patchId => $ patch ) { if ( \ MUtil_String :: startsWith ( trim ( $ patch [ 'gpa_sql' ] ) , 'INSERT' , true ) || \ MUtil_String :: startsWith ( trim ( $ patch [ 'gpa_sql' ] ) , 'UPDATE' , true ) || \ MUtil_String :: startsWith ( trim ( $ patch [ 'gpa_sql' ] ) , 'DELETE' , true ) ) { unset ( $ patches [ $ patchId ] ) ; } } return $ patches ; }
docstring: Get the structural patches for the given patch level
  @param int $patchLevel
  @return array
docstring_tokens: Get the structural patches for the given patch level